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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
mutable1.C
blob
4dd37185d729c56ecbba30e13a97afbc42d98bdc
1
// PR c++/77375
2
// { dg-do run { target c++11 } }
3
4
struct Base { mutable int i; };
5
struct Derived : Base {};
6
const Derived foo{};
7
8
int
9
main ()
10
{
11
foo.i = 42;
12
}