analyzer: enable taint state machine by default [PR103533]
[official-gcc.git] / gcc / testsuite / c-c++-common / patchable_function_entry-definition.c
blob5ed356c16452781b751b876f2637da19bfc96d7b
1 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
2 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
3 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
4 /* { dg-final { scan-assembler-times "nop|NOP|SWYM" 1 { target { ! { alpha*-*-* riscv*-*-* } } } } } */
5 /* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */
6 /* { dg-final { scan-assembler-times "nop\n" 1 { target riscv*-*-* } } } */
8 extern int a;
10 int f3 (void);
12 /* F3 should now get 1 NOP. */
13 int
14 __attribute__((noinline))
15 __attribute__((patchable_function_entry(1)))
16 f3 (void)
18 return 5*a;