projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2f7c95
)
Fix test case, which has a control-reaches-end-of-non-void warning that was
author
Daniel Dunbar
<daniel@zuster.org>
Thu, 23 Jul 2009 05:06:51 +0000
(
05:06
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Thu, 23 Jul 2009 05:06:51 +0000
(
05:06
+0000)
being masked by previous bug.
llvm-svn: 76858
clang/test/Parser/pointer_promotion.c
patch
|
blob
|
history
diff --git
a/clang/test/Parser/pointer_promotion.c
b/clang/test/Parser/pointer_promotion.c
index 0254828e0f02581044249dd17aa40943b7a83587..3226eabbf53d5eb4b2d1ed3091f85d2d797d0a92 100644
(file)
--- 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 *')}}
}
-