summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/ref1.C
blob: 5099077dc4921053e5765c8dce4e30b5b9d9e493 (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }
// Bug: g++ tries to call a constructor for a reference.  Doh!

class B;
struct A {
  B & b;
  A (B & x) : b (x) { }		// { dg-bogus "" } 
};				// { dg-bogus "" }