Fix regression in -Wreturn-type caused by not
[clang.git] / test / SemaCXX / return-noreturn-XFAIL.cpp
blobee76dcb270e95126d7559de5aca52cb5674da82d
1 // RUN: %clang_cc1 %s -fsyntax-only -verify -Wreturn-type -Wno-unreachable-code
2 // XFAIL: *
4 // A destructor may be marked noreturn and should still influence the CFG.
5 namespace PR6884 {
6 struct abort_struct {
7 abort_struct() {} // Make this non-POD so the destructor is invoked.
8 ~abort_struct() __attribute__((noreturn));
9 };
11 int f() {
12 abort_struct();
15 int f2() {
16 abort_struct s;