[cfe-commits] r98129 - /cfe/trunk/test/SemaCXX/PR6474.cpp
Rafael Espindola
rafael.espindola at gmail.com
Tue Mar 9 18:43:01 PST 2010
Author: rafael
Date: Tue Mar 9 20:43:01 2010
New Revision: 98129
URL: http://llvm.org/viewvc/llvm-project?rev=98129&view=rev
Log:
add missing test
Added:
cfe/trunk/test/SemaCXX/PR6474.cpp
Added: cfe/trunk/test/SemaCXX/PR6474.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/PR6474.cpp?rev=98129&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/PR6474.cpp (added)
+++ cfe/trunk/test/SemaCXX/PR6474.cpp Tue Mar 9 20:43:01 2010
@@ -0,0 +1,31 @@
+// RUN: %clang_cc1 %s -fsyntax-only -std=c++0x
+
+namespace test0 {
+template <typename T> struct X {
+ virtual void foo();
+ virtual void bar();
+ virtual void baz();
+};
+
+template <typename T> void X<T>::foo() {}
+template <typename T> void X<T>::bar() {}
+template <typename T> void X<T>::baz() {}
+
+template <> void X<char>::foo() {}
+template <> void X<char>::bar() {}
+}
+
+namespace test1 {
+template <typename T> struct X {
+ virtual void foo();
+ virtual void bar();
+ virtual void baz();
+};
+
+template <typename T> void X<T>::foo() {}
+template <typename T> void X<T>::bar() {}
+template <typename T> void X<T>::baz() {}
+
+template <> void X<char>::bar() {}
+template <> void X<char>::foo() {}
+}
More information about the cfe-commits
mailing list