summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ctor9.C
blob: 02bb5700f3b6e1b473a0ff41b0209af1a8ab4c6e (plain)
1
2
3
4
5
6
7
8
// PR c++/38427
// { dg-do compile }

struct S
{
  int &ref;
  S() : ref() {};	// { dg-error "value-initialization of" }
};