* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / patchable_function_entry-definition.c
blob54a57ba7226f50b0ac3963c830b681b5e008e298
1 /* { dg-do compile { target { ! nvptx*-*-* } } } */
2 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
3 /* { dg-final { scan-assembler-times "nop" 1 { target { ! alpha*-*-* } } } } */
4 /* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */
6 extern int a;
8 int f3 (void);
10 /* F3 should now get 1 NOP. */
11 int
12 __attribute__((noinline))
13 __attribute__((patchable_function_entry(1)))
14 f3 (void)
16 return 5*a;