blob: c60cfdb17cd9bfde9a72caf6a4123960a046d09d [file] [log] [blame]
// PR c++/56961
struct foo { };
typedef struct
{
volatile foo fields;
} CSPHandleState;
CSPHandleState a;
void fn1 ()
{
CSPHandleState b;
b.fields = foo(); // { dg-error "discards qualifiers" }
}