repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
pr56961.C
blob
c60cfdb17cd9bfde9a72caf6a4123960a046d09d
1
// PR c++/56961
2
3
struct foo { };
4
5
typedef struct
6
{
7
volatile foo fields;
8
} CSPHandleState;
9
10
CSPHandleState a;
11
12
void fn1 ()
13
{
14
CSPHandleState b;
15
b.fields = foo(); // { dg-error "discards qualifiers" }
16
}