[cfe-commits] r95562 - /cfe/trunk/test/CXX/temp/temp.names/p4.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Mon Feb 8 11:58:41 PST 2010


Author: cornedbee
Date: Mon Feb  8 13:58:40 2010
New Revision: 95562

URL: http://llvm.org/viewvc/llvm-project?rev=95562&view=rev
Log:
Add a test case for r95555.

Added:
    cfe/trunk/test/CXX/temp/temp.names/p4.cpp

Added: cfe/trunk/test/CXX/temp/temp.names/p4.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/temp/temp.names/p4.cpp?rev=95562&view=auto

==============================================================================
--- cfe/trunk/test/CXX/temp/temp.names/p4.cpp (added)
+++ cfe/trunk/test/CXX/temp/temp.names/p4.cpp Mon Feb  8 13:58:40 2010
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+struct meta {
+  template<typename U>
+  struct apply {
+    typedef U* type;
+  };
+};
+
+template<typename T, typename U>
+void f(typename T::template apply<U>::type);
+
+void test_f(int *ip) {
+  f<meta, int>(ip);
+}





More information about the cfe-commits mailing list