* testsuite/Makefile.am: Add in-tree assembler to gcctestdir.
[deliverable/binutils-gdb.git] / gold / testsuite / ifunc-sel.h
CommitLineData
7223e9ca
ILT
1/* Used by the elf ifunc tests. */
2#ifndef ELF_IFUNC_SEL_H
3#define ELF_IFUNC_SEL_H 1
4
5extern int global;
6
7static inline void *
8ifunc_sel (int (*f1) (void), int (*f2) (void), int (*f3) (void))
9{
10 switch (global)
11 {
12 case 1:
13 return f1;
14 case -1:
15 return f2;
16 default:
17 return f3;
18 }
19}
20
21static inline void *
22ifunc_one (int (*f1) (void))
23{
24 return f1;
25}
26#endif
This page took 0.054024 seconds and 4 git commands to generate.