blob: 00eca20aa50682986f7de31d7e322b110528e509 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
static struct alpha {
char a[2];
} x = { .a = "ab" };
/*
* check-name: -Winit-cstring option
*
* check-command: sparse -Winit-cstring $file
* check-error-start
init_cstring.c:3:14: warning: too long initializer-string for array of char(no space for nul char)
* check-error-end
*/
|