c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / parse / pr56961.C
blobc60cfdb17cd9bfde9a72caf6a4123960a046d09d
1 // PR c++/56961
3 struct foo { };
5 typedef struct
7   volatile foo fields;
8 } CSPHandleState;
9  
10 CSPHandleState a;
12 void fn1 ()
14   CSPHandleState b;
15   b.fields = foo();  // { dg-error "discards qualifiers" }