1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -mzarch -mhotpatch=1000000" } */
10 printf("hello, world!\n");
13 __attribute__ ((hotpatch(1000000)))
16 printf("hello, world!\n");
19 __attribute__ ((hotpatch(1000001)))
21 { /* { dg-error "requested 'hotpatch' attribute is not a non-negative integer constant or too large .max. 1000000." } */
22 printf("hello, world!\n");