From: Daniel Dunbar Date: Thu, 23 Jul 2009 05:06:51 +0000 (+0000) Subject: Fix test case, which has a control-reaches-end-of-non-void warning that was X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=527e5429989782aef5411a18bf01cc9b4170fde1;p=clang 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 --- 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 *')}} } -