summaryrefslogtreecommitdiffstats
path: root/clang/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
commit33919e7450530e64804651c25a306cff548b39fb (patch)
tree18ea4a4c52e6aa8d7a8790d5a6aab6a362886e1e /clang/test/Sema/return.c
parentb6df00c29a9b4f456487280390f29640c2ef5974 (diff)
downloadbcm5719-llvm-33919e7450530e64804651c25a306cff548b39fb.tar.gz
bcm5719-llvm-33919e7450530e64804651c25a306cff548b39fb.zip
fix PR7280 by making the warning on code like this:
int test1() { return; } default to an error. llvm-svn: 108108
Diffstat (limited to 'clang/test/Sema/return.c')
-rw-r--r--clang/test/Sema/return.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/return.c b/clang/test/Sema/return.c
index 0d46d981bed..2d23e080396 100644
--- a/clang/test/Sema/return.c
+++ b/clang/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
OpenPOWER on IntegriCloud