xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/call-complex-pointer.c (revision f52943a93040563107b95bccb9db87d9971ef47d)
1 int foo(int p, int (*f0)(int), int (*f1)(int), int arg)
2 {
3 	return (p ? f0 : f1)(arg);
4 }
5 /*
6  * check-name: call-complex-pointer
7  * check-command: test-linearize -Wno-decl $file
8  * check-known-to-fail
9  *
10  * check-output-ignore
11  * check-output-excludes: ptrcast\\.
12  * check-output-contains: select\\.
13  */
14