diff options
author | Nathan Sidwell <nathan@acm.org> | 1999-09-10 11:05:30 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 1999-09-10 11:05:30 +0000 |
commit | 0881d22348ea600a977f125e1d8ca7dd3952ec53 (patch) | |
tree | abae18f8e6ee36d7aa32ad79209781e8fe5eda9a /gcc | |
parent | f6fbeda8862abcb6d150e2e0abd447a7723a37da (diff) | |
download | gcc-0881d22348ea600a977f125e1d8ca7dd3952ec53.zip gcc-0881d22348ea600a977f125e1d8ca7dd3952ec53.tar.gz gcc-0881d22348ea600a977f125e1d8ca7dd3952ec53.tar.bz2 |
rfg4.C: Revert erroneous change, add -w.
* g++.old-deja/g++.jason/rfg4.C: Revert erroneous change, add -w.
* g++.old-deja/g++.jason/rfg5.C: Likewise.
From-SVN: r29268
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/rfg4.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/rfg5.C | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3e63754..ed20451 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 10 11:21:25 BST 1999 Nathan Sidwell <nathan@acm.org> + + * g++.old-deja/g++.jason/rfg4.C: Revert erroneous change, add -w. + * g++.old-deja/g++.jason/rfg5.C: Likewise. + Thu Sep 9 10:40:36 1999 Richard Henderson <rth@cygnus.com> * g++.old-deja/g++.other/delete6.C: Use size_t with operator new. diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg4.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg4.C index 1f58055..a86e929 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/rfg4.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg4.C @@ -1,5 +1,6 @@ // Bug: f1 and f2 are treated as overloaded when they aren't. // Build don't link: +// Special g++ Options: -pedantic -errors -w int i; void f1(double) { } @@ -8,6 +9,5 @@ void f2(double) { } void test () { - void (*ptr) (double); - ptr = i ? f1 : f2; // gets bogus error - improper overloading + i ? f1 : f2; // gets bogus error - improper overloading } diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg5.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg5.C index ca3539b..55aea00 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/rfg5.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg5.C @@ -1,10 +1,11 @@ // Bug: func is treated as an overloaded function when it isn't. // Build don't link: +// Special g++ Options: -pedantic -errors -w int *func () { return 0; } void test () { - int *(*p)() = *func; // gets bogus error - improper overloading + *func; // gets bogus error - improper overloading } |