r182818 - Add a testcase from pr16059.
Rafael Espindola
rafael.espindola at gmail.com
Tue May 28 20:10:01 PDT 2013
Author: rafael
Date: Tue May 28 22:10:01 2013
New Revision: 182818
URL: http://llvm.org/viewvc/llvm-project?rev=182818&view=rev
Log:
Add a testcase from pr16059.
It was fixed back in r182750, but this is a nice testcase to have.
Modified:
cfe/trunk/test/CodeGenCXX/linkage.cpp
Modified: cfe/trunk/test/CodeGenCXX/linkage.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/linkage.cpp?rev=182818&r1=182817&r2=182818&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/linkage.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/linkage.cpp Tue May 28 22:10:01 2013
@@ -170,3 +170,17 @@ namespace test13 {
}
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(); }
+}
More information about the cfe-commits
mailing list