diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-struct-included.c')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-struct-included.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-struct-included.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-struct-included.c deleted file mode 100644 index 382fecd6f..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-struct-included.c +++ /dev/null @@ -1,18 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */ - - -struct U -{ - float f; - int i; -}; - - -int foo () -{ - struct U u; - float *pf = (float*)&u; /* { dg-bogus "float included in struct U" } */ - *pf = 2.0; - return u.i; -} |