aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp
blob: 39ec5c76fac964c8de87a15f96cfd2b285823256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

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();
}