diff options
Diffstat (limited to 'validation/linear/noreturn-unreachable0.c')
-rw-r--r-- | validation/linear/noreturn-unreachable0.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/validation/linear/noreturn-unreachable0.c b/validation/linear/noreturn-unreachable0.c new file mode 100644 index 00000000..47bd6aa3 --- /dev/null +++ b/validation/linear/noreturn-unreachable0.c @@ -0,0 +1,23 @@ +extern void die(void) __attribute__((noreturn)); + +int foo(void) +{ + die(); + return 0; +} + +/* + * check-name: noreturn-unreachable0 + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-start +foo: +.L0: + <entry-point> + call die + unreachable + + + * check-output-end + */ |