diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/cast-4.c')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/gcc.dg/cast-4.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/cast-4.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/cast-4.c deleted file mode 100644 index ebc84c11c..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.dg/cast-4.c +++ /dev/null @@ -1,13 +0,0 @@ -/* Test warnings when casting from a constant integer to pointer. - Test with -pedantic-errors. */ -/* Origin: Carlos O'Donell <carlos@codesourcery.com> */ -/* { dg-do compile } */ -/* { dg-options "-std=gnu99 -pedantic-errors" } */ - -extern int i; -char c; -void -f (void) -{ - c = (char)&i; /* { dg-warning "cast from pointer to integer of different size" } */ -} |