summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access9.C
blob: f9c2797d72b8f50d8ecab6bcf775d10ab380350b (plain)
1
2
3
4
5
6
7
8
9
// Bug: g++ doesn't allow const objects to be constructed.
// Build don't link:

struct B { B(); };

const B foo()
{
  return B();			// gets bogus error - constructing const
}