aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/return.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-11 23:34:02 +0000
committerChris Lattner <sabre@nondot.org>2010-07-11 23:34:02 +0000
commit184aa4e6ded190bfb3bbe207040467f8d7e28a04 (patch)
tree721351053208d03bded51047c87bff7245d68cd3 /test/Sema/return.c
parent9b3215d5aba6c687a3ee46b0f36367f416ac34cc (diff)
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
Diffstat (limited to 'test/Sema/return.c')
-rw-r--r--test/Sema/return.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/return.c b/test/Sema/return.c
index 0d46d981be..2d23e08039 100644
--- a/test/Sema/return.c
+++ b/test/Sema/return.c
@@ -1,4 +1,4 @@
-// RUN: %clang %s -fsyntax-only -Xclang -verify -fblocks -Wno-unreachable-code -Wno-unused-value
+// RUN: %clang %s -fsyntax-only -Wreturn-type -Xclang -verify -fblocks -Wno-unreachable-code -Wno-unused-value
// clang emits the following warning by default.
// With GCC, -pedantic, -Wreturn-type or -Wall are required to produce the