PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr30185.c
blob3e974ce57e3838d7932cb96d7aa056f4f617f298
1 /* PR target/30185 */
3 extern void abort (void);
5 typedef struct S { char a; long long b; } S;
8 foo (S x, S y)
10 S z;
11 z.b = x.b / y.b;
12 return z;
15 int
16 main (void)
18 S a, b;
19 a.b = 32LL;
20 b.b = 4LL;
21 if (foo (a, b).b != 8LL)
22 abort ();
23 a.b = -8LL;
24 b.b = -2LL;
25 if (foo (a, b).b != 4LL)
26 abort ();
27 return 0;