[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20090311-1_0.C
blob60c002fbfba72ba604175194b51408f17217cc61
1 /* { dg-lto-do run }  */
2 #include "20090311-1.h"
3 bool flag;
5 struct B {
6     int a;
7     enum { ANOTHER, ONE } f2_;
8     float c;
9 };
11 extern struct B x[];
13 struct C {
14     int x;
15     struct B *p;
16     float d;
19 C c = { 0, 0, 3.4 };
21 struct A {
22     enum { UNO, DOS, TRES } f1_;
23     int x;
26 A a;
28 extern int foo();
30 int
31 main()
33   a.x = 4 + c.x;
34   foo();
35   return 0;