aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/call-inlined.c
blob: 7f5f4e89957d9c42cab1319ef177e25a767a74e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
static const char messg[] = "def";

static inline int add(int a, int b)
{
	return a + b;
}

int foo(int a, int b, int p)
{
	if (p) {
		add(a + b, 1);
		return p;
	}
	return 0;
}

/*
 * check-name: call-inlined
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: %arg3
 */