aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/pr39060.C
blob: e1494106bb091bedd469733b888a64c86f5df100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/39060
// { dg-do compile }

struct A
{
  A(void* i=);	// { dg-error "with|specification|primary-expression" }
  A(void* i=);	// { dg-error "overloaded|primary-expression" }
  A(void* i=);	// { dg-error "overloaded|primary-expression" }

  void operator+ (void* i=);	// { dg-error "arguments" }

  virtual void foo1(=);	// { dg-error "identifier|primary-expression" }
  void foo2(=);		// { dg-error "identifier|primary-expression" }
  void foo3(=);		// { dg-error "identifier|primary-expression" }
  void foo4(=);		// { dg-error "identifier|primary-expression" }
  void foo5(=);		// { dg-error "identifier|primary-expression" }
};

A::A (void* i=) {}	// { dg-error "primary-expression|argument" }