summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg2.C
blob: 44cb1cb02317d837112db78faa2216437cfefba2 (plain)
1
2
3
4
5
6
// { dg-do assemble  }
// Bug: g++ complains about a class definition containing a const member
// but no constructor; it shouldn't complain at that point, since this is
// valid use.

struct S { const int member; } object = { 0 };