Merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / param-3.c
bloba3b5adb5a0bec86f0da078ecb7f0de5d3fde4e0d
1 /* { dg-do run } */
2 /* { dg-options "-g" } */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" "-O1" } } */
5 typedef __UINTPTR_TYPE__ uintptr_t;
7 __attribute__((noinline, noclone)) int
8 sub (int a, int b)
10 return a - b;
13 typedef struct { uintptr_t pa; uintptr_t pb; } fatp_t
14 __attribute__ ((aligned (2 * __alignof__ (uintptr_t))));
16 __attribute__((noinline, noclone)) void
17 foo (fatp_t str, int a, int b)
19 int i = sub (a, b);
20 if (i == 0) /* BREAK */
21 foo (str, a - 1, b);
24 int
25 main (void)
27 fatp_t ptr = { 31415927, 27182818 };
28 foo (ptr, 1, 2);
29 return 0;
32 /* { dg-final { gdb-test 20 "str.pa" "31415927" } } */
33 /* { dg-final { gdb-test 20 "str.pb" "27182818" } } */