summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/PR6474.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-03-10 14:01:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-03-10 14:01:14 +0000
commit266e05ca8a77fa26fa136b5e45b58cba42e1d818 (patch)
treef4dff4af10819f69483db779aa947927798014ea /test/CodeGenCXX/PR6474.cpp
parent7c2342dd4c9947806842e5aca3d2bb2e542853c9 (diff)
Move test and also test codegen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/PR6474.cpp')
-rw-r--r--test/CodeGenCXX/PR6474.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/CodeGenCXX/PR6474.cpp b/test/CodeGenCXX/PR6474.cpp
new file mode 100644
index 0000000000..68c09c9b95
--- /dev/null
+++ b/test/CodeGenCXX/PR6474.cpp
@@ -0,0 +1,31 @@
+// RUN: %clang_cc1 %s -emit-llvm
+
+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() {}
+}