diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-26 09:55:45 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-12-21 01:53:51 +0100 |
| commit | fd02a4ef554a61f30bdb7b90c729ef5bd6a1b0dc (patch) | |
| tree | 0c1dbd7b8c19a9e125c88affb43a6f80f977bda3 /validation/optim | |
| parent | 178f19ad47c916ce02b286ec9cf831950340a4ac (diff) | |
| download | sparse-dev-fd02a4ef554a61f30bdb7b90c729ef5bd6a1b0dc.tar.gz | |
add testcases for the linearization of calls
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim')
| -rw-r--r-- | validation/optim/call-complex-pointer.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/validation/optim/call-complex-pointer.c b/validation/optim/call-complex-pointer.c new file mode 100644 index 00000000..6cfeb6ab --- /dev/null +++ b/validation/optim/call-complex-pointer.c @@ -0,0 +1,13 @@ +int foo(int p, int (*f0)(int), int (*f1)(int), int arg) +{ + return (p ? f0 : f1)(arg); +} +/* + * check-name: call-complex-pointer + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-excludes: ptrcast\. + * check-output-contains: select\. + */ |
