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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/Parser/pointer_promotion.c b/clang/test/Parser/pointer_promotion.c
index 9d9a5265676..8d2e6e7a80c 100644
--- a/clang/test/Parser/pointer_promotion.c
+++ b/clang/test/Parser/pointer_promotion.c
@@ -8,11 +8,11 @@ int test() {
struct bar *bp;
short sint = 7;
- if (ip < cp) ; // expected-warning {{comparison of distinct pointer types ('int *' and 'char *')}}
- if (cp < fp) ; // expected-warning {{comparison of distinct pointer types ('char *' and 'struct foo *')}}
- if (fp < bp) ; // expected-warning {{comparison of distinct pointer types ('struct foo *' and 'struct bar *')}}
- if (ip < 7) ; // expected-warning {{comparison between pointer and integer ('int *' and 'int')}}
- 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 *')}}
+ if (ip < cp) {} // expected-warning {{comparison of distinct pointer types ('int *' and 'char *')}}
+ if (cp < fp) {} // expected-warning {{comparison of distinct pointer types ('char *' and 'struct foo *')}}
+ if (fp < bp) {} // expected-warning {{comparison of distinct pointer types ('struct foo *' and 'struct bar *')}}
+ if (ip < 7) {} // expected-warning {{comparison between pointer and integer ('int *' and 'int')}}
+ 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