aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/call-direct.c
blob: 176bfe2293ad42e3df95cc1f5ec6d36eafba35ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern int fun(void);

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

int f0(void) { return (fun)(); }
int f1(void) { return (*fun)(); }	// C99,C11 6.5.3.2p4
int f2(void) { return (**fun)(); }	// C99,C11 6.5.3.2p4
int f3(void) { return (***fun)(); }	// C99,C11 6.5.3.2p4

/*
 * check-name: direct calls
 * check-command: test-linearize -Wno-decl $file
 * check-known-to-fail
 *
 * check-output-ignore
 * check-output-excludes: load
 * check-output-pattern(5): call\..* fun
 */