gcc/testsuite/gcc.dg/ipa/ipa-bit-cp-2.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-fpermissive -O2 -w -fipa-bit-cp" } */ |
| 3 | static int |
| 4 | __attribute__ ((noinline)) |
| 5 | test (int __attribute__((unused)) b, int a) |
| 6 | { |
| 7 | if (!(a&2)) |
| 8 | link_error (); |
| 9 | } |
| 10 | |
| 11 | extern int __attribute__((const)) getint (); |
| 12 | |
| 13 | main() |
| 14 | { |
| 15 | test (getint(), 2); |
| 16 | test (getint(), 3); |
| 17 | test (getint(), 6); |
| 18 | return 0; |
| 19 | } |