param_key: use get_name_sym_from_key() instead of return_state_to_var_sym()
[smatch.git] / validation / init_cstring.c
blobbac814e4290786198df57891589319283fe368ee
1 static struct alpha {
2 char a[2];
3 } x = { .a = "ab" };
4 static const char str[2] = "abc";
5 /*
6 * check-name: -Winit-cstring option
8 * check-command: sparse -Winit-cstring $file
9 * check-error-start
10 init_cstring.c:3:14: warning: too long initializer-string for array of char(no space for nul char)
11 init_cstring.c:4:28: warning: too long initializer-string for array of char
12 * check-error-end