summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/visibility5.C
blob: d8e73e7c998df4b26148f2cef1ad7d556e5459f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// GROUPS passed visibility

class a {

private:
  a (int i);// { dg-error "" } .*

public:
  a ();
};

void test ()
{
  a *ap = new a;
  a *ap2 = new a (3);// { dg-error "" } .*
}