summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/eh58.C
blob: 9bc89260c3151d4a38e2b610cedc6d8052ab52e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// { dg-options "-fexceptions" }

struct C {
    bool mem;
    ~C();
};

C genTemp();
  
int foo_notok(int arg) {
    switch (arg) {
    case 0:
        return genTemp().mem;
    default:
        return 3;
    }
}