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

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