// Build don't link:
+// crash test - XFAIL *-*-*
+
template <class T> void foo(T);
template <class T> void bar(void (*)(T), T);
void baz() {
bar<int>(foo, 1);
- bar(foo<int>, 1); // explicit args for foo don't help - XFAIL *-*-*
- bar<int>(foo<int>, 1); // not even here - XFAIL *-*-*
- bar(foo, 1); // ICE - XFAIL *-*-*
+ bar(foo<int>, 1); // explicit args for foo don't help
+ bar<int>(foo<int>, 1); // not even here
+ bar(foo, 1);
}
// Build don't link:
+// crash test - XFAIL *-*-*
+
template <class T> void foo();
void (*bar)() = foo<void>;
-void (*baz)() = foo; // ERROR - can't deduce T - XFAIL *-*-*
+void (*baz)() = foo; // ERROR - can't deduce T