Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
pr56961.C
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" }
}