gcc/testsuite/gcc.target/s390/hotpatch-compile-11.c
raw| 1 | /* Functional tests for the function hotpatching feature. */ |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-O3 -mzarch" } */ |
| 5 | |
| 6 | int a; |
| 7 | |
| 8 | __attribute__((hotpatch(a,0))) |
| 9 | int main (void) |
| 10 | { /* { dg-error "attribute is not a comma separated pair of non-negative integer constants or too large" } */ |
| 11 | return 0; |
| 12 | } |