summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr42739.C
blob: ccc05f8360c107d200b76e667ef742df3df791ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */

struct s { ~s() { s(); } };

int f()
{
  M:
    s o = s();
    f();
    f();

  L:
    goto *(f() ? &&L : &&M);

    return 0;
}