diff options
Diffstat (limited to 'validation/eval/unqual-stmt-expr.c')
| -rw-r--r-- | validation/eval/unqual-stmt-expr.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/validation/eval/unqual-stmt-expr.c b/validation/eval/unqual-stmt-expr.c new file mode 100644 index 00000000..bac6cb6b --- /dev/null +++ b/validation/eval/unqual-stmt-expr.c @@ -0,0 +1,13 @@ +#define __unqual_typeof(x) typeof(({ x; })) + +int *foo(volatile int x); +int *foo(volatile int x) +{ + extern __unqual_typeof(x) y; + return &y; +} + +/* + * check-name: unqual-stmt-expr + * check-known-to-fail + */ |
