aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/eh58.C
blob: 967e74ab12dc6058f3772c80726f35060805a009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link:
// Special g++ Options: -fexceptions

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

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