Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
}