blob: 3d369065a1dd030b16680c5b83b17315a9b860e4 [file] [log] [blame]
// PR c++/41090
// { dg-do run }
// { dg-options "-save-temps" }
// { dg-require-effective-target indirect_jumps }
// { dg-final { scan-assembler "_ZN1CC4Ev" } }
int i;
struct A { A() {} };
struct C: virtual A
{
C();
};
C::C()
{
static void *labelref = &&label;
goto *labelref;
label: i = 1;
}
int main()
{
C c;
return (i != 1);
}