summaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2003-10-27-VirtualBaseClassCrash.cpp
blob: abda017ab96bf5c75bbf49964380381f26773f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %llvmgxx -S %s -o - | llvm-as -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();
}
OpenPOWER on IntegriCloud