blob: 1275910c4c2335b8eab411ad515db9aa2aa1533f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
int g2(int (*fun)(void)) { return (**fun)(); } // C99,C11 6.5.3.2p4
int g3(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(5): call\..* %arg1
*/
|