aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/constexpr-string.c
blob: 1db101eebc38737afcf459e2975fc0bc8cf65237 (plain)
1
2
3
4
5
6
7
8
9
static char *a = "foobar";	// OK

/*
 * check-name: constness of string literal
 * check-command: sparse -Wconstexpr-not-const $file
 *
 * check-error-start
 * check-error-end
 */