PR target/84226
[official-gcc.git] / gcc / testsuite / gcc.target / tic6x / weak-call.c
blob9be9304800f925a41d9504adc1ee3b3fdeec1f11
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler-not "call\[\\t ]*.s.\[\\t ]*.f" } } */
4 /* { dg-final { scan-assembler-not "call\[\\t ]*.s.\[\\t ]*.g" } } */
6 extern void f () __attribute__ ((weak));
7 extern void g () __attribute__ ((weak)) __attribute__ ((noinline));
9 void g ()
13 int main ()
15 f ();
16 g ();