Fix test case, which has a control-reaches-end-of-non-void warning that was
authorDaniel Dunbar <daniel@zuster.org>
Thu, 23 Jul 2009 05:06:51 +0000 (05:06 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 23 Jul 2009 05:06:51 +0000 (05:06 +0000)
being masked by previous bug.

llvm-svn: 76858

clang/test/Parser/pointer_promotion.c

index 0254828..3226eab 100644 (file)
@@ -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 *')}}
 }
-