Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / label13.C
blobd932a9a50514c341d0de59296294277f7086d12c
1 // PR c++/41090
2 // { dg-do run }
3 // { dg-options "" }
5 int i;
6 struct C
8   C();
9 };
11 C::C()  // { dg-bogus "can never be copied" "" { xfail { { *-apple-darwin* alpha*-dec-osf* } || { hppa*-*-hpux* && { ! hppa*64*-*-* } } } } }
13   static void *labelref = &&label;
14   goto *labelref;
15  label: i = 1;
18 int main()
20   C c;
21   return (i != 1);