Skip to content

Commit 9e8dd76

Browse files
Fix: GuardX ctor invocation requires explicit template param
1 parent 398373f commit 9e8dd76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Interpreter/force-codegen-dtor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern "C" int printf(const char *, ...);
1111
template <class T> GuardX<T>::~GuardX() { delete x; printf("Running dtor\n"); }
1212

1313
// Let's make sure that the RuntimeInterfaceBuilder requests it explicitly:
14-
(GuardX(x))
14+
(GuardX<int>(x))
1515

1616
// CHECK-NOT: Symbols not found
1717
// CHECK: Running dtor

0 commit comments

Comments
 (0)