summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access9.C
blob: 6cc1440bf54b5f44990318b4d98d78a6be07e4b5 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }
// Bug: g++ doesn't allow const objects to be constructed.

struct B { B(); };

const B foo()
{
  return B();			// { dg-bogus "" } constructing const
}