eh58.C   [plain text]


// 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;
    }
}