minix/external/bsd/llvm/dist/clang/test/CodeGenCXX/PR6474.cpp
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

31 lines
680 B
C++

// RUN: %clang_cc1 %s -emit-llvm-only
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() {}
}