gcc/testsuite/gcc.c-torture/execute/pr93402.c
raw| 1 | /* PR rtl-optimization/93402 */ |
| 2 | |
| 3 | struct S { unsigned int a; unsigned long long b; }; |
| 4 | |
| 5 | __attribute__((noipa)) struct S |
| 6 | foo (unsigned long long x) |
| 7 | { |
| 8 | struct S ret; |
| 9 | ret.a = 0; |
| 10 | ret.b = x * 11111111111ULL + 111111111111ULL; |
| 11 | return ret; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | main () |
| 16 | { |
| 17 | struct S a = foo (1); |
| 18 | if (a.a != 0 || a.b != 122222222222ULL) |
| 19 | __builtin_abort (); |
| 20 | return 0; |
| 21 | } |