Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / pr54796.c
blobf58e5a02cc6d404723c45c8b5ec9c982d1fa7759
1 /* PR debug/54796 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
5 __attribute__((noinline, noclone)) void
6 bar (char *a, int b)
8 __asm volatile ("" : "+r" (a), "+r" (b) : : "memory");
11 __attribute__((noinline, noclone)) void
12 foo (int a, int b)
14 int c = a;
15 char d[b]; /* { dg-final { gdb-test 17 "a" "5" } } */
16 bar (d, 2); /* { dg-final { gdb-test 17 "b" "6" } } */
17 bar (d, 4); /* { dg-final { gdb-test 17 "c" "5" } } */
20 int
21 main ()
23 foo (5, 6);
24 return 0;