summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cast-3.c
diff options
context:
space:
mode:
authorcarlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-05 19:07:16 +0000
committercarlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-05 19:07:16 +0000
commitb8656032abce68578d31c7656464023f7eb26988 (patch)
tree15cf481d09f0cb7055c11c72680efb49ec41df87 /gcc/testsuite/gcc.dg/cast-3.c
parentdeaa70c66be7bd6ae8a85b2b006850841ad49f18 (diff)
downloadgcc-b8656032abce68578d31c7656464023f7eb26988.tar.gz
gcc/
2006-01-05 Carlos O'Donell <carlos@codesourcery.com> * c-typeck.c (build_c_cast): Always warn when casting from a pointer to an integer of different size, even if the node was constant. gcc/testsuite 2006-01-05 Carlos O'Donell <carlos@codesourcery.com> * gcc.dg/cast-1.c: Add new warning. * gcc.dg/cast-2.c: Likewise. * gcc.dg/cast-3.c: Likewise. * gcc.dg/format/cast-1.c: Likewise. * gcc.dg/cast-4.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109386 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cast-3.c')
-rw-r--r--gcc/testsuite/gcc.dg/cast-3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/cast-3.c b/gcc/testsuite/gcc.dg/cast-3.c
index 656bf6dc795..26a38cbbda0 100644
--- a/gcc/testsuite/gcc.dg/cast-3.c
+++ b/gcc/testsuite/gcc.dg/cast-3.c
@@ -37,5 +37,5 @@ f (void)
(void *) c; /* { dg-warning "warning: cast to pointer from integer of different size" } */
(void *) (char) 1;
(char) p; /* { dg-warning "warning: cast from pointer to integer of different size" } */
- (char) (void *) 1;
+ (char) (void *) 1; /* { dg-warning "warning: cast from pointer to integer of different size" } */
}