aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/call-indirect.c
blob: f5f2adaf1d9d96da26874ee2333dc4f4e068f1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
int gg(int (*fun)(void)) { return fun(); }

int g0(int (*fun)(void)) { return (fun)(); }
int g1(int (*fun)(void)) { return (*fun)(); }	// C99,C11 6.5.3.2p4

/*
 * check-name: indirect calls
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: load
 * check-output-pattern(3): call\..* %arg1
 */