blob: ee76dcb270e95126d7559de5aca52cb5674da82d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// RUN: %clang_cc1 %s -fsyntax-only -verify -Wreturn-type -Wno-unreachable-code
// XFAIL: *
// A destructor may be marked noreturn and should still influence the CFG.
namespace PR6884 {
struct abort_struct {
abort_struct() {} // Make this non-POD so the destructor is invoked.
~abort_struct() __attribute__((noreturn));
};
int f() {
abort_struct();
}
int f2() {
abort_struct s;
}
}
|