Fold ctz(-x) and ctz(abs(x)) as ctz(x) in match.pd.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20010106-1.c
blob15ed1c13cb3341469835a1ecd0a753abc7c3ed94
1 /* Copyright 2001 Free Software Foundation
2 Contributed by Alexandre Oliva <aoliva@redhat.com> */
4 void abort (void);
5 void exit (int);
7 int f(int i) {
8 switch (i)
10 case -2:
11 return 33;
12 case -1:
13 return 0;
14 case 0:
15 return 7;
16 case 1:
17 return 4;
18 case 2:
19 return 3;
20 case 3:
21 return 15;
22 case 4:
23 return 9;
24 default:
25 abort ();
29 int main() {
30 if (f(-1))
31 abort ();
32 exit (0);