Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / patchable_function_entry-decl.c
blob32e2c06eae3932f16bdd910e8c6043ae6084675f
1 /* { dg-do compile { target { ! nvptx*-*-* } } } */
2 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
3 /* { dg-final { scan-assembler-times "nop" 2 { target { ! { alpha*-*-* visium-*-* } } } } } */
4 /* { dg-final { scan-assembler-times "bis" 2 { target alpha*-*-* } } } */
5 /* { dg-final { scan-assembler-times "nop" 3 { target visium-*-* } } } */
7 extern int a;
9 /* Respect overriding attributes in the declaration. */
10 int f3 (void) __attribute__((patchable_function_entry(2)));
12 /* F3 should now get 2 NOPs. */
13 int
14 __attribute__((noinline))
15 f3 (void)
17 return 5*a;