gcc/testsuite/gcc.dg/bitint-83.c
raw| 1 | /* PR tree-optimization/113691 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-O2 -std=gnu11 -w" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 944 |
| 6 | _BitInt (944) i; |
| 7 | #else |
| 8 | _BitInt (63) i; |
| 9 | #endif |
| 10 | |
| 11 | void foo (); |
| 12 | |
| 13 | void |
| 14 | bar () |
| 15 | { |
| 16 | foo (i); |
| 17 | } |
| 18 | |
| 19 | void |
| 20 | foo (int *p) |
| 21 | { |
| 22 | *p = 0; |
| 23 | } |