diff options
Diffstat (limited to 'validation/Wuniv-init-ok.c')
-rw-r--r-- | validation/Wuniv-init-ok.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/validation/Wuniv-init-ok.c b/validation/Wuniv-init-ok.c new file mode 100644 index 00000000..c3964751 --- /dev/null +++ b/validation/Wuniv-init-ok.c @@ -0,0 +1,11 @@ +struct s { + void *ptr; +}; + + +static struct s s = { 0 }; + +/* + * check-name: univ-init-ok + * check-command: sparse -Wno-universal-initializer $file + */ |