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