aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/overload28.C
blob: fe0dae1031f86a766279a1a65e846ed0b8ade329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// PRMS Id: 6056

struct Foo {
  Foo()           { }		// { dg-message "note" }
  Foo(int i = 25) { }		// { dg-message "note" }
};

int main()
{
  Foo* f1 = new Foo();		// { dg-error "ambiguous" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 11 }
}