mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 06:30:30 +00:00
fd93908ae8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21427 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
220 B
C++
18 lines
220 B
C++
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
|
|
|
|
|
template<class T>
|
|
struct super {
|
|
int Y;
|
|
void foo();
|
|
};
|
|
|
|
template <class T>
|
|
struct test : virtual super<int> {};
|
|
|
|
extern test<int> X;
|
|
|
|
void foo() {
|
|
X.foo();
|
|
}
|