aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/inline_base0.c
blob: 517ee972ee05629adc48ff28ab40a74cf3a93794 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
static inline int add(int a, int b)
{
	return a + b;
}

int foo0(int x, int y)
{
	return add(x, y);
}

int foo1(int x)
{
	return add(x, 1);
}

int foo2(void)
{
	return add(1, 2);
}

/*
 * check-name: inline_base0
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-start
foo0:
.L0:
	<entry-point>
	add.32      %r5 <- %arg1, %arg2
	ret.32      %r5


foo1:
.L3:
	<entry-point>
	add.32      %r10 <- %arg1, $1
	ret.32      %r10


foo2:
.L6:
	<entry-point>
	ret.32      $3


 * check-output-end
 */