Debian Codegraph @

gcc/testsuite/g++.dg/parse/pr56961.C

raw
1 // PR c++/56961
2
3 struct foo { };
4
5 typedef struct
6 {
7 volatile foo fields;
8 } CSPHandleState;
9
10 CSPHandleState a;
11
12 void fn1 ()
13 {
14 CSPHandleState b;
15 b.fields = foo(); // { dg-error "discards qualifiers" }
16 }