diagnostics: remove duplicate copies of diagnostic_kind_text
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-compile-16.c
blob2e8291ede34540b59ef619141ec7245e3808ca11
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -mzarch" } */
6 typedef int (*fn_t)(void);
8 fn_t hp1(void)
10 __attribute__((hotpatch(0,0)))
11 int nested1(void)
12 { return 1; }
14 return nested1;
17 fn_t hp2(void)
19 __attribute__ ((hotpatch(1,2)))
20 int nested2(void)
21 { return 2; }
23 return nested2;