aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/backend/fn-ref.c
blob: d987a28b8ef75f38b9c8529b4f5c831c6b01bae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
extern int fun0(int a);
extern int fun1(int a);

int foo(int a);
int foo(int a)
{
	int v = fun0(a);
	return v;
}

void *bar(int a)
{
	return fun1;
}

int fun0(int a)
{
	return a + 0;
}

int fun1(int a)
{
	return a + 1;
}

/*
 * check-name: llvm function reference
 * check-command: sparse-llvm-dis -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: fun[0-9]\.[1-9]
 */