[cfe-commits] r112335 - /cfe/trunk/test/SemaCXX/return-noreturn.cpp
Ted Kremenek
kremenek at apple.com
Fri Aug 27 17:19:12 PDT 2010
Author: kremenek
Date: Fri Aug 27 19:19:12 2010
New Revision: 112335
URL: http://llvm.org/viewvc/llvm-project?rev=112335&view=rev
Log:
Update test case, with comment to later investigate the correct behavior. Now the behavior is at least consistent.
Modified:
cfe/trunk/test/SemaCXX/return-noreturn.cpp
Modified: cfe/trunk/test/SemaCXX/return-noreturn.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/return-noreturn.cpp?rev=112335&r1=112334&r2=112335&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/return-noreturn.cpp (original)
+++ cfe/trunk/test/SemaCXX/return-noreturn.cpp Fri Aug 27 19:19:12 2010
@@ -7,9 +7,12 @@
~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;
More information about the cfe-commits
mailing list