summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/pointer_promotion.c
diff options
context:
space:
mode:
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