diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-21 07:12:50 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-21 07:12:50 +0000 |
commit | c91eeb6e3abcf88eec5847e1d2b765934f3b47fe (patch) | |
tree | 06b1ab910b50c5f99eb2b6c36e4f2701acc4ea06 /gcc/testsuite/g++.old-deja | |
parent | 85cfd612ea41ece0d9c8341dffaac442ebf3e180 (diff) | |
download | gcc-c91eeb6e3abcf88eec5847e1d2b765934f3b47fe.tar.gz |
PR c++/8316, c++/9315, c++/10136
* call.c (print_z_candidate): Split out from...
(print_z_candidiates): ...here.
(joust): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ext/overload1.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/new2.C | 21 |
2 files changed, 2 insertions, 23 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/overload1.C b/gcc/testsuite/g++.old-deja/g++.ext/overload1.C index d99e04fecb8..b1e96b5e6a2 100644 --- a/gcc/testsuite/g++.old-deja/g++.ext/overload1.C +++ b/gcc/testsuite/g++.old-deja/g++.ext/overload1.C @@ -11,8 +11,8 @@ struct X { X (int); }; -void Foo (int, float, bool); -void Foo (float, int, X); +void Foo (int, float, bool); // WARNING - candidate +void Foo (float, int, X); // WARNING - candidate void Baz () { diff --git a/gcc/testsuite/g++.old-deja/g++.other/new2.C b/gcc/testsuite/g++.old-deja/g++.other/new2.C deleted file mode 100644 index 9a6e0514ff4..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/new2.C +++ /dev/null @@ -1,21 +0,0 @@ -//Build don't link: -typedef __SIZE_TYPE__ size_t; -void *operator new(size_t, unsigned int); - -struct X{ - X(); - X(int); -}; - - -void f(X *x = new X); // ERROR - - -void f(X *x = new X(4)); // ERROR - - -void f(X *x = new X[4]); // ERROR - - -void f(X *x = new (3) X(6)); // ERROR - - -void f(X *x = new (2) X[10]); // ERROR - - -void f(X *x = new X[10][5]); // ERROR - |