summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/return-noreturn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/return-noreturn.cpp')
-rw-r--r--test/SemaCXX/return-noreturn.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/SemaCXX/return-noreturn.cpp b/test/SemaCXX/return-noreturn.cpp
index 9242d12..dfd5487 100644
--- a/test/SemaCXX/return-noreturn.cpp
+++ b/test/SemaCXX/return-noreturn.cpp
@@ -7,9 +7,12 @@ namespace PR6884 {
~abort_struct() __attribute__((noreturn));
};
+ // FIXME: Should either of these actually warn, since the destructor is
+ // marked noreturn?
+
int f() {
abort_struct();
- }
+ } // expected-warning{{control reaches end of non-void function}}
int f2() {
abort_struct s;
OpenPOWER on IntegriCloud