]> granicus.if.org Git - clang/commitdiff
Update test case, with comment to later investigate the correct behavior. Now the...
authorTed Kremenek <kremenek@apple.com>
Sat, 28 Aug 2010 00:19:12 +0000 (00:19 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 28 Aug 2010 00:19:12 +0000 (00:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112335 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/return-noreturn.cpp

index 9242d1240ab695e8cdc74197ce7e4e84ebbb9d12..dfd548732150437db19f643123ee32800e2d1302 100644 (file)
@@ -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;