c++: prev declared hidden tmpl friend inst [PR112288]
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / iinline-attr.c
blob4b9e8574795a10f00cc3696efac987f1be61be1b
1 /* Verify that simple indirect calls are inlined even when
2 attribute __optimize is used. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fdump-ipa-inline" } */
6 extern void non_existent(int);
8 static void hooray ()
10 non_existent (1);
13 __attribute__ ((__optimize__ ("O2")))
14 static void hiphip (void (*f)())
16 non_existent (2);
17 f ();
20 int test (void)
22 hiphip (hooray);
23 return 0;
26 /* { dg-final { scan-ipa-dump "hooray\[^\\n\]*inline copy in test" "inline" { xfail sparc*-*-* visium-*-* } } } */
27 /* Missing back-end support for attribute __optimize__ on SPARC and Visium. */