summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/pointer_promotion.c
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
commit34169976d0375f4d851cd85d8568ca5f6152b442 (patch)
tree2f927f9d1b28e0a2a10a0218832de1d833860da8 /clang/test/Parser/pointer_promotion.c
parenta2f7c95dcafd2751be823e585aa1ad1cf0f4bb50 (diff)
downloadbcm5719-llvm-34169976d0375f4d851cd85d8568ca5f6152b442.tar.gz
bcm5719-llvm-34169976d0375f4d851cd85d8568ca5f6152b442.zip
Fix test case, which has a control-reaches-end-of-non-void warning that was
being masked by previous bug. llvm-svn: 76858
Diffstat (limited to 'clang/test/Parser/pointer_promotion.c')
-rw-r--r--clang/test/Parser/pointer_promotion.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Parser/pointer_promotion.c b/clang/test/Parser/pointer_promotion.c
index 0254828e0f0..3226eabbf53 100644
--- a/clang/test/Parser/pointer_promotion.c
+++ b/clang/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 *')}}
}
-
OpenPOWER on IntegriCloud