summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/infloop-1.C
blob: 6c851c7e5e9be02f3bb3ab6ddcd0609813518eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR 18300: This sends old compilers into an infinite loop on x86_64
// Testcase and patch contributed by Zak Kipling <zak@transversal.com>

struct base1 { };
struct base2 { };
struct base3 { };

struct derived : base1, base2, base3 { };

void foo(derived);

int main()
{
  foo(derived());
}