1*c85f09ccSJohn Levon extern int fun0(int a);
2*c85f09ccSJohn Levon extern int fun1(int a);
3*c85f09ccSJohn Levon 
4*c85f09ccSJohn Levon int foo(int a);
foo(int a)5*c85f09ccSJohn Levon int foo(int a)
6*c85f09ccSJohn Levon {
7*c85f09ccSJohn Levon 	int v = fun0(a);
8*c85f09ccSJohn Levon 	return v;
9*c85f09ccSJohn Levon }
10*c85f09ccSJohn Levon 
bar(int a)11*c85f09ccSJohn Levon void *bar(int a)
12*c85f09ccSJohn Levon {
13*c85f09ccSJohn Levon 	return fun1;
14*c85f09ccSJohn Levon }
15*c85f09ccSJohn Levon 
fun0(int a)16*c85f09ccSJohn Levon int fun0(int a)
17*c85f09ccSJohn Levon {
18*c85f09ccSJohn Levon 	return a + 0;
19*c85f09ccSJohn Levon }
20*c85f09ccSJohn Levon 
fun1(int a)21*c85f09ccSJohn Levon int fun1(int a)
22*c85f09ccSJohn Levon {
23*c85f09ccSJohn Levon 	return a + 1;
24*c85f09ccSJohn Levon }
25*c85f09ccSJohn Levon 
26*c85f09ccSJohn Levon /*
27*c85f09ccSJohn Levon  * check-name: llvm function reference
28*c85f09ccSJohn Levon  * check-command: sparse-llvm-dis -Wno-decl $file
29*c85f09ccSJohn Levon  *
30*c85f09ccSJohn Levon  * check-output-ignore
31*c85f09ccSJohn Levon  * check-output-excludes: fun[0-9]\.[1-9]
32*c85f09ccSJohn Levon  */
33