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 
main()12 int main()
13 {
14   foo(derived());
15 }
16 
17