aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/call-inline.c
blob: 32f32461c82deab24b1cf8ba0316d038a58ec162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static inline int fun(void) { return 42; }

int fi(void) { return fun(); }

int i0(void) { return (fun)(); }

/*
 * check-name: inline calls
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: load
 * check-output-excludes: call
 * check-output-pattern(2): ret\..* \\$42
 */