PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr67226.c
blobc533496cbc6fa06872d415c3bba5cc5fe8d4c651
1 struct assembly_operand
3 int type, value, symtype, symflags, marker;
4 };
6 struct assembly_operand to_input, from_input;
8 void __attribute__ ((__noinline__, __noclone__))
9 assemblez_1 (int internal_number, struct assembly_operand o1)
11 if (o1.type != from_input.type)
12 __builtin_abort ();
15 void __attribute__ ((__noinline__, __noclone__))
16 t0 (struct assembly_operand to, struct assembly_operand from)
18 if (to.value == 0)
19 assemblez_1 (32, from);
20 else
21 __builtin_abort ();
24 int
25 main (void)
27 to_input.value = 0;
28 to_input.type = 1;
29 to_input.symtype = 2;
30 to_input.symflags = 3;
31 to_input.marker = 4;
33 from_input.value = 5;
34 from_input.type = 6;
35 from_input.symtype = 7;
36 from_input.symflags = 8;
37 from_input.marker = 9;
39 t0 (to_input, from_input);
41 return 0;