[cfe-commits] r100801 - /cfe/trunk/test/Sema/return.c

Ted Kremenek kremenek at apple.com
Thu Apr 8 11:51:48 PDT 2010


Author: kremenek
Date: Thu Apr  8 13:51:47 2010
New Revision: 100801

URL: http://llvm.org/viewvc/llvm-project?rev=100801&view=rev
Log:
Update test case.

Modified:
    cfe/trunk/test/Sema/return.c

Modified: cfe/trunk/test/Sema/return.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/return.c?rev=100801&r1=100800&r2=100801&view=diff
==============================================================================
--- cfe/trunk/test/Sema/return.c (original)
+++ cfe/trunk/test/Sema/return.c Thu Apr  8 13:51:47 2010
@@ -225,7 +225,7 @@
 
 // Test that 'static inline' functions are only analyzed for CFG-based warnings
 // when they are used.
-static inline int si_has_missing_return() {} // no-warning
+static inline int si_has_missing_return() {} // expected-warning{{control reaches end of non-void function}}
 static inline int si_has_missing_return_2() {}; // expected-warning{{control reaches end of non-void function}}
 static inline int si_forward();
 static inline int si_has_missing_return_3(int x) {





More information about the cfe-commits mailing list