* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030626-1.c
blob3a96786fefea386fe7723a538e64f358f95793d8
1 /* PR optimization/11210 */
2 /* Originator: Guido Classen <guido@clagi.de> */
3 /* Reduced testcase by Falk Hueffner <falk@debian.org> */
4 /* { dg-do compile } */
5 /* { dg-options "-O" } */
7 /* Verify that the constant expressions folder doesn't
8 throw away the cast operation in the comparison. */
10 struct str {
11 int head;
12 signed char data[8];
15 int foo(struct str t)
17 return t.data[0] || (unsigned char) t.data[2] != 130; /* { dg-bogus "comparison is always 1" } */