aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/overload29.C
blob: abc4418bd03bc9fe0b15d8761579ce3825dd7ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// Bug: we get an error trying to build up our ideal candidate.

class C {
 public:
	C( const char * );
};

	extern	const	char	c1[];

void f2( const char * );

void f1() {
	C *fntp = new C(c1);			// Line 10
	f2( c1 );
}