gcc/testsuite/gcc.target/s390/nobp-section-type-conflict.c
raw| 1 | /* Checks that we don't get error: section type conflict with ‘put_page’. */ |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-mindirect-branch=thunk-extern -mfunction-return=thunk-extern -mindirect-branch-table -O2" } */ |
| 5 | |
| 6 | int a; |
| 7 | int b (void); |
| 8 | void c (int); |
| 9 | |
| 10 | static void |
| 11 | put_page (void) |
| 12 | { |
| 13 | if (b ()) |
| 14 | c (a); |
| 15 | } |
| 16 | |
| 17 | __attribute__ ((__section__ (".init.text"), __cold__)) void |
| 18 | d (void) |
| 19 | { |
| 20 | put_page (); |
| 21 | put_page (); |
| 22 | } |