* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030213-1.c
blob8394ba054adcb0d7e4385f8a518929464fcb0a4e
1 /* Testcase for http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01017.html */
2 /* { dg-do link } */
3 /* { dg-options "-O -fpic" } */
4 /* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
5 /* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
7 int *g;
9 int main (void)
11 switch (*g)
13 case 0:
15 switch (*g)
17 case 0: *g = 1; break;
18 case 1:
19 case 2: *g = 1; break;
20 case 3:
21 case 4: *g = 1; break;
23 break;
25 case 1:
27 switch (*g)
29 case 0: *g = 1; break;
30 case 1:
31 case 2: *g = 1; break;
32 case 3:
33 case 4: *g = 1; break;
37 return 0;