OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / infloop-1.C
1 // PR 18300: This sends old compilers into an infinite loop on x86_64
2 // Testcase and patch contributed by Zak Kipling <zak@transversal.com>
3
4 struct base1 { };
5 struct base2 { };
6 struct base3 { };
7
8 struct derived : base1, base2, base3 { };
9
10 void foo(derived);
11
12 int main()
13 {
14   foo(derived());
15 }
16