xref: /illumos-gate/usr/src/tools/smatch/src/validation/constexpr-string.c (revision edd4c52697927997fb1ce3c2c4c425e5ca3a56d6)
1 static char *a = "foobar";	// OK
2 
3 /*
4  * check-name: string literal constness verification.
5  * check-command: sparse -Wconstexpr-not-const $file
6  *
7  * check-error-start
8  * check-error-end
9  */
10