* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / pr43479.c
blobe0bc246cdae7b3122a16f05e25c64cdf4902c04d
1 /* PR debug/43479 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
5 __attribute__((noinline)) void
6 foo (int k, int l, int m, int n)
8 l++;
10 int h = n;
12 int i = k;
13 k++; /* { dg-final { gdb-test 13 "i" "6" } } */
14 } /* { dg-final { gdb-test 13 "h" "9" } } */
15 /* { dg-final { gdb-test 13 "n" "9" } } */
17 int j = m;
18 m++; /* { dg-final { gdb-test 18 "j" "8" } } */
19 } /* { dg-final { gdb-test 18 "h" "9" } } */
20 /* { dg-final { gdb-test 12 "n" "9" } } */
22 asm volatile ("" : : "r" (k), "r" (l));
23 asm volatile ("" : : "r" (m), "r" (n));
26 int
27 main (void)
29 int q = 6;
30 asm ("" : "+r" (q));
31 foo (q, q + 1, q + 2, q + 3);
32 return 0;