YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenCXX/PR6474.cpp
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

32 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() {}
}