PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr65648.c
blob88a2fc9a22a1f112426e0c8e51b3ff5c7f248a9b
1 /* PR target/65648 */
3 int a = 0, *b = 0, c = 0;
4 static int d = 0;
5 short e = 1;
6 static long long f = 0;
7 long long *i = &f;
8 unsigned char j = 0;
10 __attribute__((noinline, noclone)) void
11 foo (int x, int *y)
13 asm volatile ("" : : "r" (x), "r" (y) : "memory");
16 __attribute__((noinline, noclone)) void
17 bar (const char *x, long long y)
19 asm volatile ("" : : "r" (x), "r" (&y) : "memory");
20 if (y != 0)
21 __builtin_abort ();
24 int
25 main ()
27 int k = 0;
28 b = &k;
29 j = (!a) - (c <= e);
30 *i = j;
31 foo (a, &k);
32 bar ("", f);
33 return 0;