commit | 2d85f8ba62fd6fdcf0ae303d77112b413d412cae | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Wed Oct 10 20:50:11 2007 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Wed Oct 10 20:50:11 2007 +0000 |
tree | 0901bcfb9d9842d53697715bd3f16ce42b8a2315 | |
parent | 6f688e131e125ffce23a63a9d286578a454cc4e0 [diff] [blame] |
Emit a warning when the body of an if block is a NullStmt. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42840 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/default.c b/test/Sema/default.c index b51ab9a..92f7278 100644 --- a/test/Sema/default.c +++ b/test/Sema/default.c
@@ -3,6 +3,6 @@ void f5 (int z) { if (z) default: // expected-error {{not in switch statement}} - ; + ; // expected-warning {{if statement has empty body}} }