[cfe-commits] r138111 - /cfe/trunk/test/CodeGenCXX/2009-03-17-dbg.cpp
Eric Christopher
echristo at apple.com
Fri Aug 19 15:16:23 PDT 2011
Author: echristo
Date: Fri Aug 19 17:16:23 2011
New Revision: 138111
URL: http://llvm.org/viewvc/llvm-project?rev=138111&view=rev
Log:
Migrate 2009-03-17-dbg.cpp from llvm/test/FrontendC++.
Added:
cfe/trunk/test/CodeGenCXX/2009-03-17-dbg.cpp
Added: cfe/trunk/test/CodeGenCXX/2009-03-17-dbg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2009-03-17-dbg.cpp?rev=138111&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2009-03-17-dbg.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2009-03-17-dbg.cpp Fri Aug 19 17:16:23 2011
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -emit-llvm %s -o /dev/null -g
+// XTARGET: darwin,linux
+// XFAIL: *
+template <typename T1,typename T2>
+inline void f(const T1&,const T2&) { }
+
+template <typename T1,typename T2,void F(const T1&,const T2&)>
+struct A {
+ template <typename T> void g(T& i) { }
+};
+
+int main() {
+ int i;
+ A<int,int,f> a;
+ a.g(i);
+}
More information about the cfe-commits
mailing list