1 /* Test if functions marked __attribute__((used)), but with address never
2 taken in C code, don't use alternate calling convention for local
4 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
5 /* { dg-options "-O2" } */
7 extern void abort (void);
9 static int foo (int, int, int, int) __asm ("foo");
10 static __attribute__((noinline
, used
)) int
11 foo (int i
, int j
, int k
, int l
)
19 if (foo (1, 2, 3, 4) != 10)
23 int (*fn
) (int, int, int, int);
28 __asm ("movl $foo, %k0" : "=r" (fn
));
29 if (fn (2, 3, 4, 5) != 14)