X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Funinit-4.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Funinit-4.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a27317ebed500b1aa892f791833d8b124fc3e0b3;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/uninit-4.c b/gcc/testsuite/gcc.dg/uninit-4.c deleted file mode 100644 index a27317eb..00000000 --- a/gcc/testsuite/gcc.dg/uninit-4.c +++ /dev/null @@ -1,52 +0,0 @@ -/* Spurious uninit variable warnings, case 4. - Simplified version of cppexp.c (cpp_parse_expr). - - This one is really fragile, it gets it right if you take out case - 1, or if the structure is replaced by an int, or if the structure - has fewer members (!) */ - -/* { dg-do compile } */ -/* { dg-options "-O -Wuninitialized" } */ - -extern void abort (void); - -struct operation { - short op; - char rprio; - char flags; - char unsignedp; - long value; -}; - -extern struct operation cpp_lex (void); - -void -cpp_parse_expr (void) -{ - int rprio; /* { dg-bogus "rprio" "uninitialized variable warning" { xfail *-*-* } } */ - struct operation op; - - for (;;) - { - op = cpp_lex (); - - switch (op.op) - { - case 0: - break; - case 1: - return; - case 2: - rprio = 1; - break; - default: - return; - } - - if (op.op == 0) - return; - - if (rprio != 1) - abort(); - } -}