commit | 184aa4e6ded190bfb3bbe207040467f8d7e28a04 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Jul 11 23:34:02 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Jul 11 23:34:02 2010 +0000 |
tree | 721351053208d03bded51047c87bff7245d68cd3 | |
parent | 9b3215d5aba6c687a3ee46b0f36367f416ac34cc [diff] [blame] |
fix PR7280 by making the warning on code like this: int test1() { return; } default to an error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108108 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/statements.c b/test/CodeGen/statements.c index e3835f0..7ed82ad 100644 --- a/test/CodeGen/statements.c +++ b/test/CodeGen/statements.c
@@ -1,4 +1,4 @@ -// RUN: %clang_cc1 < %s -emit-llvm +// RUN: %clang_cc1 -Wreturn-type < %s -emit-llvm void test1(int x) { switch (x) {