aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-23 05:06:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-23 05:06:51 +0000
commit527e5429989782aef5411a18bf01cc9b4170fde1 (patch)
treeadd786036658a329bd21c809704147d4c2a85cf4
parent1f15e768983a614e45c3ca01df1ddb3339e746dd (diff)
Fix test case, which has a control-reaches-end-of-non-void warning that was
being masked by previous bug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76858 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Parser/pointer_promotion.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Parser/pointer_promotion.c b/test/Parser/pointer_promotion.c
index 0254828e0f..3226eabbf5 100644
--- a/test/Parser/pointer_promotion.c
+++ b/test/Parser/pointer_promotion.c
@@ -1,6 +1,6 @@
// RUN: clang-cc -fsyntax-only -verify %s
-int test() {
+void test() {
void *vp;
int *ip;
char *cp;
@@ -15,4 +15,3 @@ int test() {
if (sint < ip) {} // expected-warning {{comparison between pointer and integer ('int' and 'int *')}}
if (ip == cp) {} // expected-warning {{comparison of distinct pointer types ('int *' and 'char *')}}
}
-