PR c++/37276
[official-gcc.git] / gcc / testsuite / g++.dg / init / mutable1.C
blobaf99ee0bf8607797fced141654856c99d1a07e9e
1 // PR c++/54026
2 // { dg-final { scan-assembler-not "rodata" } }
4 void non_const(int *);
6 template <typename T>
7 struct Foo {
8   T x;
9   mutable int y;
10   void func() const { non_const(&y); }
13 struct Bar {
14   int x;
15   mutable int y;
16   void func() const { non_const(&y); }
19 const Foo<int> foo = { 1, 2 };
20 const Bar bar = { 3, 4 };