diff options
Diffstat (limited to 'validation/knr-attr-crash.c')
-rw-r--r-- | validation/knr-attr-crash.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/knr-attr-crash.c b/validation/knr-attr-crash.c new file mode 100644 index 00000000..176ff503 --- /dev/null +++ b/validation/knr-attr-crash.c @@ -0,0 +1,12 @@ +typedef int word; + +void foo(word x); + +void foo(x) + word x; +{ } + +/* + * check-name: knr-attr-crash + * check-command: sparse -Wno-old-style-definition $file + */ |