• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 struct s {
2 	int a;
3 	int b[3];
4 	int c[2][3];
5 };
6 
7 struct c {
8 	const struct s s;
9 };
10 
11 extern struct c v;
12 
f(void)13 void f(void)
14 {
15 	  v.s.a = 0;
16 	 *v.s.b = 0;
17 	**v.s.c = 0;
18 }
19 
20 /*
21  * check-name: array-quals-node
22  * check-known-to-fail
23  *
24  * check-error-start
25 eval/array-quals-node.c:15:14: error: assignment to const expression
26 eval/array-quals-node.c:16:14: error: assignment to const expression
27 eval/array-quals-node.c:17:14: error: assignment to const expression
28  * check-error-end
29  */
30