summaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2003-10-27-VirtualBaseClassCrash.cpp
blob: f9fc80ee9407ba463a761645d9ad95905cffb5f0 (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 -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();
}
OpenPOWER on IntegriCloud