aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 *')}}
}
-