* name-lookup.h (lookup_field_1): Delete.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / sh-relax.c
blob54422de46d2415870472d8d87c87aa676dcece09
1 /* Check that -mrelax works. */
2 /* { dg-do run { target { { sh-*-* sh?-*-* } && { ! { sh*-*-vxworks* && nonpic } } } } } */
3 /* { dg-options "-O1 -mrelax" } */
5 extern void abort (void);
6 extern int qwerty (int);
8 int
9 f (int i)
11 return qwerty (i) + 1;
14 int
15 qwerty (int i)
17 switch (i)
19 case 1:
20 return 'q';
21 case 2:
22 return 'w';
23 case 3:
24 return 'e';
25 case 4:
26 return 'r';
27 case 5:
28 return 't';
29 case 6:
30 return 'y';
34 int
35 main ()
37 if (f (1) != 'q' + 1 || f (2) != 'w' + 1 || f (3) != 'e' + 1
38 || f(4) != 'r' + 1 || f (5) != 't' + 1 || f (6) != 'y' + 1)
39 abort ();
40 return 0;