PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr34099-2.c
blobd335673e30f2de9527421044acc232b6aede32dd
1 int test1 (int b, int c)
3 char x;
4 if (b)
5 return x / c;
6 else
7 return 1;
9 int test2 (int b, int c)
11 int x;
12 if (b)
13 return x * c;
14 else
15 return 1;
17 int test3 (int b, int c)
19 int x;
20 if (b)
21 return x % c;
22 else
23 return 1;
25 int test4 (int b, int c)
27 char x;
28 if (b)
29 return x == c;
30 else
31 return 1;
34 extern void abort (void);
35 int main()
37 if (test1(1, 1000) != 0)
38 abort ();
39 if (test2(1, 0) != 0)
40 abort ();
41 if (test3(1, 1) != 0)
42 abort ();
43 if (test4(1, 1000) != 0)
44 abort ();
45 return 0;