Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr22308-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* Bug 22308: C_TYPE_FIELDS_READONLY not updated on type variants. */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "" } */ | |
4 | |
5 struct foo s; | |
6 volatile struct foo t; | |
7 struct foo { const int z; }; | |
8 | |
9 void | |
10 bar (void) | |
11 { | |
12 t = s; /* { dg-error "assignment of read-only variable 't'" } */ | |
13 } |