diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/warn/Warray-bounds-3.C')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/g++.dg/warn/Warray-bounds-3.C | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/warn/Warray-bounds-3.C b/gcc-4.8.1/gcc/testsuite/g++.dg/warn/Warray-bounds-3.C deleted file mode 100644 index a85857179..000000000 --- a/gcc-4.8.1/gcc/testsuite/g++.dg/warn/Warray-bounds-3.C +++ /dev/null @@ -1,15 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -Wall" } */ - -extern void function(void * x); - -struct A { - long x; - char d[0]; -}; - - -void test(A * a) { - function((char *)a - 4); /* { dg-bogus "below array bounds" } */ -} - |