summaryrefslogtreecommitdiffstats
path: root/trunk/testsuite/ifunctest.c
blob: 9ce7b1a5a75c8fd5ae25576abf9d6c5d799365c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "ifunc.h"

static int foo1 (void) { return 1; }
static int foo2 (void) { return 2; }

IFUNC_LOCAL (foo, foo1, foo2);

extern void abort (void);

int
main (void)
{
  if (foo () != PICKNO)
    abort ();
  return 0;
}