S/390: Allow immediates in loc expander
[official-gcc.git] / gcc / testsuite / gcc.dg / pr33676.c
blobc2344708c4dc32e4d6d9e48367a38095de354179
1 /* { dg-do run } */
2 /* { dg-options "" } */
3 /* { dg-options "-O0 -mtune=i386 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
5 __attribute__((noreturn,noinline)) void abrt (const char *fi, const char *fu)
7 __builtin_abort ();
10 __attribute__((noinline)) int f (int k)
12 return k;
15 __attribute__((noinline)) int g (int t, int k)
17 int b;
19 switch (t)
21 case 0:
22 abrt (__FILE__, __FUNCTION__);
24 case 1:
25 b = f (k);
26 break;
28 case 2:
29 b = f (k);
30 break;
32 case 3:
33 b = f (k);
34 break;
36 case 4:
37 b = f (k);
38 break;
40 default:
41 abrt (__FILE__, __FUNCTION__);
44 return b;
47 int main (void)
49 if (g (3, 1337) != 1337)
50 abrt (__FILE__, __FUNCTION__);
51 return 0;