diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-04-12 09:26:22 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-05-21 17:27:45 +0200 |
| commit | 633a390c169082646e7172c753f319568ef22695 (patch) | |
| tree | 77b6196e9d4175a006684ceb0627a3fa12e5c625 /validation/linear/label-stmt-expr0.c | |
| parent | 0b6d161ed1cc0f2226482d64c56fe9dc89bc0ebf (diff) | |
| download | sparse-dev-633a390c169082646e7172c753f319568ef22695.tar.gz | |
bad-goto: reorganize testcases and add some more
Reorganize the testcases related to the 'scope' of labels
and add a few new ones.
Also, some related testcases have some unreported errors other
than the features being tested. This is a problem since such
tescases can still fail after the feature being tested is fixed
or implemented. So, fix these testcases or split them so that
they each test a unique feature.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/linear/label-stmt-expr0.c')
| -rw-r--r-- | validation/linear/label-stmt-expr0.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/validation/linear/label-stmt-expr0.c b/validation/linear/label-stmt-expr0.c new file mode 100644 index 00000000..ff3c0980 --- /dev/null +++ b/validation/linear/label-stmt-expr0.c @@ -0,0 +1,17 @@ +int foo(void); +int foo(void) +{ + int r; + + r = ({ goto label; label: 1; }); + return r; +} + +/* + * check-name: label-stmt-expr0 + * check-command: test-linearize $file + * check-output-ignore + * + * check-output-excludes: ret\\.32\$ + * check-output-contains: ret\\.32 *\\$1 + */ |
