1 /* Verify that DECL_INLINE gets copied between DECLs properly. */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fgnu89-inline" } */
4 /* { dg-final { if [ istarget hppa*-*-* ] { scan-assembler-not "xyzzy?,%r" } else { scan-assembler-not "xyzzy" } } } */
6 /* Test that declaration followed by definition inlines. */
7 static inline int xyzzy0 (int);
8 static int xyzzy0 (int x
) { return x
; }
14 /* Test that definition following declaration inlines. */
15 static int xyzzy1 (int);
16 static inline int xyzzy1 (int x
) { return x
; }
22 /* Test that redeclaration inside a function body inlines. */
23 extern inline int xyzzy2 (int x
) { return x
; }
26 extern int xyzzy2 (int);