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