]> granicus.if.org Git - clang/commitdiff
Update test case.
authorTed Kremenek <kremenek@apple.com>
Thu, 8 Apr 2010 18:51:47 +0000 (18:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 8 Apr 2010 18:51:47 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100801 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/return.c

index fab6a82aa7042be0bc16c29e53dd115a2fcad002..0d46d981bed20f362e243524b86d05de99ed9e06 100644 (file)
@@ -225,7 +225,7 @@ void test33() {
 
 // 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) {