summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/constructor3.C
blob: fe741c833b205512baf1b2a57fd2195e7d39c134 (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" } */
}