summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/constructor3.C
blob: 9a2e9783e3d25d4e353f4dc12791d22bd4ba5d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR c++/29077 */
/* { dg-do "compile" } */

class c {
  c();
  c(const c&);
  ~c();
};

namespace m {
  c::c() {} /* { dg-error "c::c" } */
  c::c(const c&) {} /* { dg-error "c::c" } */
  c::~c() {} /* { dg-error "c::~c" } */
}