PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / param-1.c
blob480ad3c13b65a6b9f5cacd9c1c73206b6be77071
1 /* { dg-do run } */
2 /* { dg-options "-g" } */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
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 i = sub (b, a);
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" } } */