It was fixed back in r182750, but this is a nice testcase to have.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182818
91177308-0d34-0410-b5e6-
96231b3b80d8
}
void *zed() { return foo(); }
}
+
+namespace test14 {
+ // CHECK-DAG: define linkonce_odr void @_ZN6test143fooIZNS_1fEvE1S_8E3barILPS1_0EEEvv(
+ template <typename T> struct foo {
+ template <T *P> static void bar() {}
+ static void *g() { return (void *)bar<nullptr>; }
+ };
+ inline void *f() {
+ struct S {
+ };
+ return foo<S>::g();
+ }
+ void h() { f(); }
+}