aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-20 22:18:49 +0000
committer(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-20 22:18:49 +0000
commit8e9d7cd5ce9a54a71f9e6836919ba69d66462f60 (patch)
tree76693f18045fb15c965603341ac5894212f3cf15
parent71f3141ea3655f883f513de994691bd1d049ea70 (diff)
This commit was manufactured by cvs2svn to create tagrtlopt-merge-20030421
'rtlopt-merge-20030421'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/rtlopt-merge-20030421@65864 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--contrib/reghunt/ChangeLog7
-rw-r--r--contrib/reghunt/README16
-rwxr-xr-xcontrib/reghunt/reg_periodic164
-rwxr-xr-xcontrib/reghunt/reg_search293
-rwxr-xr-xcontrib/reghunt/reg_test_template40
-rw-r--r--gcc/config/i386/scodbx.h84
-rw-r--r--gcc/config/i386/xm-dgux.h4
-rw-r--r--gcc/config/i386/xm-sun.h21
-rw-r--r--gcc/config/i386/xm-sysv3.h3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb42.C19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000105-1.c27
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000105-2.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000120-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000120-2.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000127-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000211-1.c98
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000211-3.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000224-1.c41
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000314-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000314-2.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000319-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000326-1.c23
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000326-2.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000329-1.c40
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000403-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000403-2.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000405-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000405-2.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000405-3.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000412-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000412-2.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000420-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000420-2.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000427-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000502-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000504-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000511-1.c31
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000517-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000518-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000523-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000605-1.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000606-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000609-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000629-1.c28
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000701-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000717-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000718.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000728-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000802-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000803-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000804-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000804-1.x8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000818-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000825-1.c31
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000827-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000922-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000923-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001018-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001024-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001109-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001109-2.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001116-1.c3
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001121-1.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001123-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001123-2.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001205-1.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001205-1.x7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001212-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001221-1.c70
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001222-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001226-1.c26
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001226-1.x22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010102-1.c101
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010107-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010112-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010113-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010114-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010114-2.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010117-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010117-2.c20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010118-1.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010124-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010202-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010209-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010226-1.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010227-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010313-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010320-1.c28
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010326-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010327-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010328-1.c80
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010329-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010404-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010408-1.c77
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010421-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010423-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010426-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010503-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010510-1.c3
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010516-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010518-1.c205
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010518-2.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010518-2.x8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010525-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010605-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010605-2.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010605-3.c20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010610-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010611-1.c24
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010701-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010706-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010711-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010711-2.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010714-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010824-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010903-1.c28
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010903-2.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010911-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011010-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011023-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011029-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011106-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011106-2.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011109-1.c51
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011114-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011114-2.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011114-3.c42
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011114-4.c38
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011119-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011119-2.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011130-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011130-2.c54
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011205-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011217-1.c20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011217-2.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011218-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011219-1.c29
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011219-2.c20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011229-1.c78
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011229-2.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020103-1.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020106-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020109-1.c23
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020109-2.c30
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020110.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020116-1.c28
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020120-1.c55
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020121-1.c30
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020206-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020210-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020303-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020304-1.c777
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020304-2.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020309-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020309-2.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020312-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020312-1.x6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020314-1.c26
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020315-1.c34
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020318-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020319-1.c20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020320-1.c24
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020323-1.c26
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020330-1.c27
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020409-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020415-1.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020418-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020530-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020604-1.c87
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020604-1.x10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020605-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020701-1.c75
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020706-1.c50
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020706-2.c26
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020709-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020710-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020715-1.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020910-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020926-1.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020927-1.c26
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020930-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021001-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021007-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021015-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021015-2.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021103-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021108-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021110.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021119-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021120-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021120-2.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021123-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021123-2.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021123-3.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021123-4.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021124-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021204-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021205-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021212-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021230-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030109-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030110-1.c39
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030125-1.c24
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030206-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030216-1.c42
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030219-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030224-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030305-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030314-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030319-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030320-1.c44
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030323-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030330-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030331-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030405-1.c58
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030410-1.c27
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030415-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030418-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/900116-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/900216-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/900313-1.c172
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/900407-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/900516-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920301-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920409-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920409-2.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920410-1.c30
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920410-2.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920411-2.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920413-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920415-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920428-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920428-2.c531
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920428-3.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920428-4.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920428-5.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920428-6.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920428-7.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-10.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-11.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-12.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-12.x6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-13.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-15.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-16.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-17.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-18.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-19.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-2.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-20.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-21.c3
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-22.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-23.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-3.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-4.c49
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-4.x6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-6.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-7.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-8.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920501-9.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920502-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920502-2.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920520-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920520-1.x9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920521-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920521-1.x2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920529-1.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920608-1.c25
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920611-2.c53
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920615-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920617-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920617-2.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920623-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920624-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920625-1.c279
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920625-1.x25
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920625-2.c103
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920626-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920701-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920702-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920706-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920710-2.c36
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920711-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920721-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920723-1.c31
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920729-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920806-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920808-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920809-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920817-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920820-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920821-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920821-2.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920825-1.c3
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920825-2.c3
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920826-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920828-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920829-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920831-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920902-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920909-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920917-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920928-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920928-2.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920928-3.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920928-4.c113
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920928-5.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920928-6.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921004-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921011-1.c27
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921011-2.c65
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921012-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921012-2.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921013-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921019-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921021-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921024-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921026-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921103-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921109-1.c28
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921111-1.c40
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921116-2.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921118-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921126-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921202-1.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921202-2.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921203-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921203-2.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921206-1.c28
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/921227-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930109-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930109-2.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930111-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930117-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930118-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930120-1.c138
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930126-1.c74
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930210-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930217-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930222-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930325-1.c23
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930326-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930411-1.c36
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930421-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930427-2.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930503-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930503-2.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930506-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930506-2.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930510-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930513-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930513-2.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930513-3.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930523-1.c54
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930525-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930527-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930529-1.c83
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930530-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930602-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930603-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930607-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930611-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930618-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930621-1.c38
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930623-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930702-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930926-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/930927-1.c3
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931003-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931004-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931013-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931013-2.c20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931013-3.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931018-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931031-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931102-1.c111
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931102-2.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/931203-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/940611-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/940712-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/940718-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/941014-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/941014-2.c37
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/941014-3.c72
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/941014-4.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/941019-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/941111-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/941113-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950122-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950124-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950221-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950329-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950512-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950530-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950607-1.c38
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950610-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950612-1.c134
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950613-1.c31
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950618-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950719-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950729-1.c39
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950816-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950816-2.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950816-3.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950910-1.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950919-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950921-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/950922-1.c68
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/951004-1.c23
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/951106-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/951116-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/951128-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/951220-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/951222-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960106-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960130-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960201-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960218-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960220-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960221-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960319-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960514-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960704-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/960829-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/961004-1.c37
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/961010-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/961019-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/961031-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/961126-1.c107
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/961203-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/961203-1.x17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/970206-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/970214-1.c3
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980329-1.c72
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980408-1.c129
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980504-1.c28
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980506-1.c63
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980506-1.x13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980506-2.c89
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980511-1.c20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980701-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980706-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980726-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980729-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980816-1.c51
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980821-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/980825-1.c30
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981001-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981001-2.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981001-3.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981001-4.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981006-1.c50
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981006-1.x20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981007-1.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981022-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981022-1.x2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981107-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981223-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981223-1.x20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990107-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990117-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990203-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990517-1.c30
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990519-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990523-1.c30
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990527-1.c37
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990617-1.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990617-1.x7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990625-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990625-2.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990801-1.c26
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990801-2.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990829-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990913-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/990928-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991008-1.c23
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991026-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991026-2.c33
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991127-1.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991202-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991208-1.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991213-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991213-2.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991213-3.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991214-1.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991214-2.c28
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991229-1.c23
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991229-2.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/991229-3.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/calls.c22
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/cmpdi-1.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/combine-hang.c26
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/compile.exp35
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/cpp-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/cpp-2.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/dll.c21
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/dll.x20
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/funcptr-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/goto-1.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/iftrap-1.c99
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/iftrap-2.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/init-1.c19
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/init-2.c4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/init-3.c11
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/labels-1.c13
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/labels-2.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/labels-3.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/labels-3.x7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/mipscop-1.c10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/mipscop-1.x10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/mipscop-2.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/mipscop-2.x10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/mipscop-3.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/mipscop-3.x10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/mipscop-4.c16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/mipscop-4.x10
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/packed-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/simd-1.c7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/simd-2.c17
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/simd-3.c23
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/simd-4.c15
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/simd-5.c12
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/simd-5.x16
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/structs.c263
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/trunctfdf.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/widechar-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/zero-strct-1.c7
-rw-r--r--libjava/gnu/javax/rmi/CORBA/DelegateFactory.java74
-rw-r--r--libjava/gnu/javax/rmi/CORBA/GetDelegateInstanceException.java58
-rw-r--r--libjava/gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java133
-rw-r--r--libjava/gnu/javax/rmi/CORBA/StubDelegateImpl.java113
-rw-r--r--libjava/gnu/javax/rmi/CORBA/UtilDelegateImpl.java152
-rw-r--r--libjava/gnu/javax/rmi/CORBA/ValueHandlerImpl.java82
-rw-r--r--libjava/gnu/javax/rmi/PortableServer.java142
-rw-r--r--libjava/javax/print/attribute/Attribute.java50
-rw-r--r--libjava/javax/print/attribute/AttributeSet.java77
-rw-r--r--libjava/javax/print/attribute/PrintRequestAttributeSet.java55
-rw-r--r--libjava/javax/rmi/BAD_OPERATION.java4
-rw-r--r--libjava/javax/rmi/CORBA/ClassDesc.java55
-rw-r--r--libjava/javax/rmi/CORBA/ObjectImpl.java9
-rw-r--r--libjava/javax/rmi/CORBA/PortableRemoteObjectDelegate.java63
-rw-r--r--libjava/javax/rmi/CORBA/Stub.java120
-rw-r--r--libjava/javax/rmi/CORBA/StubDelegate.java65
-rw-r--r--libjava/javax/rmi/CORBA/SystemException.java4
-rw-r--r--libjava/javax/rmi/CORBA/Tie.java62
-rw-r--r--libjava/javax/rmi/CORBA/Util.java187
-rw-r--r--libjava/javax/rmi/CORBA/UtilDelegate.java84
-rw-r--r--libjava/javax/rmi/CORBA/ValueHandler.java63
-rw-r--r--libjava/javax/rmi/ORB.java4
-rw-r--r--libjava/javax/rmi/PortableRemoteObject.java114
-rw-r--r--libjava/testsuite/libjava.cni/cni.exp119
-rw-r--r--libjava/testsuite/libjava.cni/longfield.java22
-rw-r--r--libjava/testsuite/libjava.cni/longfield.out6
-rw-r--r--libjava/testsuite/libjava.cni/natlongfield.cc15
-rw-r--r--libjava/testsuite/libjava.cni/natshortfield.cc10
-rw-r--r--libjava/testsuite/libjava.cni/shortfield.java21
-rw-r--r--libjava/testsuite/libjava.cni/shortfield.out1
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/append/char/1.cc164
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/append/wchar_t/1.cc164
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/assign/char/1.cc53
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/assign/char/2.cc59
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/assign/char/3.cc61
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/1.cc53
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/2.cc59
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/3.cc61
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/capacity/1.cc199
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/1.cc102
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/2.cc43
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/1.cc102
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/2.cc43
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/compare/char/1.cc136
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/compare/wchar_t/1.cc136
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc161
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc41
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc69
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc43
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc44
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc161
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc41
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc69
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc43
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc44
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/1.cc94
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/2.cc115
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/3.cc90
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/1.cc94
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/2.cc115
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/3.cc90
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/find/char/1.cc98
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/find/char/2.cc97
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/1.cc98
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/2.cc97
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/insert/char/1.cc195
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/insert/char/2.cc87
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/1.cc195
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/2.cc87
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/1.cc171
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/4.cc69
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/5.cc90
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/6.cc65
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/7.cc57
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/8.cc53
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/9.cc56
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc171
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc69
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc90
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc65
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc57
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc53
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc56
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc56
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/operators/char/2.cc300
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/1.cc56
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/2.cc300
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/char/1.cc87
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/char/2.cc46
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/char/3.cc74
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/char/4.cc67
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/char/5.cc43
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/1.cc87
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/2.cc47
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/3.cc74
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/4.cc67
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/5.cc43
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/1.cc97
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/2.cc55
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/3.cc69
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/1.cc97
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/2.cc55
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/3.cc69
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/substr/char/1.cc80
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/substr/wchar_t/1.cc80
-rw-r--r--libstdc++-v3/testsuite/21_strings/c_strings/char/1.cc70
-rw-r--r--libstdc++-v3/testsuite/21_strings/c_strings/char/2.cc48
-rw-r--r--libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/1.cc69
-rw-r--r--libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/2.cc47
-rw-r--r--libstdc++-v3/testsuite/21_strings/char_traits/requirements/char/1.cc109
-rw-r--r--libstdc++-v3/testsuite/21_strings/char_traits/requirements/wchar_t/1.cc109
-rw-r--r--libstdc++-v3/testsuite/21_strings/char_traits/typedefs/char/1.cc34
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/1.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/2.cc51
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/3.cc145
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/4.cc49
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/1.cc86
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/2.cc79
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/3.cc106
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc97
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc77
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/1.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/9322.cc53
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/in_avail/char/1.cc109
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/is_open/char/1.cc72
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/1.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/2.cc58
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/3.cc53
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/9507.cc67
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/1.cc78
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/3599.cc66
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9169.cc72
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc72
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9988.cc69
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/1.cc106
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/9825.cc55
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1.cc137
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2.cc65
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/1.cc127
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/2.cc65
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc90
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/2.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/3.cc46
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1.cc120
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/1.cc145
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2.cc46
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc93
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc63
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/1.cc116
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/1.cc168
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/9425.cc48
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1.cc137
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1057.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc71
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1.cc125
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1057.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc75
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1.cc191
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/1057.cc112
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc72
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc101
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_fstream/1.cc48
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_fstream/2.cc46
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_fstream/3.cc149
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_fstream/4.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_fstream/rdbuf/char/2832.cc70
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ifstream/1.cc47
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ifstream/2.cc42
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ifstream/3.cc149
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ifstream/4.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/1.cc49
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/1.cc57
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ifstream/rdbuf/char/2832.cc74
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/1.cc47
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/2.cc42
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/3.cc147
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/4.cc52
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/clear/char/1.cc81
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/cons/char/1.cc88
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/cons/char/2.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc175
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc87
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/2.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc88
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ios/locales/char/1.cc66
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_iostream/1.cc47
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_iostream/2.cc42
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_iostream/3.cc149
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_iostream/4.cc54
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/1.cc48
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/2.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/3.cc147
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/4.cc52
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/exceptions/char/9561.cc69
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc134
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc71
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc70
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc83
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc169
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc93
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc72
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc154
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc91
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc88
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc86
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/1.cc109
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/2.cc92
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/3.cc95
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc79
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9826.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/1.cc143
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/2.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/3.cc56
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9424-in.cc113
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc68
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/get/char/1.cc128
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/get/char/2.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/getline/char/1.cc125
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/getline/char/2.cc103
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/getline/char/3.cc64
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/1.cc84
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/6360.cc52
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/7220.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/peek/char/1.cc98
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/peek/char/6414.cc51
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc80
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/read/char/1.cc79
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/read/char/2.cc63
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/read/char/3.cc51
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-1.cc60
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-2.cc60
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/8258.cc53
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc90
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc83
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-1.cc55
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-2.cc55
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/fstream.cc127
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/sstream.cc135
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/1.cc66
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/2.cc60
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3.cc53
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc193
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc189
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/1.cc64
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/8348.cc79
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/fstream.cc87
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/sstream.cc93
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/ws/char/1.cc81
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istringstream/1.cc47
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istringstream/2.cc42
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istringstream/3.cc149
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istringstream/4.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc79
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istringstream/str/char/1.cc80
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/1.cc47
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/2.cc42
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/3.cc149
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/4.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/cons/char/2.cc49
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/1.cc58
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/rdbuf/char/2832.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/1.cc48
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/2.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/3.cc149
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/4.cc52
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/cons/char/9827.cc46
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/endl/char/1.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/1.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/2.cc65
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/exceptions/char/9561.cc65
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/1.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc194
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc58
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/3.cc69
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4.cc51
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc74
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/5.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/6.cc54
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc86
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc189
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/1.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/2.cc69
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/3.cc68
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/4.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/5.cc78
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/6.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/8.cc49
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc78
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc92
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc60
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/1.cc82
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/2.cc70
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/3.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/4.cc154
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9318-out.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9424-out.cc113
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc68
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/1.cc53
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/2.cc71
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc164
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc160
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/1.cc62
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/2.cc49
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostringstream/1.cc47
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostringstream/2.cc42
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostringstream/3.cc149
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostringstream/4.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostringstream/cons/char/3.cc64
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostringstream/rdbuf/char/2832.cc76
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/1.cc54
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/2.cc46
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/1.cc48
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/2.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/3.cc147
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/cons/char/1.cc111
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/1.cc52
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/9322.cc72
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/1.cc116
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/2.cc80
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/3599.cc68
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/sgetc/char/1.cc118
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/sgetn/char/1.cc126
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/sputbackc/char/9538.cc65
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/sputc/char/1057.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1.cc124
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1057.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_streambuf/sync/char/1057.cc108
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/1.cc63
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/2.cc51
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/3.cc145
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/4.cc47
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/5.cc49
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc46
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/9322.cc53
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc65
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc80
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc66
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc63
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc74
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/9825.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc124
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/2.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc98
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc60
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc72
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/3.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc78
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc108
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc84
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc122
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/9425.cc43
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc75
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1057.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/9404-1.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc87
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1057.cc61
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/9404-2.cc73
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/1.cc74
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/2.cc55
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3.cc43
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3955.cc44
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc151
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringbuf/sync/char/1057.cc108
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/1.cc48
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/2.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc149
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc50
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc70
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc77
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc76
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc65
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/fpos/1.cc71
-rw-r--r--libstdc++-v3/testsuite/27_io/fpos/2.cc103
-rw-r--r--libstdc++-v3/testsuite/27_io/fpos/3.cc72
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/callbacks/1.cc62
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/state/1.cc62
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/storage/1.cc54
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc129
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/storage/3.cc52
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc58
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/2.cc57
-rw-r--r--libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/1.cc108
-rw-r--r--libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/2.cc59
-rw-r--r--libstdc++-v3/testsuite/27_io/manipulators/basefield/char/1.cc128
-rw-r--r--libstdc++-v3/testsuite/27_io/manipulators/standard/char/1.cc84
-rw-r--r--libstdc++-v3/testsuite/27_io/manipulators/standard/char/2.cc69
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/1.cc98
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/2.cc47
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/2523-1_xin.cc89
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/2523-1_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/2523-2_xin.cc39
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/2523-2_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/3045.cc86
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/3647.cc46
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/3_xin.cc42
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/3_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/4_xin.cc39
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/4_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/5268.cc45
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/5280_xin.cc48
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/5280_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/6548_xin.cc39
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/6548_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.cc38
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.cc35
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/7744_xin.cc42
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/7744_xin.in1
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/wchar_t/1.cc101
-rw-r--r--libstdc++-v3/testsuite/27_io/types/1.cc38
-rw-r--r--libstdc++-v3/testsuite/27_io/types/2.cc40
-rw-r--r--libstdc++-v3/testsuite/data/filebuf_members-1.tst0
-rw-r--r--libstdc++-v3/testsuite/data/filebuf_members-1.txt0
-rw-r--r--libstdc++-v3/testsuite/data/filebuf_virtuals-1.tst158
-rw-r--r--libstdc++-v3/testsuite/data/filebuf_virtuals-1.txt158
-rw-r--r--libstdc++-v3/testsuite/data/filebuf_virtuals-2.tst1
-rw-r--r--libstdc++-v3/testsuite/data/filebuf_virtuals-3.tst7
-rw-r--r--libstdc++-v3/testsuite/data/ifstream_members-1.tst0
-rw-r--r--libstdc++-v3/testsuite/data/ifstream_members-1.txt0
-rw-r--r--libstdc++-v3/testsuite/data/ios_base_members_static-1.tst2
-rw-r--r--libstdc++-v3/testsuite/data/istream_extractor_other-1.tst65
-rw-r--r--libstdc++-v3/testsuite/data/istream_extractor_other-1.txt65
-rw-r--r--libstdc++-v3/testsuite/data/istream_extractor_other-2.tst65
-rw-r--r--libstdc++-v3/testsuite/data/istream_seeks-1.tst7
-rw-r--r--libstdc++-v3/testsuite/data/istream_seeks-1.txt7
-rw-r--r--libstdc++-v3/testsuite/data/istream_seeks-2.tst0
-rw-r--r--libstdc++-v3/testsuite/data/istream_seeks-3.tst10
-rw-r--r--libstdc++-v3/testsuite/data/istream_unformatted-1.tst1500
-rw-r--r--libstdc++-v3/testsuite/data/istream_unformatted-1.txt1500
-rw-r--r--libstdc++-v3/testsuite/data/ofstream_members-1.tst0
-rw-r--r--libstdc++-v3/testsuite/data/ostream_inserter_char-1.tst1000
-rw-r--r--libstdc++-v3/testsuite/data/ostream_inserter_char-1.txt1000
-rw-r--r--libstdc++-v3/testsuite/data/ostream_inserter_other-1.tst158
-rw-r--r--libstdc++-v3/testsuite/data/ostream_inserter_other-2.tst158
-rw-r--r--libstdc++-v3/testsuite/data/ostream_seeks-1.tst0
969 files changed, 0 insertions, 49823 deletions
diff --git a/contrib/reghunt/ChangeLog b/contrib/reghunt/ChangeLog
deleted file mode 100644
index 3b4b78f8b7f..00000000000
--- a/contrib/reghunt/ChangeLog
+++ /dev/null
@@ -1,7 +0,0 @@
-2003-03-27 Janis Johnson <janis187@us.ibm.com>
-
- * README: New file.
- * reg_search: New file.
- * reg_periodic: New file.
- * reg_test_template: New file.
-
diff --git a/contrib/reghunt/README b/contrib/reghunt/README
deleted file mode 100644
index c674ffc6cd9..00000000000
--- a/contrib/reghunt/README
+++ /dev/null
@@ -1,16 +0,0 @@
-This directory contains scripts that are used for identifying the
-patch that introduced a regression. General information about such
-searches is covered in http://gcc.gnu.org/bugs/reghunt.html.
-
- reg_search searches for a small time interval within a range of
- dates in which results for a test changed, using a binary search.
- The functionality for getting sources, building the component to
- test, and running the test are in other scripts that are run from
- here.
-
- reg_periodic invokes separate tools (the same scripts invoked by
- reg_search) over a range of dates at specified intervals.
-
- reg_test_template shows the format for the script that runs a test
- and determines whether to continue the search with a later or
- earlier date.
diff --git a/contrib/reghunt/reg_periodic b/contrib/reghunt/reg_periodic
deleted file mode 100755
index 57b86d349ce..00000000000
--- a/contrib/reghunt/reg_periodic
+++ /dev/null
@@ -1,164 +0,0 @@
-#! /bin/bash
-
-########################################################################
-#
-# File: reg_periodic
-# Author: Janis Johnson
-# Date: 2002/12/28
-#
-# Over a range of dates at specified intervals, invoke separate tools to
-# update sources, do a build, and run one or more tests.
-#
-# Define these in a file whose name is the argument to this script:
-# LOW_DATE: Date string recognized by the date command.
-# HIGH_DATE: Date string recognized by the date command.
-# INTERVAL: Time (in seconds) between dates for which to build.
-# REG_UPDATE: Pathname of script to update your source tree.
-# REG_BUILD: Pathname of script to build enough of the product to run
-# the test.
-# REG_TEST: Pathname of script to run one or more tests.
-# Optional:
-# VERBOSITY: Default is 0, to print only errors and final message.
-# DATE_IN_MSG If set to anything but 0, include the time and date in
-# messages
-# REG_STOP Pathname of a file whose existence says to quit; default
-# is STOP in the current directory.
-#
-#
-# Copyright (c) 2002, 2003 Free Software Foundation, Inc.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# For a copy of the GNU General Public License, write the the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-#
-########################################################################
-
-########################################################################
-# Functions
-########################################################################
-
-# Issue a message if its verbosity level is high enough.
-
-msg() {
- test ${1} -gt ${VERBOSITY} && return
-
- if [ "x${DATE_IN_MSG}" = "x" ]; then
- echo "${2}"
- else
- echo "`date` ${2}"
- fi
-}
-
-# Issue an error message and exit with a nonzero status.
-
-error() {
- msg 0 "error: ${1}"
- exit 1
-}
-
-# Turn seconds since the epoch into a date we can use with source
-# control tools and report to the user.
-
-make_date() {
- MADE_DATE="`date -u +\"%Y-%m-%d %H:%M %Z\" --date \"1970-01-01 00:00:${1}\"`" \
- || error "make_date: date command failed"
-}
-
-# Build the components to test using sources as of a particular date and
-# run a test case. Pass each of the scripts the date that we're
-# testing; the first one needs it, the others can ignore it if they want.
-
-process_date() {
- DATE="${1}"
-
- ${REG_UPDATE} "${DATE}"
- if [ $? -ne 0 ]; then
- msg 0 "source update failed for ${DATE}"
- return
- fi
- ${REG_BUILD} "${DATE}"
- if [ $? -ne 0 ]; then
- msg 0 "build failed for ${DATE}"
- return
- fi
- ${REG_TEST} "${DATE}"
-}
-
-########################################################################
-# Main program (so to speak)
-########################################################################
-
-# Process the configuration file.
-
-if [ $# -ne 1 ]; then
- echo Usage: $0 config_file
- exit 1
-fi
-
-CONFIG=${1}
-if [ ! -f ${CONFIG} ]; then
- error "configuration file ${CONFIG} does not exist"
-fi
-
-# OK, the config file exists. Source it, make sure required parameters
-# are defined and their files exist, and give default values to optional
-# parameters.
-
-. ${CONFIG}
-
-test "x${REG_UPDATE}" = "x" && error "REG_UPDATE is not defined"
-test "x${REG_BUILD}" = "x" && error "REG_BUILD is not defined"
-test "x${REG_TEST}" = "x" && error "REG_TEST is not defined"
-test "x${INTERVAL}" = "x" && error "INTERVAL is not defined"
-test -x ${REG_TEST} || error "REG_TEST is not an executable file"
-test "x${VERBOSITY}" = "x" && VERBOSITY=0
-test "x${REG_STOP}" = "x" && REG_STOP="STOP"
-
-msg 2 "LOW_DATE = ${LOW_DATE}"
-msg 2 "HIGH_DATE = ${HIGH_DATE}"
-msg 2 "INTERVAL = ${INTERVAL}"
-msg 2 "REG_UPDATE = ${REG_UPDATE}"
-msg 2 "REG_BUILD = ${REG_BUILD}"
-msg 2 "REG_TEST = ${REG_TEST}"
-msg 2 "VERBOSITY = ${VERBOSITY}"
-
-# Change the dates into seconds since the epoch. This uses an extension
-# in GNU date.
-
-LOW_DATE=`date +%s --date "${LOW_DATE}"` || \
- error "date command failed for \"${LOW_DATE}\""
-HIGH_DATE=`date +%s --date "${HIGH_DATE}"` || \
- error "date command failed for \"${LOW_DATE}\""
-
-# Process each date in the range.
-
-while [ ${LOW_DATE} -le ${HIGH_DATE} ]; do
-
- # If a file called STOP appears, stop; this allows a clean way to
- # interrupt a search.
-
- if [ -f ${REG_STOP} ]; then
- msg 0 "STOP file detected"
- rm -f ${REG_STOP}
- exit 1
- fi
-
- # Get a version of the date that is usable by tools and readable
- # by people, then process it.
-
- make_date ${LOW_DATE}
- process_date "${MADE_DATE}"
- let LOW_DATE=LOW_DATE+INTERVAL
-done
-
-msg 1 "done"
diff --git a/contrib/reghunt/reg_search b/contrib/reghunt/reg_search
deleted file mode 100755
index 1ca0a5d6517..00000000000
--- a/contrib/reghunt/reg_search
+++ /dev/null
@@ -1,293 +0,0 @@
-#! /bin/bash
-
-########################################################################
-#
-# File: reg_search
-# Author: Janis Johnson <janis187@us.ibm.com>
-# Date: 2002/12/15
-#
-# Search for a small time interval within a range of dates in which
-# results for a test changed, using a binary search. The functionality
-# for getting sources, building the component to test, and running the
-# test are in other scripts that are run from here. Before the search
-# begins, we verify that we get the expected behavior for the first and
-# last dates.
-#
-# Define these in a file whose name is the argument to this script:
-# LOW_DATE: Date string recognized by the date command (local time).
-# HIGH_DATE: Date string recognized by the date command (local time).
-# REG_UPDATE: Pathname of script to update your source tree; returns
-# zero for success, nonzero for failure.
-# REG_BUILD: Pathname of script to build enough of the product to run
-# the test; returns zero for success, nonzero for failure.
-# REG_TEST: Pathname of script to run the test; returns 1 if we
-# should search later dates, 0 if we should search earlier
-# dates.
-# Optional:
-# DELTA: Search to an interval within this many seconds; default
-# is one hour (although 300 works well).
-# REG_FINISH Pathname of script to call at the end with the two final
-# dates as arguments.
-# SKIP_LOW If 1, skip verifying the low date of the range;
-# define this only if you're restarting and have already
-# tested the low date.
-# SKIP_HIGH If 1, skip verifying the high date of the range;
-# define this only if you're restarting and have already
-# tested the high date.
-# FIRST_MID Use this as the first midpoint, to avoid a midpoint that
-# is known not to build.
-# HAS_CHANGES Pathname of script to report whether the current date has
-# no differences from one of the ends of the current range
-# to skip unnecessary build and testing; default is "true".
-# VERBOSITY Default is 0, to print only errors and final message.
-# DATE_IN_MSG If set to anything but 0, include the time and date in
-# messages.
-#
-#
-#
-# Copyright (c) 2002, 2003 Free Software Foundation, Inc.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# For a copy of the GNU General Public License, write the the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-#
-########################################################################
-
-########################################################################
-# Functions
-########################################################################
-
-# Issue a message if its verbosity level is high enough.
-
-msg() {
- test ${1} -gt ${VERBOSITY} && return
-
- if [ "x${DATE_IN_MSG}" = "x" ]; then
- echo "${2}"
- else
- echo "`date` ${2}"
- fi
-}
-
-# Issue an error message and exit with a non-zero status. If there
-# is a valid current range whose end points have been tested, report
-# it so the user can start again from there.
-
-error() {
- msg 0 "error: ${1}"
- test ${VALID_RANGE} -eq 1 && \
- echo "current range:"
- echo "LOW_DATE=\"${LATER_THAN}\""
- echo "HIGH_DATE=\"${EARLIER_THAN}\""
- exit 1
-}
-
-# Turn seconds since the epoch into a date we can use with source
-# control tools and report to the user.
-
-make_date() {
- MADE_DATE="`date -u +\"%Y-%m-%d %H:%M %Z\" --date \"1970-01-01 00:00:${1}\"`" \
- || error "make_date: date command failed"
-}
-
-# Build the components to test using sources as of a particular date and
-# run a test case. Pass each of the scripts the date that we're
-# testing; the first one needs it, the others can ignore it if they want.
-
-process_date() {
- DATE="${1}"
-
- ${REG_UPDATE} "${DATE}" || error "source update failed for ${DATE}"
-
- # If we're already in a valid range, skip this date if there are no
- # differences from either end of the range and adjust LATER.
-
- if [ ${VALID_RANGE} = 1 ]; then
- ${HAS_CHANGES} "${DATE}" "${LATER_THAN}" "${EARLIER_THAN}"
- RET=$?
- case ${RET} in
- 0) ;;
- 1) LATER=1; return;;
- 2) LATER=0; return;;
- *) error "process_date: unexpected return value from ${HAS_CHANGES}";;
- esac
- fi
-
- ${REG_BUILD} "${DATE}" || error "build failed for ${DATE}"
- ${REG_TEST} "${DATE}"
- LATER=$?
-}
-
-# Perform a binary search on dates within the range specified by
-# the arguments, bounded by the number of seconds in DELTA.
-
-search_dates() {
- let LOW=$1
- let HIGH=$2
- let DIFF=HIGH-LOW
-
- # Get the date in the middle of the range; MID is in seconds since
- # the epoch, DATE is readable by humans and tools. The user can
- # override the initial mid date if it is known to have problems,
- # e.g., if a build fails for that date.
-
- if [ ${FIRST_MID} -ne 0 ]; then
- let MID=${FIRST_MID}
- else
- let MID=LOW/2+HIGH/2
- fi
-
- while [ ${DIFF} -ge ${DELTA} ]; do
- make_date ${MID}
- DATE="${MADE_DATE}"
-
- # Test it.
-
- process_date "${DATE}"
-
- # Narrow the search based on the outcome of testing DATE.
-
- if [ ${LATER} -eq 1 ]; then
- msg 1 "search dates later than \"${DATE}\""
- LATER_THAN="${DATE}"
- let LOW=MID
- else
- msg 1 "search dates earlier than \"${DATE}\""
- EARLIER_THAN="${DATE}"
- let HIGH=MID
- fi
-
- let DIFF=HIGH-LOW
- let MID=LOW/2+HIGH/2
- done
-}
-
-########################################################################
-# Main program (so to speak)
-########################################################################
-
-# The error function uses this.
-
-VALID_RANGE=0
-
-# Process the configuration file.
-
-if [ $# != 1 ]; then
- echo Usage: $0 config_file
- exit 1
-fi
-
-CONFIG=${1}
-if [ ! -f ${CONFIG} ]; then
- error "configuration file ${CONFIG} does not exist"
-fi
-
-# OK, the config file exists. Source it, make sure required parameters
-# are defined and their files exist, and give default values to optional
-# parameters.
-
-. ${CONFIG}
-
-test "x${REG_UPDATE}" = "x" && error "REG_UPDATE is not defined"
-test "x${REG_BUILD}" = "x" && error "REG_BUILD is not defined"
-test "x${REG_TEST}" = "x" && error "REG_TEST is not defined"
-test -x ${REG_TEST} || error "REG_TEST is not an executable file"
-test "x${SKIP_LOW}" = "x" && SKIP_LOW=0
-test "x${SKIP_HIGH}" = "x" && SKIP_HIGH=0
-test "x${DELTA}" = "x" && DELTA=3600
-test "x${VERBOSITY}" = "x" && VERBOSITY=0
-test "x${HAS_CHANGES}" = "x" && HAS_CHANGES=true
-test "x${REG_FINISH}" = "x" && REG_FINISH=true
-
-msg 2 "LOW_DATE = ${LOW_DATE}"
-msg 2 "HIGH_DATE = ${HIGH_DATE}"
-msg 2 "REG_UPDATE = ${REG_UPDATE}"
-msg 2 "REG_BUILD = ${REG_BUILD}"
-msg 2 "REG_TEST = ${REG_TEST}"
-msg 2 "SKIP_LOW = ${SKIP_LOW}"
-msg 2 "SKIP_HIGH = ${SKIP_HIGH}"
-msg 2 "FIRST_MID = ${FIRST_MID}"
-msg 2 "VERBOSITY = ${VERBOSITY}"
-msg 2 "DELTA = ${DELTA}"
-
-# Verify that DELTA is at least two minutes.
-
-test ${DELTA} -lt 120 && \
- error "DELTA is ${DELTA}, must be at least 120 (two minutes)"
-
-# Change the dates into seconds since the epoch. This uses an extension
-# in GNU date.
-
-LOW_DATE=`date +%s --date "${LOW_DATE}"` || \
- error "date command failed for \"${LOW_DATE}\""
-HIGH_DATE=`date +%s --date "${HIGH_DATE}"` || \
- error "date command failed for \"${LOW_DATE}\""
-
-# If FIRST_MID was defined, convert it and make sure it's in the range.
-
-if [ "x${FIRST_MID}" != "x" ]; then
- FIRST_MID=`date +%s --date "${FIRST_MID}"` || \
- error "date command failed for \"${FIRST_MID}\""
- test ${FIRST_MID} -le ${LOW_DATE} && \
- error "FIRST_MID date is earlier than LOW_DATE"
- test ${FIRST_MID} -ge ${HIGH_DATE} && \
- error "FIRST_MID is later than HIGH_DATE"
-else
- FIRST_MID=0
-fi
-
-# Keep track of the bounds of the range where the test behavior changes,
-# using a human-readable version of each date.
-
-make_date ${LOW_DATE}
-LATER_THAN="${MADE_DATE}"
-make_date ${HIGH_DATE}
-EARLIER_THAN="${MADE_DATE}"
-
-msg 2 "LATER_THAN = ${LATER_THAN}"
-msg 2 "EARLIER_THAN = ${EARLIER_THAN}"
-
-# Verify that the range isn't backwards.
-
-test ${LOW_DATE} -lt ${HIGH_DATE} || error "date range is backwards"
-
-# Verify that the first and last date in the range get the results we
-# expect. If not, quit, because any of several things could be wrong.
-
-if [ ${SKIP_LOW} -eq 0 ]; then
- process_date "${LATER_THAN}"
- test ${LATER} -ne 1 && \
- error "unexpected result for low date ${LATER_THAN}"
- msg 1 "result for low date is as expected"
-fi
-
-if [ ${SKIP_HIGH} -eq 0 ]; then
- process_date "${EARLIER_THAN}"
- test ${LATER} -ne 0 && \
- error "unexpected result for high date ${EARLIER_THAN}"
- msg 1 "result for high date is as expected"
-fi
-
-# Search within the range, now that we know that the end points are valid.
-
-VALID_RANGE=1
-search_dates ${LOW_DATE} ${HIGH_DATE}
-
-# Report the range that's left to investigate.
-
-echo "Continue search between ${LATER_THAN} and ${EARLIER_THAN}"
-
-# Invoke the optional script to report additional information about
-# changes between the two dates.
-
-${REG_FINISH} "${LATER_THAN}" "${EARLIER_THAN}"
diff --git a/contrib/reghunt/reg_test_template b/contrib/reghunt/reg_test_template
deleted file mode 100755
index 8b935666721..00000000000
--- a/contrib/reghunt/reg_test_template
+++ /dev/null
@@ -1,40 +0,0 @@
-#! /bin/sh
-
-# Template for the test script specified for REG_TEST.
-
-# Run the test case for a regression search. The argument is the date
-# of the CVS sources. The return value is 1 if the binary search should
-# continue with later dates, 0 if it should continue with earlier dates.
-
-DATE="${1}"
-
-# Specify the PR number and the directory where the test should be run.
-PR=xxxx
-DIR=xxxx
-
-LOG_DATE="`echo ${DATE} | sed 's/[-: ]/_/g'`"
-LOG="${PR}.${LOG_DATE}.out"
-
-echo "`date` running test for PR ${PR}"
-cd ${DIR}
-
-# Compile the test case with whatever options are needed to trigger the
-# error.
-
-<compiler_to_run> <options> ${PR}.<x> > ${LOG} 2>&1
-
-# Some tests will require additional commands to determine whether the
-# test passed or failed, such as grepping compiler output for a
-# particular message, or running the test and possibly comparing its
-# output with the expected output.
-
-xxxxx
-
-# The return value depends on whether the last command is expected to be
-# zero or nonzero for a passing test, and whether we're looking for a
-# regression or for the patch that fixed the bug.
-
-# Return 1 to continue the search with later dates, 0 for earlier dates.
-
-test $? -eq 0 && exit 1
-exit 0
diff --git a/gcc/config/i386/scodbx.h b/gcc/config/i386/scodbx.h
deleted file mode 100644
index 7da93053256..00000000000
--- a/gcc/config/i386/scodbx.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Definitions for Intel 386 running SCO Unix System V,
- using dbx-in-coff encapsulation.
- Copyright (C) 1992, 1995, 1996, 1999 Free Software Foundation, Inc.
-
-This file is part of GNU CC.
-
-GNU CC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU CC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING. If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
-
-#include "i386/svr3dbx.h"
-
-/* Overridden defines for SCO systems from sco.h. */
-
-/* By default, target has a 80387, uses IEEE compatible arithmetic,
- and returns float values in the 387, ie,
- (TARGET_80387 | TARGET_FLOAT_RETURNS_IN_80387)
-
- SCO's software emulation of a 387 fails to handle the `fucomp'
- opcode. fucomp is only used when generating IEEE compliant code.
- So don't make TARGET_IEEE_FP default for SCO. */
-
-#undef TARGET_SUBTARGET_DEFAULT
-#define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_FLOAT_RETURNS)
-
-/* Use crt1.o as a startup file and crtn.o as a closing file. */
-
-#undef STARTFILE_SPEC
-#define STARTFILE_SPEC \
- "%{!r:%{!z:svr3.ifile%s}%{z:svr3z.ifile%s}}\
- %{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
-
-/* Library spec, including SCO international language support. */
-
-#undef LIB_SPEC
-#define LIB_SPEC \
- "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} %{scointl:libintl.a%s} -lc"
-
-/* Specify predefined symbols in preprocessor. */
-
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -DM_UNIX -DM_I386 -DM_COFF -DM_WORDSWAP -Asystem=svr3"
-
-#undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) %{scointl:-DM_INTERNAT}"
-
-/* This spec is used for telling cpp whether char is signed or not. */
-
-#undef SIGNED_CHAR_SPEC
-#if DEFAULT_SIGNED_CHAR
-#define SIGNED_CHAR_SPEC \
- "%{funsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}"
-#else
-#define SIGNED_CHAR_SPEC \
- "%{!fsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}"
-#endif
-
-/* caller has to pop the extra argument passed to functions that return
- structures. */
-
-#undef RETURN_POPS_ARGS
-#define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) \
- ((FUNDECL) && TREE_CODE (FUNDECL) == IDENTIFIER_NODE ? 0 \
- : (TARGET_RTD \
- && (TYPE_ARG_TYPES (FUNTYPE) == 0 \
- || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (FUNTYPE))) \
- == void_type_node))) ? (SIZE) \
- : 0)
-/* On other 386 systems, the last line looks like this:
- : (aggregate_value_p (TREE_TYPE (FUNTYPE))) ? GET_MODE_SIZE (Pmode) : 0) */
-
-/* Handle #pragma pack. */
-#define HANDLE_SYSV_PRAGMA
diff --git a/gcc/config/i386/xm-dgux.h b/gcc/config/i386/xm-dgux.h
deleted file mode 100644
index 881c5c7be9d..00000000000
--- a/gcc/config/i386/xm-dgux.h
+++ /dev/null
@@ -1,4 +0,0 @@
-/* Configuration for GCC for Intel i386 running DG/ux */
-
-/* looks just like sysv4 for now */
-#include "xm-svr4.h"
diff --git a/gcc/config/i386/xm-sun.h b/gcc/config/i386/xm-sun.h
deleted file mode 100644
index 6c0f0a25630..00000000000
--- a/gcc/config/i386/xm-sun.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Configuration for GNU C-compiler for Intel 80386 running SunOS 4.0.
- Copyright (C) 1988, 1997 Free Software Foundation, Inc.
-
-This file is part of GNU CC.
-
-GNU CC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU CC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING. If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
-
-#define USG
diff --git a/gcc/config/i386/xm-sysv3.h b/gcc/config/i386/xm-sysv3.h
deleted file mode 100644
index 9a655443ff5..00000000000
--- a/gcc/config/i386/xm-sysv3.h
+++ /dev/null
@@ -1,3 +0,0 @@
-/* Configuration for GCC for Intel i386 running System V Release 3. */
-
-#include "xm-svr3.h"
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C
deleted file mode 100644
index c27aa8d2df7..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C
+++ /dev/null
@@ -1,19 +0,0 @@
-//Build don't link:
-#include <vector>
-#include <algorithm>
-
-template <class T> class Expr
-{
-public :
-Expr(){};
-Expr(const T&){};
-};
-
-template <class T >
-inline bool compare(const Expr<T> a, const Expr<T> b){ return true; };
-
-int main()
-{
- std::vector<int> a(3);
- std::sort( a.begin(), a.end(), compare ); // ERROR - no matching function
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000105-1.c b/gcc/testsuite/gcc.c-torture/compile/20000105-1.c
deleted file mode 100644
index 6f389d88b22..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000105-1.c
+++ /dev/null
@@ -1,27 +0,0 @@
-main(int na, char* argv[])
-{
- int wflg = 0, tflg = 0;
- int dflg = 0;
- exit(0);
- while(1)
- {
- switch(argv[1][0])
- {
- help:
- exit(0);
- case 'w':
- case 'W':
- wflg = 1;
- break;
- case 't':
- case 'T':
- tflg = 1;
- break;
- case 'd':
- dflg = 1;
- break;
- }
- }
-}
-
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000105-2.c b/gcc/testsuite/gcc.c-torture/compile/20000105-2.c
deleted file mode 100644
index 7689395f45d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000105-2.c
+++ /dev/null
@@ -1,5 +0,0 @@
-foo ()
-{
- long long int i = (int) "";
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000120-1.c b/gcc/testsuite/gcc.c-torture/compile/20000120-1.c
deleted file mode 100644
index 99843933bd0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000120-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-extern char letters[26+1];
-char letter;
-int letter_number;
-char letters[] = "AbCdefghiJklmNopQrStuVwXyZ";
-
-static void
-pad_home1 ()
-{
- letter = letters[letter_number =
- letters[letter_number + 1] ? letter_number +
- 1 : 0];
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000120-2.c b/gcc/testsuite/gcc.c-torture/compile/20000120-2.c
deleted file mode 100644
index 737eb92ac64..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000120-2.c
+++ /dev/null
@@ -1,18 +0,0 @@
-extern __inline__ int
-odd(int i)
-{
- return i & 0x1;
-}
-
-int
-foo(int i, int j)
-{
- return odd(i + j);
-}
-
-int
-odd(int i)
-{
- return i & 0x1;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000127-1.c b/gcc/testsuite/gcc.c-torture/compile/20000127-1.c
deleted file mode 100644
index 34b173c680f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000127-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-double bar(void), c;
-int foo(void) {
- double a, b;
- int i = bar() + bar();
- a = i; i += 1; a += 0.1; i = c + i;
- return i;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000211-1.c b/gcc/testsuite/gcc.c-torture/compile/20000211-1.c
deleted file mode 100644
index 8d8a4074e0f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000211-1.c
+++ /dev/null
@@ -1,98 +0,0 @@
-typedef long unsigned int size_t;
-typedef unsigned char Bufbyte;
-typedef int Bytecount;
-typedef int Charcount;
-typedef struct lstream Lstream;
-typedef int Lisp_Object;
-extern Lisp_Object Qnil;
-extern inline int
-TRUE_LIST_P (Lisp_Object object)
-{
- return (( object ) == ( Qnil )) ;
-}
-struct Lisp_String
-{
- Bytecount _size;
- Bufbyte *_data;
-};
-typedef enum lstream_buffering
-{
- LSTREAM_LINE_BUFFERED,
-} Lstream_buffering;
-struct lstream
-{
- Lstream_buffering buffering;
- unsigned char *out_buffer;
- size_t out_buffer_size;
- size_t out_buffer_ind;
- size_t byte_count;
- long flags;
- char data[1];
-};
-typedef struct printf_spec printf_spec;
-struct printf_spec
-{
-};
-typedef union printf_arg printf_arg;
-union printf_arg
-{
-};
-typedef struct
-{
- int cur;
-} printf_spec_dynarr;
-typedef struct
-{
-} printf_arg_dynarr;
-static void
-doprnt_1 (Lisp_Object stream, const Bufbyte *string, Bytecount len,
- Charcount minlen, Charcount maxlen, int minus_flag, int zero_flag)
-{
- Charcount cclen;
- Bufbyte pad;
- Lstream *lstr = (( struct lstream *) ((void *)(((( stream ) & ((1UL << ((4 * 8 ) - 4 ) ) - 1UL) ) ) | 0x40000000 )) ) ;
- cclen = ( len ) ;
- if (zero_flag)
- pad = '0';
- pad = ' ';
-#if 0
- if (minlen > cclen && !minus_flag)
-#endif
- {
- int to_add = minlen - cclen;
- while (to_add > 0)
- {
- (( lstr )->out_buffer_ind >= ( lstr )->out_buffer_size ? Lstream_fputc ( lstr , pad ) : (( lstr )->out_buffer[( lstr )->out_buffer_ind++] = (unsigned char) ( pad ), ( lstr )->byte_count++, ( lstr )->buffering == LSTREAM_LINE_BUFFERED && ( lstr )->out_buffer[( lstr )->out_buffer_ind - 1] == '\n' ? Lstream_flush_out ( lstr ) : 0)) ;
- to_add--;
- }
- }
- if (maxlen >= 0)
- len = ( ((( maxlen ) <= ( cclen )) ? ( maxlen ) : ( cclen )) ) ;
- Lstream_write (lstr, string, len);
- if (minlen > cclen && minus_flag)
- {
- int to_add = minlen - cclen;
- while (to_add > 0)
- {
- (( lstr )->out_buffer_ind >= ( lstr )->out_buffer_size ? Lstream_fputc ( lstr , pad ) : (( lstr )->out_buffer[( lstr )->out_buffer_ind++] = (unsigned char) ( pad ), ( lstr )->byte_count++, ( lstr )->buffering == LSTREAM_LINE_BUFFERED && ( lstr )->out_buffer[( lstr )->out_buffer_ind - 1] == '\n' ? Lstream_flush_out ( lstr ) : 0)) ;
- to_add--;
- }
- }
-}
-static Bytecount
-emacs_doprnt_1 (Lisp_Object stream, const Bufbyte *format_nonreloc,
- Lisp_Object format_reloc, Bytecount format_length,
- int nargs,
- const Lisp_Object *largs)
-{
- int i;
- printf_spec_dynarr *specs = 0;
- format_nonreloc = (( (( struct Lisp_String *) ((void *)(((( format_reloc ) & ((1UL << ((4 * 8 ) - 4 ) ) - 1UL) ) ) | 0x40000000 )) ) )->_data + 0) ;
- format_length = (( (( struct Lisp_String *) ((void *)(((( format_reloc ) & ((1UL << ((4 * 8 ) - 4 ) ) - 1UL) ) ) | 0x40000000 )) ) )->_size) ;
- specs = parse_doprnt_spec (format_nonreloc, format_length);
- for (i = 0; i < (( specs )->cur) ; i++)
- {
- char ch;
- doprnt_1 (stream, (Bufbyte *) &ch, 1, 0, -1, 0, 0);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000211-3.c b/gcc/testsuite/gcc.c-torture/compile/20000211-3.c
deleted file mode 100644
index 7e43c8ad467..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000211-3.c
+++ /dev/null
@@ -1,10 +0,0 @@
-void f_clos(int x)
-
-{
- switch(x) {
- default:
- mumble:
- }
-}
-
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000224-1.c b/gcc/testsuite/gcc.c-torture/compile/20000224-1.c
deleted file mode 100644
index 1c72b6accab..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000224-1.c
+++ /dev/null
@@ -1,41 +0,0 @@
-enum Lisp_Type
-{
- Lisp_Int
- ,Lisp_Record
- ,Lisp_Cons
- ,Lisp_String
- ,Lisp_Vector
- ,Lisp_Symbol
- ,Lisp_Char
-};
-typedef
-union Lisp_Object
- {
- struct
- {
- enum Lisp_Type type: 3L ;
- unsigned long markbit: 1;
- unsigned long val: 32;
- } gu;
- long i;
- }
-Lisp_Object;
-extern int initialized;
-void
-init_device_faces (int *d)
-{
- if (initialized)
- {
- Lisp_Object tdevice;
- do {
- tdevice = (union Lisp_Object)
- { gu:
- { markbit: 0,
- type: Lisp_Record,
- val: ((unsigned long )d)
- }
- };
- } while (0);
- call_critical_lisp_code (tdevice);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000314-1.c b/gcc/testsuite/gcc.c-torture/compile/20000314-1.c
deleted file mode 100644
index 26c13a7d685..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000314-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-struct {
- char a[5];
-} *p;
-
-int main ()
-{
- int i = -1;
-
- if(p->a[-i])
- return 1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000314-2.c b/gcc/testsuite/gcc.c-torture/compile/20000314-2.c
deleted file mode 100644
index 3fdb3c3a857..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000314-2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-extern void malloc(__SIZE_TYPE__ size);
-
-toto()
-{
- malloc(100);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000319-1.c b/gcc/testsuite/gcc.c-torture/compile/20000319-1.c
deleted file mode 100644
index db00e4f016f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000319-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-struct foo
-{
- long x;
- char y;
- long boom[0];
-};
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000326-1.c b/gcc/testsuite/gcc.c-torture/compile/20000326-1.c
deleted file mode 100644
index 71ed149c8ed..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000326-1.c
+++ /dev/null
@@ -1,23 +0,0 @@
-long sys_reboot(int magic1, int magic2, int cmd, void * arg)
-{
- switch (cmd) {
- case 0x89ABCDEF:
- break;
-
- case 0x00000000:
- break;
-
- case 0xCDEF0123:
- break;
-
- case 0x4321FEDC:
- break;
-
- case 0xA1B2C3D4:
- break;
-
- default:
- break;
- };
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000326-2.c b/gcc/testsuite/gcc.c-torture/compile/20000326-2.c
deleted file mode 100644
index 055260f6e64..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000326-2.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef NO_LABEL_VALUES
-extern int printk(const char *fmt, ...);
-
-void foo (int x, int y)
-{
- __label__ here;
- here:
- printk ("", &&here);
-}
-
-#else
-int x;
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000329-1.c b/gcc/testsuite/gcc.c-torture/compile/20000329-1.c
deleted file mode 100644
index 547bf96f955..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000329-1.c
+++ /dev/null
@@ -1,40 +0,0 @@
-int giop_tx_big_endian;
-
-inline
-void
-giop_encode_ulong (unsigned long i, char *buf)
-{
- if (giop_tx_big_endian)
- {
- *(unsigned long *) buf = i;
- }
- else
- {
- *buf++ = i & 0xff;
- *buf++ = (i >> 8) & 0xff;
- *buf++ = (i >> 16) & 0xff;
- *buf = (i >> 24) & 0xff;
- }
-}
-
-
-
-static
-double
-time_giop_encode (unsigned long l)
-{
- int c;
- char buf[4];
-
- for (c = 0; c < (512 * 1024 * 1024); ++c)
- {
- giop_encode_ulong (l, buf);
- }
-}
-
-int
-main (int ac, char *av[])
-{
- giop_tx_big_endian = 1;
- time_giop_encode (0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000403-1.c b/gcc/testsuite/gcc.c-torture/compile/20000403-1.c
deleted file mode 100644
index 27345b56fef..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000403-1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-struct utsname {
- char sysname[32 ];
- char version[32 ];
-};
-int
-uname(name)
- struct utsname *name;
-{
- int mib[2], rval;
- long len;
- char *p;
- int oerrno;
- if (sysctl(mib, 2, &name->sysname, &len, 0 , 0) == -1)
- ;
- for (p = name->version; len--; ++p) {
- *p = ' ';
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000403-2.c b/gcc/testsuite/gcc.c-torture/compile/20000403-2.c
deleted file mode 100644
index c793a49fb6c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000403-2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-void
-foo ()
-{
- long long tmp;
- (( tmp ) = (long long)( tmp ) >> ( 32 )) ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000405-1.c b/gcc/testsuite/gcc.c-torture/compile/20000405-1.c
deleted file mode 100644
index 64dd2e16882..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000405-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (C) 2000 Free Software Foundation
-
-// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
-// simplified from libio/floatconv.c
-
-static const double bar[] = { 0 };
-int j;
-
-double
-foo ()
-{
- return bar[j];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000405-2.c b/gcc/testsuite/gcc.c-torture/compile/20000405-2.c
deleted file mode 100644
index 0b8559f1436..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000405-2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-extern void foo (int);
-
-void bar (unsigned long l)
-{
- foo(l == 0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000405-3.c b/gcc/testsuite/gcc.c-torture/compile/20000405-3.c
deleted file mode 100644
index c2e88339eea..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000405-3.c
+++ /dev/null
@@ -1,9 +0,0 @@
-struct foo {
- void *entry[40];
-} __attribute__ ((aligned(32)));
-
-int foo (struct foo *ptr, int idx, void *pointer)
-{
- ptr->entry[idx] = pointer;
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000412-1.c b/gcc/testsuite/gcc.c-torture/compile/20000412-1.c
deleted file mode 100644
index 243b469e7d2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000412-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-typedef struct {
- short a;
- short b;
-} s1;
-
-extern void g(unsigned char *b);
-
-void f(void)
-{
- s1 a;
- unsigned char *b;
-
- a.a = 0;
- b = (unsigned char *)&a;
- g(b);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000412-2.c b/gcc/testsuite/gcc.c-torture/compile/20000412-2.c
deleted file mode 100644
index e76a1eb73b5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000412-2.c
+++ /dev/null
@@ -1,4 +0,0 @@
-char list[250][64];
-
-int f(int idx) { return (strlen(list[idx])); }
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000420-1.c b/gcc/testsuite/gcc.c-torture/compile/20000420-1.c
deleted file mode 100644
index 552f02e423c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000420-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-struct z_candidate { struct z_candidate *next;int viable;};
-int pedantic;
-
-static struct z_candidate *
-splice_viable (cands)
- struct z_candidate *cands;
-{
- struct z_candidate **p = &cands;
-
- for (; *p; )
- {
- if (pedantic ? (*p)->viable == 1 : (*p)->viable)
- p = &((*p)->next);
- else
- *p = (*p)->next;
- }
-
- return cands;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000420-2.c b/gcc/testsuite/gcc.c-torture/compile/20000420-2.c
deleted file mode 100644
index 2d825f01992..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000420-2.c
+++ /dev/null
@@ -1,11 +0,0 @@
-struct x { int a, b, c; };
-
-extern struct x a ();
-extern void b (struct x);
-
-void
-foo ()
-{
- a ();
- b (a ());
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000427-1.c b/gcc/testsuite/gcc.c-torture/compile/20000427-1.c
deleted file mode 100644
index dc51419cf01..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000427-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-int lwidth;
-int lheight;
-void ConvertFor3dDriver (int requirePO2, int maxAspect)
-{
- int oldw = lwidth, oldh = lheight;
-
- lheight = FindNearestPowerOf2 (lheight);
- while (lwidth/lheight > maxAspect) lheight += lheight;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000502-1.c b/gcc/testsuite/gcc.c-torture/compile/20000502-1.c
deleted file mode 100644
index fcf7899a159..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000502-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-static int minimum(int a, int b)
-{
- if(a < b)
- return a;
- else
- return b;
-}
-static int a, b;
-static inline int foo(void)
-{
- a = minimum (a, b);
- return 0;
-}
-static int bar(void)
-{
- return foo();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000504-1.c b/gcc/testsuite/gcc.c-torture/compile/20000504-1.c
deleted file mode 100644
index 1941bb34da5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000504-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-struct foo {
- int a;
- int b;
-};
-
-int func(struct foo *foo, int a)
-{
- if (foo->b == 0) {
- int ret = foo->a = a;
- if (a >= 0)
- foo->a = a;
- return (ret);
- }
- return (0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000511-1.c b/gcc/testsuite/gcc.c-torture/compile/20000511-1.c
deleted file mode 100644
index 11c131522e6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000511-1.c
+++ /dev/null
@@ -1,31 +0,0 @@
-typedef struct {
- char y;
- char x[32];
-} X;
-
-int z (void)
-{
- X xxx;
- xxx.x[0] =
- xxx.x[31] = '0';
- xxx.y = 0xf;
- return f (xxx, xxx);
-}
-
-int main (void)
-{
- int val;
-
- val = z ();
- if (val != 0x60)
- abort ();
- exit (0);
-}
-
-int f(X x, X y)
-{
- if (x.y != y.y)
- return 'F';
-
- return x.x[0] + y.x[0];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000517-1.c b/gcc/testsuite/gcc.c-torture/compile/20000517-1.c
deleted file mode 100644
index 903e61eefad..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000517-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-void test2 (int*, int, int, int);
-
-void test ()
-{
- int l;
-
- test2 (0, 0, 0, 0);
- test2 (&l, 0, 0, 0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000518-1.c b/gcc/testsuite/gcc.c-torture/compile/20000518-1.c
deleted file mode 100644
index fda44b657cc..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000518-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-void callit1(void*);
-
-extern __inline__ void test()
-{
- __label__ l1;
-
- callit1(&&l1);
-
-l1:
-
-}
-
-
-void dotest()
-{
- test();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000523-1.c b/gcc/testsuite/gcc.c-torture/compile/20000523-1.c
deleted file mode 100644
index eab4a9c42d1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000523-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation */
-/* Contributed by Alexandre Oliva <aoliva@cygnus.com> */
-
-enum { foo = sizeof(void *) };
-int i = sizeof(void *);
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000605-1.c b/gcc/testsuite/gcc.c-torture/compile/20000605-1.c
deleted file mode 100644
index 1fe5882340f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000605-1.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation */
-
-/* make sure we don't get confused by various flavors of void */
-
-/* Origin: Jakub Jelinek <jakub@redhat.com>
- * Joel Sherrill <joel.sherrill@OARcorp.com>
- */
-
-typedef void foo;
-foo bar(void);
-void baz(void)
-{
- bar();
-}
-
-void volatile f();
-
-int x()
-{
- f();
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000606-1.c b/gcc/testsuite/gcc.c-torture/compile/20000606-1.c
deleted file mode 100644
index 93977c0931a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000606-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-typedef struct _foo foo;
-extern foo bar;
-struct _foo {
- int a;
-};
-
-void baz(void)
-{
- bar.a = 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000609-1.c b/gcc/testsuite/gcc.c-torture/compile/20000609-1.c
deleted file mode 100644
index f03aa35a7ac..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000609-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-int main ()
-{
- char temp[1024] = "tempfile";
- return temp[0] != 't';
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000629-1.c b/gcc/testsuite/gcc.c-torture/compile/20000629-1.c
deleted file mode 100644
index 58b522ed815..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000629-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-struct a
-{
- struct a * x;
-};
-
-void
-foo (struct a * b)
-{
- int i;
-
- for (i = 0; i < 1000; i++)
- {
- b->x = b;
- b++;
- }
-}
-
-void
-bar (struct a * b)
-{
- int i;
-
- for (i = 0; i < 1000; i++)
- {
- b->x = b;
- b--;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000701-1.c b/gcc/testsuite/gcc.c-torture/compile/20000701-1.c
deleted file mode 100644
index 2f1e731579b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000701-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-void
-dr106_1(void *pv, int i)
-{
- *pv;
- i ? *pv : *pv;
- *pv, *pv;
-}
-
-void
-dr106_2(const void *pcv, volatile void *pvv, int i)
-{
- *pcv;
- i ? *pcv : *pcv;
- *pcv, *pcv;
-
- *pvv;
- i ? *pvv : *pvv;
- *pvv, *pvv;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000717-1.c b/gcc/testsuite/gcc.c-torture/compile/20000717-1.c
deleted file mode 100644
index 9a0c747ad5b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000717-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-short
-inner_product (short *a, short *b)
-{
- int i;
- short sum = 0;
-
- for (i = 9; i >= 0; i--)
- sum += (*a++) * (*b++);
-
- return sum;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000718.c b/gcc/testsuite/gcc.c-torture/compile/20000718.c
deleted file mode 100644
index acabaf16011..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000718.c
+++ /dev/null
@@ -1,14 +0,0 @@
-extern double foo(double, double);
-extern void bar(float*, int*);
-
-void
-baz(int* arg)
-{
- float tmp = (float)foo(2.0,1.0);
- unsigned i;
- short junk[64];
-
- for (i=0; i<10; i++, arg++) {
- bar(&tmp, arg);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000728-1.c b/gcc/testsuite/gcc.c-torture/compile/20000728-1.c
deleted file mode 100644
index f56d940834e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000728-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-struct clock {
- long sec; long usec;
-};
-
-int foo(void)
-{
- struct clock clock_old = {0, 0};
-
- for (;;) {
- long foo;
-
- if (foo == clock_old.sec && 0 == clock_old.usec);
- }
- return 0;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000802-1.c b/gcc/testsuite/gcc.c-torture/compile/20000802-1.c
deleted file mode 100644
index 0b2f1d6af56..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000802-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-struct foo {
- char a[3];
- char b;
- char c;
-};
-
-struct foo bs;
-int x;
-char y[3];
-
-void bar(void)
-{
- memcpy(bs.a, y, 3);
- bs.a[1] = ((x ? &bs.b : &bs.c) - (char *)&bs) - 2;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000803-1.c b/gcc/testsuite/gcc.c-torture/compile/20000803-1.c
deleted file mode 100644
index 08b50a9f210..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000803-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-static int gl_cnt = 0;
-static char gl_buf[1024];
-
-void
-gl_yank()
-{
- int i;
-
- for (i=gl_cnt; i >= 0; i--)
- gl_buf[i+10] = gl_buf[i];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c
deleted file mode 100644
index d99cb7b5584..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation */
-__complex__ long long f ()
-{
- int i[99];
- __complex__ long long v;
-
- v += f ();
- asm("": "+r" (v) : "r" (0), "r" (1));
- v = 2;
- return v;
- g (&v);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000804-1.x b/gcc/testsuite/gcc.c-torture/compile/20000804-1.x
deleted file mode 100644
index 458c8e720e3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000804-1.x
+++ /dev/null
@@ -1,8 +0,0 @@
-# This does not work on m68hc11 due to the use of an asm statement
-# to force a 'long long' (64-bits) to go in a register.
-
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- return 1
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000818-1.c b/gcc/testsuite/gcc.c-torture/compile/20000818-1.c
deleted file mode 100644
index 01f10f60cf2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000818-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-void
-foo (long double x)
-{
- struct {long double t;} y = {x};
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000825-1.c b/gcc/testsuite/gcc.c-torture/compile/20000825-1.c
deleted file mode 100644
index 3c2e5bda75a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000825-1.c
+++ /dev/null
@@ -1,31 +0,0 @@
-typedef signed int s32;
-typedef signed long s64;
-typedef unsigned int u32;
-typedef unsigned long u64;
-
-extern __inline__ u32 foobar(int logmask)
-{
- u32 ret = ~(1 << logmask); // fails
- // s32 ret = ~(1 << logmask); // ok
- // u64 ret = ~(1 << logmask); // ok
- // s64 ret = ~(1 << logmask); // ok
- return ret;
-}
-
-// This procedure compiles fine...
-u32 good(u32 var)
-{
- var = foobar(0);
- return var;
-}
-
-// This procedure does not compile...
-// Same as above, but formal parameter is a pointer
-// Both good() and fails() compile ok if we choose
-// a different type for "ret" in foobar().
-u32 fails(u32 *var)
-{
- *var = foobar(0);
- return *var;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000827-1.c b/gcc/testsuite/gcc.c-torture/compile/20000827-1.c
deleted file mode 100644
index a985f908b2b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000827-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation */
-/* Contributed by Alexandre Oliva <aoliva@redhat.com> */
-
-int
-foo ()
-{
- while (1)
- {
- int a;
- char b;
- /* gcse should not merge these asm statements, since their
- output operands have different modes. */
- __asm__("":"=r" (a)); __asm__("":"=r" (b));
- if (b)
- return a;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000922-1.c b/gcc/testsuite/gcc.c-torture/compile/20000922-1.c
deleted file mode 100644
index 0fef966e676..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000922-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-extern void doit(int);
-void
-quick_doit(int x)
-{
-#ifdef __OPTIMIZE__
- if (__builtin_constant_p (x)
- && x != 0)
- asm volatile ("%0" : : "i#*X"(x));
- else
-#endif
- doit(x);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000923-1.c b/gcc/testsuite/gcc.c-torture/compile/20000923-1.c
deleted file mode 100644
index 9ed98868206..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20000923-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-const int a = 3;
-const int b = 50;
-
-void foo (void)
-{
- long int x[a][b];
- asm ("" : : "r" (x) : "memory");
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001018-1.c b/gcc/testsuite/gcc.c-torture/compile/20001018-1.c
deleted file mode 100644
index 86e5cd5dda9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001018-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-void
-foo (void)
-{
- extern char i[10];
-
- {
- extern char i[];
- char x[sizeof (i) == 10 ? 1 : -1];
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001024-1.c b/gcc/testsuite/gcc.c-torture/compile/20001024-1.c
deleted file mode 100644
index 59208cde107..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001024-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation */
-/* Contributed by Nathan Sidwell <nathan@codesourcery.com> */
-
-typedef __SIZE_TYPE__ size_t;
-
-extern void *memset(void *, int, size_t);
-
-struct Baz;
-
-void quux(struct Baz *context)
-{
- memset(context, 0, 4);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001109-1.c b/gcc/testsuite/gcc.c-torture/compile/20001109-1.c
deleted file mode 100644
index cce8047ae8a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001109-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-typedef struct _foo foo;
-extern foo bar;
-struct _foo {
- int a;
-};
-
-int tst[__alignof__ (bar) >= __alignof__ (int) ? 1 : -1];
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001109-2.c b/gcc/testsuite/gcc.c-torture/compile/20001109-2.c
deleted file mode 100644
index a23e56bd34b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001109-2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-extern struct foo bar;
-struct foo {
- int a;
-};
-
-int tst[__alignof__ (bar) >= __alignof__ (int) ? 1 : -1];
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001116-1.c b/gcc/testsuite/gcc.c-torture/compile/20001116-1.c
deleted file mode 100644
index c356392fa37..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001116-1.c
+++ /dev/null
@@ -1,3 +0,0 @@
-int x[60];
-char *y = ((char*)&(x[2*8 + 2]) - 8);
-int z = (&"Foobar"[1] - &"Foobar"[0]);
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001121-1.c b/gcc/testsuite/gcc.c-torture/compile/20001121-1.c
deleted file mode 100644
index 38efe6da0fe..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001121-1.c
+++ /dev/null
@@ -1,21 +0,0 @@
-extern int bar(int);
-
-int foo(int x)
-{
- return 1 + bar(
- ({
- int y;
- switch (x)
- {
- case 0: y = 1; break;
- case 1: y = 2; break;
- case 2: y = 3; break;
- case 3: y = 4; break;
- case 4: y = 5; break;
- case 5: y = 6; break;
- default: y = 7; break;
- }
- y;
- })
- );
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001123-1.c b/gcc/testsuite/gcc.c-torture/compile/20001123-1.c
deleted file mode 100644
index 59534480db2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001123-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-
-typedef __builtin_va_list __gnuc_va_list;
-typedef __gnuc_va_list va_list;
-
-struct X { int y; };
-
-void func(va_list va)
-{
- char* a = __builtin_va_arg(va, char**)[0];
- int b = __builtin_va_arg(va, struct X*)->y;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001123-2.c b/gcc/testsuite/gcc.c-torture/compile/20001123-2.c
deleted file mode 100644
index dcb5dd1fa3e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001123-2.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright 2000 Free Software Foundation
-
- by Alexandre Oliva <aoliva@redhat.com>
-
- Based on zlib/gzio.c.
-
- This used to generate duplicate labels when compiled with
- sh-elf-gcc -O2 -m3 -fPIC.
-
- Bug reported by NIIBE Yutaka <gniibe@m17n.org>. */
-
-void foo (void);
-
-void
-bar ()
-{
- unsigned len;
-
- for (len = 0; len < 2; len++)
- foo ();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001205-1.c b/gcc/testsuite/gcc.c-torture/compile/20001205-1.c
deleted file mode 100644
index 69708e59ea0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001205-1.c
+++ /dev/null
@@ -1,21 +0,0 @@
-static inline unsigned long rdfpcr(void)
-{
- unsigned long tmp, ret;
- __asm__ ("" : "=r"(tmp), "=r"(ret));
- return ret;
-}
-
-static inline unsigned long
-swcr_update_status(unsigned long swcr, unsigned long fpcr)
-{
- swcr &= ~0x7e0000ul;
- swcr |= (fpcr >> 3) & 0x7e0000ul;
- return swcr;
-}
-
-unsigned long osf_getsysinfo(unsigned long flags)
-{
- unsigned long w;
- w = swcr_update_status(flags, rdfpcr());
- return w;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001205-1.x b/gcc/testsuite/gcc.c-torture/compile/20001205-1.x
deleted file mode 100644
index 134cdf109fe..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001205-1.x
+++ /dev/null
@@ -1,7 +0,0 @@
-# This does not work on m68hc11 due to the asm statement which
-# forces two 'long' (32-bits) variables to go in registers.
-
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- return 1
-}
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001212-1.c b/gcc/testsuite/gcc.c-torture/compile/20001212-1.c
deleted file mode 100644
index 009138c5d3f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001212-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-typedef struct
-{
- long double l;
-} ld;
-
-ld a (ld x, ld y)
-{
- ld b;
- b.l = x.l + y.l;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001221-1.c b/gcc/testsuite/gcc.c-torture/compile/20001221-1.c
deleted file mode 100644
index 66ae7141147..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001221-1.c
+++ /dev/null
@@ -1,70 +0,0 @@
-static void
-foo ()
-{
- long maplength;
- int type;
- {
- const long nibbles = 8;
- char buf1[nibbles + 1];
- char buf2[nibbles + 1];
- char buf3[nibbles + 1];
- buf1[nibbles] = '\0';
- buf2[nibbles] = '\0';
- buf3[nibbles] = '\0';
- ((nibbles) <= 16
- ? (({
- void *__s = (buf1);
- union
- {
- unsigned int __ui;
- unsigned short int __usi;
- unsigned char __uc;
- }
- *__u = __s;
- unsigned char __c = (unsigned char)('0');
- switch ((unsigned int) (nibbles))
- {
- case 16:
- __u->__ui = __c * 0x01010101;
- __u = __extension__ ((void *) __u + 4);
- case 12:
- __u->__ui = __c * 0x01010101;
- __u = __extension__ ((void *) __u + 4);
- case 0:
- break;
- }
- __s;
- }))
- : 0);
- ((nibbles) <= 16
- ? (({
- void *__s = (buf2);
- union
- {
- unsigned int __ui;
- unsigned short int __usi;
- unsigned char __uc;
- }
- *__u = __s;
- unsigned char __c = (unsigned char)('0');
- switch ((unsigned int) (nibbles))
- {
- case 16:
- __u->__ui = __c * 0x01010101;
- __u = __extension__ ((void *) __u + 4);
- case 12:
- __u->__ui = __c * 0x01010101;
- __u = __extension__ ((void *) __u + 4);
- case 8:
- __u->__ui = __c * 0x01010101;
- __u = __extension__ ((void *) __u + 4);
- case 4:
- __u->__ui = __c * 0x01010101;
- case 0:
- break;
- }
- __s;
- }))
- : 0);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001222-1.c b/gcc/testsuite/gcc.c-torture/compile/20001222-1.c
deleted file mode 100644
index de97eeef70e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001222-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-/* Testcase for PR c/1501. */
-double __complex__
-f (void)
-{
- return ~(1.0 + 2.0i);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001226-1.c b/gcc/testsuite/gcc.c-torture/compile/20001226-1.c
deleted file mode 100644
index 54dacf74167..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001226-1.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* This testcase exposed two branch shortening bugs on powerpc. */
-
-#define C(a,b) \
- if (a > b) goto gt; \
- if (a < b) goto lt;
-
-#define C4(x,b) C((x)[0], b) C((x)[1],b) C((x)[2],b) C((x)[3],b)
-#define C16(x,y) C4(x, (y)[0]) C4(x, (y)[1]) C4(x, (y)[2]) C4(x, (y)[3])
-
-#define C64(x,y) C16(x,y) C16(x+4,y) C16(x+8,y) C16(x+12,y)
-#define C256(x,y) C64(x,y) C64(x,y+4) C64(x,y+8) C64(x,y+12)
-
-#define C1024(x,y) C256(x,y) C256(x+16,y) C256(x+32,y) C256(x+48,y)
-#define C4096(x,y) C1024(x,y) C1024(x,y+16) C1024(x,y+32) C1024(x,y+48)
-
-unsigned foo(int x[64], int y[64])
-{
- C4096(x,y);
-
- return 0x01234567;
- gt:
- return 0x12345678;
- lt:
- return 0xF0123456;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001226-1.x b/gcc/testsuite/gcc.c-torture/compile/20001226-1.x
deleted file mode 100644
index 6e46f46724e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20001226-1.x
+++ /dev/null
@@ -1,22 +0,0 @@
-# This does not assemble on m68hc11 because the function is larger
-# than 64K.
-
-global target_triplet
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- return 1
-}
-
-# It doesn't work on Xtensa with -O0 because the function is larger
-# than the range of a jump instruction (+- 128K) and the assembler
-# does not yet relax jumps to indirect jumps.
-
-set torture_eval_before_compile {
- set compiler_conditional_xfail_data {
- "jump beyond 128K not supported" \
- "xtensa-*-*" \
- { "-O0" } \
- { "" }
- }
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010102-1.c b/gcc/testsuite/gcc.c-torture/compile/20010102-1.c
deleted file mode 100644
index a409b566098..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010102-1.c
+++ /dev/null
@@ -1,101 +0,0 @@
-/* This testcase derives from gnu obstack.c/obstack.h and failed with
- -O3 -funroll-all-loops, or -O1 -frename-registers -funroll-loops on
- sparc-sun-solaris2.7.
-
- Copyright (C) 2001 Free Software Foundation. */
-
-# define PTR_INT_TYPE __PTRDIFF_TYPE__
-
-struct _obstack_chunk
-{
- char *limit;
- struct _obstack_chunk *prev;
- char contents[4];
-};
-
-struct obstack
-{
- long chunk_size;
- struct _obstack_chunk *chunk;
- char *object_base;
- char *next_free;
- char *chunk_limit;
- PTR_INT_TYPE temp;
- int alignment_mask;
- struct _obstack_chunk *(*chunkfun) (void *, long);
- void (*freefun) (void *, struct _obstack_chunk *);
- void *extra_arg;
- unsigned use_extra_arg:1;
- unsigned maybe_empty_object:1;
- unsigned alloc_failed:1;
-};
-
-extern void _obstack_newchunk (struct obstack *, int);
-
-struct fooalign {char x; double d;};
-#define DEFAULT_ALIGNMENT \
- ((PTR_INT_TYPE) ((char *) &((struct fooalign *) 0)->d - (char *) 0))
-union fooround {long x; double d;};
-#define DEFAULT_ROUNDING (sizeof (union fooround))
-
-#ifndef COPYING_UNIT
-#define COPYING_UNIT int
-#endif
-
-#define CALL_CHUNKFUN(h, size) \
- (((h) -> use_extra_arg) \
- ? (*(h)->chunkfun) ((h)->extra_arg, (size)) \
- : (*(struct _obstack_chunk *(*) (long)) (h)->chunkfun) ((size)))
-
-#define CALL_FREEFUN(h, old_chunk) \
- do { \
- if ((h) -> use_extra_arg) \
- (*(h)->freefun) ((h)->extra_arg, (old_chunk)); \
- else \
- (*(void (*) (void *)) (h)->freefun) ((old_chunk)); \
- } while (0)
-
-void
-_obstack_newchunk (h, length)
- struct obstack *h;
- int length;
-{
- register struct _obstack_chunk *old_chunk = h->chunk;
- register struct _obstack_chunk *new_chunk;
- register long new_size;
- register long obj_size = h->next_free - h->object_base;
- register long i;
- long already;
-
- new_size = (obj_size + length) + (obj_size >> 3) + 100;
- if (new_size < h->chunk_size)
- new_size = h->chunk_size;
-
- new_chunk = CALL_CHUNKFUN (h, new_size);
- h->chunk = new_chunk;
- new_chunk->prev = old_chunk;
- new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;
-
- if (h->alignment_mask + 1 >= DEFAULT_ALIGNMENT)
- {
- for (i = obj_size / sizeof (COPYING_UNIT) - 1;
- i >= 0; i--)
- ((COPYING_UNIT *)new_chunk->contents)[i]
- = ((COPYING_UNIT *)h->object_base)[i];
- already = obj_size / sizeof (COPYING_UNIT) * sizeof (COPYING_UNIT);
- }
- else
- already = 0;
- for (i = already; i < obj_size; i++)
- new_chunk->contents[i] = h->object_base[i];
-
- if (h->object_base == old_chunk->contents && ! h->maybe_empty_object)
- {
- new_chunk->prev = old_chunk->prev;
- CALL_FREEFUN (h, old_chunk);
- }
-
- h->object_base = new_chunk->contents;
- h->next_free = h->object_base + obj_size;
- h->maybe_empty_object = 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010107-1.c b/gcc/testsuite/gcc.c-torture/compile/20010107-1.c
deleted file mode 100644
index 222def4d9ef..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010107-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-unsigned long x[4];
-
-void foo(void)
-{
- ((void (*)())(x+2))();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010112-1.c b/gcc/testsuite/gcc.c-torture/compile/20010112-1.c
deleted file mode 100644
index 69bbe169e31..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010112-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Test that putting an initialized variable in a register works. */
-
-#ifdef __i386__
-#define REGISTER asm ("eax")
-#elif defined (__arm__)
-#define REGISTER asm ("r0")
-#else
-/* Put examples for other architectures here. */
-#define REGISTER
-#endif
-
-void f() {
- register int i REGISTER = 3;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010113-1.c b/gcc/testsuite/gcc.c-torture/compile/20010113-1.c
deleted file mode 100644
index 35b7c1f1d7e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010113-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Origin: PR c/364 from and@genesyslab.com, very much reduced to a
- testcase by Joseph Myers <jsm28@cam.ac.uk>.
-
- The initializer of z is a valid address constant, and GCC 2.95.2
- accepts it as such. CVS GCC as of 2001-01-13 rejects it, but accepts
- it if y is changed to x in the initializer. */
-
-struct {
- struct {
- int x;
- int y;
- } p;
-} v;
-
-int *z = &((&(v.p))->y);
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010114-1.c b/gcc/testsuite/gcc.c-torture/compile/20010114-1.c
deleted file mode 100644
index 9b608aad132..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010114-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* Origin: PR c/166 from Joerg Czeranski <jc@joerch.org>. */
-/* In the declaration of proc, x cannot be parsed as a typedef name,
- so it must be parsed as a parameter name. */
-typedef int x;
-void proc(int (*x)(void)) {}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010114-2.c b/gcc/testsuite/gcc.c-torture/compile/20010114-2.c
deleted file mode 100644
index 75f5ea20e09..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010114-2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-/* Origin: <URL:http://gcc.gnu.org/ml/gcc-patches/2000-12/msg01384.html>
- from Fred Fish <fnf@geekgadgets.org>. See also PR c/1625. */
-
-#include <stdbool.h>
-
-struct { int x; bool y; } foo = { 0, false };
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010117-1.c b/gcc/testsuite/gcc.c-torture/compile/20010117-1.c
deleted file mode 100644
index d0772b3c32d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010117-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-unsigned char u, v, w;
-
-void baz (void)
-{
- if ((u - v - w) & 0x80)
- v = 1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010117-2.c b/gcc/testsuite/gcc.c-torture/compile/20010117-2.c
deleted file mode 100644
index 813468b56b2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010117-2.c
+++ /dev/null
@@ -1,20 +0,0 @@
-unsigned char a, b;
-
-void baz (void)
-{
- if (b & 0x08)
- {
- int g = 0;
- int c = (b & 0x01);
- int d = a - g - c;
- int e = (a & 0x0f) - (g & 0x0f);
- int f = (a & 0xf0) - (g & 0xf0);
- int h = (a & 0x0f) - (g & 0x0f);
-
- if ((a ^ g) & (a ^ d) & 0x80) b |= 0x40;
- if ((d & 0xff00) == 0) b |= 0x01;
- if (!((a - h - c) & 0xff)) b |= 0x02;
- if ((a - g - c) & 0x80) b |= 0x80;
- a = (e & 0x0f) | (f & 0xf0);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010118-1.c b/gcc/testsuite/gcc.c-torture/compile/20010118-1.c
deleted file mode 100644
index 6d1fc6431c6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010118-1.c
+++ /dev/null
@@ -1,21 +0,0 @@
-static unsigned int bar(void *h, unsigned int n)
-{
- static int i;
- return i++;
-}
-
-static void baz(unsigned int *x)
-{
- (*x)++;
-}
-
-long
-foo(void *h, unsigned int l)
-{
- unsigned int n;
- long m;
- n = bar(h, 0);
- n = bar(h, n);
- m = ({ baz(&n); 21; });
- return m;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010124-1.c b/gcc/testsuite/gcc.c-torture/compile/20010124-1.c
deleted file mode 100644
index dd2d9c11737..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010124-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Origin: testcase from Joseph Myers <jsm28@cam.ac.uk>, problem pointed
- out in a post to comp.std.c
- <980283801.3063.0.nnrp-07.c2deb1c2@news.demon.co.uk>
- by Dibyendu Majumdar <dibyendu@mazumdar.demon.co.uk>.
- Compound literals should be parsed as postfix expressions, rather than
- as cast expressions. In particular, they are valid operands of sizeof. */
-
-struct s { int a; int b; };
-char x[((sizeof (struct s){ 1, 2 }) == sizeof (struct s)) ? 1 : -1];
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010202-1.c b/gcc/testsuite/gcc.c-torture/compile/20010202-1.c
deleted file mode 100644
index e72586a3371..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010202-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-int foo (int n, char m[1][n]);
-
-int foo (int n, char m[1][n])
-{
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010209-1.c b/gcc/testsuite/gcc.c-torture/compile/20010209-1.c
deleted file mode 100644
index 20434644be6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010209-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-short int a;
-
-int main (void)
-{
- a = 65535.0;
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010226-1.c b/gcc/testsuite/gcc.c-torture/compile/20010226-1.c
deleted file mode 100644
index c06be53dc52..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010226-1.c
+++ /dev/null
@@ -1,22 +0,0 @@
-void f1 (void *);
-void f3 (void *, void (*)(void *));
-void f2 (void *);
-
-int foo (void *a, int b)
-{
- if (!b)
- {
- f1 (a);
- return 1;
- }
- if (b)
- {
- void bar (void *c)
- {
- if (c == a)
- f2 (c);
- }
- f3 (a, bar);
- }
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010227-1.c b/gcc/testsuite/gcc.c-torture/compile/20010227-1.c
deleted file mode 100644
index 767cb0d1c2e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010227-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-void foo (void)
-{
- double a = 0.0;
- double b = a;
- if (&b != &a);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010313-1.c b/gcc/testsuite/gcc.c-torture/compile/20010313-1.c
deleted file mode 100644
index a5a6ee65217..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010313-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
-/* After the open parenthesis before the __attribute__, we used to shift
- the __attribute__ (expecting a parenthesised abstract declarator)
- instead of reducing to the start of a parameter list. */
-void bar (int (__attribute__((__mode__(__SI__))) int foo));
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010320-1.c b/gcc/testsuite/gcc.c-torture/compile/20010320-1.c
deleted file mode 100644
index 14686d62318..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010320-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-typedef struct sec {
-const char *name;
-int id;
-int index;
-struct sec *next;
-unsigned int flags;
-unsigned int user_set_vma : 1;
-unsigned int reloc_done : 1;
-unsigned int linker_mark : 1;
-unsigned int gc_mark : 1;
-unsigned int segment_mark : 1;
-unsigned long long vma; } asection;
-
-static void pe_print_pdata (asection *section)
-{
- unsigned long long i;
- unsigned long long start = 0, stop = 0;
- int onaline = (3*8) ;
-
- for (i = start; i < stop; i += onaline)
- {
- if (i + (3*8) > stop)
- break;
-
- f (((unsigned long) ((( i + section->vma ) >> 32) & 0xffffffff)) , ((unsigned long) ((( i + section->vma ) & 0xffffffff))) ) ;
- }
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010326-1.c b/gcc/testsuite/gcc.c-torture/compile/20010326-1.c
deleted file mode 100644
index 43acf4588ca..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010326-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-float d;
-int e, f;
-
-void foo (void)
-{
- struct { float u, v; } a = {0.0, 0.0};
- float b;
- int c;
-
- c = e;
- if (c == 0)
- c = f;
- b = d;
- if (a.v < b)
- a.v = b;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010327-1.c b/gcc/testsuite/gcc.c-torture/compile/20010327-1.c
deleted file mode 100644
index 10f7e39516f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010327-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* This testcase tests whether GCC can produce static initialized data
- that references addresses of size 'unsigned long', even if that's not
- the same as __SIZE_TYPE__. (See 20011114-1.c for the same test of
- size __SIZE_TYPE__.)
-
- Some rare environments might not have the required relocs to support
- this; they should have this test disabled in the .x file. */
-extern void _text;
-static unsigned long x = (unsigned long) &_text - 0x10000000L - 1;
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010328-1.c b/gcc/testsuite/gcc.c-torture/compile/20010328-1.c
deleted file mode 100644
index d92c6dae113..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010328-1.c
+++ /dev/null
@@ -1,80 +0,0 @@
-typedef unsigned int size_t;
-typedef unsigned int __u_int;
-typedef unsigned long __u_long;
-
-__extension__ typedef unsigned long long int __u_quad_t;
-__extension__ typedef long long int __quad_t;
-
-typedef struct
- {
- int __val[2];
- } __fsid_t;
-
-typedef long int __blksize_t;
-typedef long int __blkcnt_t;
-typedef __quad_t __blkcnt64_t;
-typedef __u_long __fsblkcnt_t;
-typedef __u_quad_t __fsblkcnt64_t;
-typedef __u_long __fsfilcnt_t;
-typedef __u_quad_t __fsfilcnt64_t;
-typedef __u_quad_t __ino64_t;
-
-extern void *memcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n) ;
-
-struct statfs
- {
- int f_type;
- int f_bsize;
-
- __fsblkcnt_t f_blocks;
- __fsblkcnt_t f_bfree;
- __fsblkcnt_t f_bavail;
- __fsfilcnt_t f_files;
- __fsfilcnt_t f_ffree;
-
- __fsid_t f_fsid;
- int f_namelen;
- int f_spare[6];
- };
-
-
-struct statfs64
- {
- int f_type;
- int f_bsize;
- __fsblkcnt64_t f_blocks;
- __fsblkcnt64_t f_bfree;
- __fsblkcnt64_t f_bavail;
- __fsfilcnt64_t f_files;
- __fsfilcnt64_t f_ffree;
- __fsid_t f_fsid;
- int f_namelen;
- int f_spare[6];
- };
-
-extern int __statfs (__const char *__file, struct statfs *__buf);
-extern int __statfs64 (__const char *__file, struct statfs64 *__buf);
-
-
-int
-__statfs64 (const char *file, struct statfs64 *buf)
-{
- struct statfs buf32;
-
- if (__statfs (file, &buf32) < 0)
- return -1;
-
- buf->f_type = buf32.f_type;
- buf->f_bsize = buf32.f_bsize;
- buf->f_blocks = buf32.f_blocks;
- buf->f_bfree = buf32.f_bfree;
- buf->f_bavail = buf32.f_bavail;
- buf->f_files = buf32.f_files;
- buf->f_ffree = buf32.f_ffree;
- buf->f_fsid = buf32.f_fsid;
- buf->f_namelen = buf32.f_namelen;
- memcpy (buf->f_spare, buf32.f_spare, sizeof (buf32.f_spare));
-
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010329-1.c b/gcc/testsuite/gcc.c-torture/compile/20010329-1.c
deleted file mode 100644
index 4d495e1afc8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010329-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-union u {
- unsigned char a;
- double b;
-};
-
-int a;
-
-union u foo (void)
-{
- union u b;
-
- if (a)
- b.a = 1;
- else
- b.a = 0;
- return b;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010404-1.c b/gcc/testsuite/gcc.c-torture/compile/20010404-1.c
deleted file mode 100644
index f890118e15d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010404-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This testcase caused a floating point exception in the compiler when
- compiled with -O2. The crash occurs when trying to simplify division
- and modulo operations. */
-
-#include <limits.h>
-
-extern void bar (int);
-
-void foo ()
-{
- int a = INT_MIN;
- int b = -1;
- bar (a / b);
- bar (a % b);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010408-1.c b/gcc/testsuite/gcc.c-torture/compile/20010408-1.c
deleted file mode 100644
index 9aa3597a24a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010408-1.c
+++ /dev/null
@@ -1,77 +0,0 @@
-extern struct win *windows, *wtab[];
-struct win
-{
- struct win *w_next;
-};
-
-struct auser;
-
-struct comm
-{
- char *name;
- int flags;
-};
-
-extern struct comm comms[];
-
-extern int WindowByNoN (char *);
-extern int FindCommnr (char *);
-extern int AclSetPermCmd (struct auser *, char *, struct comm *);
-extern int AclSetPermWin (struct auser *, struct auser *, char *, struct win *);
-
-
-int
- AclSetPerm(uu, u, mode, s)
- struct auser *uu, *u;
-char *mode, *s;
-{
- struct win *w;
- int i;
- char *p, ch;
-
- do
- {
- }
- while (0);
-
- while (*s)
- {
- switch (*s)
- {
- case '*':
- return AclSetPerm(uu, u, mode, "#?");
- case '#':
- if (uu)
- AclSetPermWin(uu, u, mode, (struct win *)1);
- else
- for (w = windows; w; w = w->w_next)
- AclSetPermWin((struct auser *)0, u, mode, w);
- s++;
- break;
- case '?':
- if (uu)
- AclSetPermWin(uu, u, mode, (struct win *)0);
- else
- for (i = 0; i <= 174; i++)
- AclSetPermCmd(u, mode, &comms[i]);
- s++;
- break;
- default:
- for (p = s; *p && *p != ' ' && *p != '\t' && *p != ','; p++)
- ;
- if ((ch = *p))
- *p++ = '\0';
- if ((i = FindCommnr(s)) != -1)
- AclSetPermCmd(u, mode, &comms[i]);
- else if (((i = WindowByNoN(s)) >= 0) && wtab[i])
- AclSetPermWin((struct auser *)0, u, mode, wtab[i]);
- else
- return -1;
- if (ch)
- p[-1] = ch;
- s = p;
- }
- }
-
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010421-1.c b/gcc/testsuite/gcc.c-torture/compile/20010421-1.c
deleted file mode 100644
index bec6aa90304..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010421-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-int j;
-
-void residual ()
-{
- long double s;
- for (j = 3; j < 9; j++)
- s -= 3;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010423-1.c b/gcc/testsuite/gcc.c-torture/compile/20010423-1.c
deleted file mode 100644
index ef7771f8e6b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010423-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* Origin: PR c/2618 from Cesar Eduardo Barros <cesarb@nitnet.com.br>,
- adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
-
- Boolean conversions were causing infinite recursion between convert
- and fold in certain cases. */
-
-#include <stdbool.h>
-
-bool x;
-unsigned char y;
-
-void
-fn (void)
-{
- x = y & 0x1 ? 1 : 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010426-1.c b/gcc/testsuite/gcc.c-torture/compile/20010426-1.c
deleted file mode 100644
index 356818f9ec8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010426-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-struct { char *m; long n; } a[20];
-int b = 20, c;
-void bar(void) __attribute__((__noreturn__));
-
-int
-foo(int x)
-{
- int i;
-
- for (i = 0; i < x; i++)
- {
- a[0].m = "a"; a[0].n = 10; c=1;
- a[c].m = "b"; a[c].n = 32; c++;
- if (c >= b) bar ();
- a[c].m = "c"; a[c].n = 80; c++;
- if (c >= b) bar ();
- }
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010503-1.c b/gcc/testsuite/gcc.c-torture/compile/20010503-1.c
deleted file mode 100644
index 75005f456c3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010503-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-void f1 (double);
-void f2 (int);
-
-void
-foo (int type, double xx)
-{
- if (type)
- f1 (xx);
- else
- f2 (type);
-}
-
-void
-bar (int type)
-{
- foo (type, 1.0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010510-1.c b/gcc/testsuite/gcc.c-torture/compile/20010510-1.c
deleted file mode 100644
index 23d44f8642c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010510-1.c
+++ /dev/null
@@ -1,3 +0,0 @@
-typedef char *ident;
-#ident "This is ident"
-ident i;
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010516-1.c b/gcc/testsuite/gcc.c-torture/compile/20010516-1.c
deleted file mode 100644
index 7732812cfb1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010516-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-foo()
-{
- char d;
- asm volatile ( "" :: "m"(&d));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010518-1.c b/gcc/testsuite/gcc.c-torture/compile/20010518-1.c
deleted file mode 100644
index 4ab40d8e226..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010518-1.c
+++ /dev/null
@@ -1,205 +0,0 @@
-/* This was cut down from reload1.c in May 2001, was observed to cause
- a bootstrap failure for powerpc-apple-darwin1.3.
-
- Copyright (C) 2001 Free Software Foundation. */
-
-enum insn_code
-{
- CODE_FOR_extendqidi2 = 3,
- CODE_FOR_nothing = 870
-};
-
-struct rtx_def;
-
-enum machine_mode
-{
- VOIDmode,
- MAX_MACHINE_MODE
-};
-
-typedef unsigned long long HARD_REG_ELT_TYPE;
-typedef HARD_REG_ELT_TYPE HARD_REG_SET[((77 + (8 * 8) - 1) / (8 * 8))];
-
-enum rtx_code
-{
- UNKNOWN,
- NIL,
- REG,
- LAST_AND_UNUSED_RTX_CODE
-};
-
-typedef struct
-{
- unsigned min_align:8;
- unsigned base_after_vec:1;
- unsigned min_after_vec:1;
- unsigned max_after_vec:1;
- unsigned min_after_base:1;
- unsigned max_after_base:1;
- unsigned offset_unsigned:1;
- unsigned:2;
- unsigned scale:8;
-}
-addr_diff_vec_flags;
-typedef union rtunion_def
-{
- long long rtwint;
- int rtint;
- unsigned int rtuint;
- const char *rtstr;
- struct rtx_def *rtx;
- struct rtvec_def *rtvec;
- enum machine_mode rttype;
- addr_diff_vec_flags rt_addr_diff_vec_flags;
- struct cselib_val_struct *rt_cselib;
- struct bitmap_head_def *rtbit;
- union tree_node *rttree;
- struct basic_block_def *bb;
-}
-rtunion;
-typedef struct rtx_def
-{
- enum rtx_code code:16;
- enum machine_mode mode:8;
- unsigned int jump:1;
- unsigned int call:1;
- unsigned int unchanging:1;
- unsigned int volatil:1;
- unsigned int in_struct:1;
- unsigned int used:1;
- unsigned integrated:1;
- unsigned frame_related:1;
- rtunion fld[1];
-}
- *rtx;
-
-enum reload_type
-{
- RELOAD_FOR_INPUT, RELOAD_FOR_OUTPUT, RELOAD_FOR_INSN,
- RELOAD_FOR_INPUT_ADDRESS, RELOAD_FOR_INPADDR_ADDRESS,
- RELOAD_FOR_OUTPUT_ADDRESS, RELOAD_FOR_OUTADDR_ADDRESS,
- RELOAD_FOR_OPERAND_ADDRESS, RELOAD_FOR_OPADDR_ADDR,
- RELOAD_OTHER, RELOAD_FOR_OTHER_ADDRESS
-};
-
-struct reload
-{
- rtx in;
- rtx out;
- // enum reg_class class;
- enum machine_mode inmode;
- enum machine_mode outmode;
- enum machine_mode mode;
- unsigned int nregs;
- int inc;
- rtx in_reg;
- rtx out_reg;
- int regno;
- rtx reg_rtx;
- int opnum;
- int secondary_in_reload;
- int secondary_out_reload;
- enum insn_code secondary_in_icode;
- enum insn_code secondary_out_icode;
- enum reload_type when_needed;
- unsigned int optional:1;
- unsigned int nocombine:1;
- unsigned int secondary_p:1;
- unsigned int nongroup:1;
-};
-
-struct insn_chain
-{
- rtx insn;
-};
-
-extern int n_reloads;
-static short reload_order[(2 * 10 * (2 + 1))];
-int reload_spill_index[(2 * 10 * (2 + 1))];
-extern struct reload rld[(2 * 10 * (2 + 1))];
-static rtx *reg_last_reload_reg;
-static HARD_REG_SET reg_reloaded_valid;
-static HARD_REG_SET reg_reloaded_dead;
-static HARD_REG_SET reg_reloaded_died;
-static HARD_REG_SET reg_is_output_reload;
-extern const unsigned int mode_size[];
-extern int target_flags;
-
-static void
-emit_reload_insns (chain)
- struct insn_chain *chain;
-{
- rtx insn = chain->insn;
- register int j;
- rtx following_insn = (((insn)->fld[2]).rtx);
- rtx before_insn = (((insn)->fld[1]).rtx);
-
- for (j = 0; j < n_reloads; j++)
- {
- register int r = reload_order[j];
- register int i = reload_spill_index[r];
-
- {
- rtx out = (((enum rtx_code) (rld[r].out)->code) == REG ? rld[r].out : rld[r].out_reg);
- register int nregno = (((out)->fld[0]).rtuint);
-
- if (nregno >= 77)
- {
- rtx src_reg, store_insn = (rtx) 0;
-
- reg_last_reload_reg[nregno] = 0;
- if (src_reg && ((enum rtx_code) (src_reg)->code) == REG && (((src_reg)->fld[0]).rtuint) < 77)
- {
- int src_regno = (((src_reg)->fld[0]).rtuint);
- int nr =
- (((src_regno) >= 32
- && (src_regno) <=
- 63) ? (((mode_size[(int) (rld[r].mode)]) + 8 -
- 1) / 8) : (((mode_size[(int) (rld[r].mode)]) +
- (!(target_flags & 0x00000020) ? 4 :
- 8) - 1) / (!(target_flags & 0x00000020) ? 4 : 8)));
- rtx note = 0;
-
- while (nr-- > 0)
- {
- ((reg_reloaded_dead)
- [(src_regno + nr) / ((unsigned) (8 * 8))] &=
- ~(((HARD_REG_ELT_TYPE) (1)) << ((src_regno + nr) % ((unsigned) (8 * 8)))));
- ((reg_reloaded_valid)
- [(src_regno + nr) / ((unsigned) (8 * 8))] |=
- ((HARD_REG_ELT_TYPE) (1)) << ((src_regno + nr) % ((unsigned) (8 * 8))));
- ((reg_is_output_reload)
- [(src_regno + nr) / ((unsigned) (8 * 8))] |=
- ((HARD_REG_ELT_TYPE) (1)) << ((src_regno + nr) % ((unsigned) (8 * 8))));
- if (note)
- ((reg_reloaded_died)
- [(src_regno) / ((unsigned) (8 * 8))] |=
- ((HARD_REG_ELT_TYPE) (1)) << ((src_regno) % ((unsigned) (8 * 8))));
- else
- ((reg_reloaded_died)
- [(src_regno) / ((unsigned) (8 * 8))] &=
- ~(((HARD_REG_ELT_TYPE) (1)) << ((src_regno) % ((unsigned) (8 * 8)))));
- }
- reg_last_reload_reg[nregno] = src_reg;
- }
- }
- else
- {
- int num_regs =
- (((nregno) >= 32
- && (nregno) <=
- 63)
- ? (((mode_size
- [(int) (((enum machine_mode) (rld[r].out)->mode))]) +
- 8 -
- 1) /
- 8)
- : (((mode_size
- [(int) (((enum machine_mode) (rld[r].out)->mode))]) +
- (!(target_flags & 0x00000020) ? 4 : 8) - 1) / (!(target_flags & 0x00000020) ? 4 : 8)));
- while (num_regs-- > 0)
- reg_last_reload_reg[nregno + num_regs] = 0;
- }
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010518-2.c b/gcc/testsuite/gcc.c-torture/compile/20010518-2.c
deleted file mode 100644
index aa8ce344c05..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010518-2.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Large static storage. */
-
-#include <limits.h>
-
-static volatile char chars_1[INT_MAX / 2];
-static volatile char chars_2[1];
-
-int
-foo (void)
-{
- chars_1[10] = 'y';
- chars_2[0] = 'x';
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010518-2.x b/gcc/testsuite/gcc.c-torture/compile/20010518-2.x
deleted file mode 100644
index 1bd6f8fd464..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010518-2.x
+++ /dev/null
@@ -1,8 +0,0 @@
-# This test fails on HC11/HC12 when it is compiled without -mshort because
-# the array is too large (INT_MAX/2 > 64K). Force to use 16-bit ints for it.
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- set options "-S -mshort"
-} else {
- set options "-S"
-}
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010525-1.c b/gcc/testsuite/gcc.c-torture/compile/20010525-1.c
deleted file mode 100644
index 2e4ae382ab9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010525-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-static int kind_varread(char *str)
-{
- if (0 == memcmp("%_#", str, 3)) return 2;
- /* NOTREACHED */
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010605-1.c b/gcc/testsuite/gcc.c-torture/compile/20010605-1.c
deleted file mode 100644
index 036b796982e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010605-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-int
-main (int argc, char **argv)
-{
- int size = 10;
-
- typedef struct {
- char val[size];
- } block;
- block retframe_block()
- {
- return *(block*)0;
- }
-
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010605-2.c b/gcc/testsuite/gcc.c-torture/compile/20010605-2.c
deleted file mode 100644
index b8d9d5892da..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010605-2.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
-/* As an extension, GCC allows a struct or union to be cast to its own
- type, but failed to allow this when a typedef was involved.
- Reported as PR c/2735 by <cowan@ccil.org>. */
-union u { int i; };
-typedef union u uu;
-union u a;
-uu b;
-
-void
-foo (void)
-{
- a = (union u) b;
- a = (uu) b;
- b = (union u) a;
- b = (uu) a;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010605-3.c b/gcc/testsuite/gcc.c-torture/compile/20010605-3.c
deleted file mode 100644
index a43c0b1e462..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010605-3.c
+++ /dev/null
@@ -1,20 +0,0 @@
-struct A { unsigned long buf[100]; };
-int foo(unsigned int *x)
-{
- unsigned int a;
-
- if (!x)
- return -22;
-
-#ifdef __ia64__
- if (({
- register long b asm ("r8") = 0;
- register long c asm ("r9") = 0;
- asm ("" : "=r"(c), "=r"(b) : "m"(*(struct A *)x), "1"(b));
- a = (unsigned int) c;
- b; }))
- return -14;
-#endif
-
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010610-1.c b/gcc/testsuite/gcc.c-torture/compile/20010610-1.c
deleted file mode 100644
index ee8e2431bbb..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010610-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* Origin: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- Boolean types were not accepted as array sizes nor as switch
- quantities. */
-
-#include <stdbool.h>
-
-int
-main(void)
-{
- bool arr[(bool)1];
-
- switch (arr[0])
- {
- default:;
- }
-
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010611-1.c b/gcc/testsuite/gcc.c-torture/compile/20010611-1.c
deleted file mode 100644
index 87723bd497a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010611-1.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Origin: PR c/3116 from Andreas Jaeger <aj@suse.de>. */
-/* When determining type compatibility of function types, we must remove
- qualifiers from argument types. We used to fail to do this properly
- in store_parm_decls when comparing prototype and non-prototype
- declarations. */
-struct _IO_FILE {
- int _flags;
-};
-
-typedef struct _IO_FILE __FILE;
-typedef struct _IO_FILE _IO_FILE;
-typedef long int wchar_t;
-
-extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
- __FILE *__restrict __stream);
-
-wchar_t *
-fgetws (buf, n, fp)
- wchar_t *buf;
- int n;
- _IO_FILE *fp;
-{
- return (wchar_t *)0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010701-1.c b/gcc/testsuite/gcc.c-torture/compile/20010701-1.c
deleted file mode 100644
index 7fb7ab5b150..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010701-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* Test that postfix attributes only apply to a single declared object.
- (decl_attributes used to chain them onto the end of the prefix attributes,
- which caused them to apply to other declarations as well.) */
-/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
-void __attribute__((__noreturn__)) foo (const char *, ...) __attribute__((__format__(__printf__, 1, 2))), bar (void);
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010706-1.c b/gcc/testsuite/gcc.c-torture/compile/20010706-1.c
deleted file mode 100644
index 44aec371a99..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010706-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-
-foo(unsigned int x)
-{
- return (x << 1) | (x >> 31);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010711-1.c b/gcc/testsuite/gcc.c-torture/compile/20010711-1.c
deleted file mode 100644
index a0787421f94..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010711-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-typedef unsigned long long value;
-
-void foo (value *v) {}
-
-void test ()
-{
- value v;
- foo (&v);
- if (v-- > 0)
- foo (&v);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010711-2.c b/gcc/testsuite/gcc.c-torture/compile/20010711-2.c
deleted file mode 100644
index 2f8d68ba4ae..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010711-2.c
+++ /dev/null
@@ -1,11 +0,0 @@
-typedef unsigned long long value;
-
-void foo (value *v) {}
-
-void test ()
-{
- value v;
- foo (&v);
- if (v-- == 1)
- foo (&v);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010714-1.c b/gcc/testsuite/gcc.c-torture/compile/20010714-1.c
deleted file mode 100644
index fc4bdbac7d5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010714-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* Test that prefix attributes after a comma only apply to a single
- declared object or function. */
-/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
-
-__attribute__((noreturn)) void d0 (void), __attribute__((format(printf, 1, 2))) d1 (const char *, ...), d2 (void);
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010824-1.c b/gcc/testsuite/gcc.c-torture/compile/20010824-1.c
deleted file mode 100644
index 8e67722b960..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010824-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-void f(int n)
-{
-bugcauser:
- if (n != 0)
- f(n-1);
- return;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010903-1.c b/gcc/testsuite/gcc.c-torture/compile/20010903-1.c
deleted file mode 100644
index 8e519f26e41..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010903-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-struct A {
- long a;
-};
-
-static inline void foo(struct A *x)
-{
- __asm__ __volatile__("" : "+m"(x->a) : "r"(x) : "memory", "cc");
-}
-
-static inline void bar(struct A *x)
-{
- foo(x);
-}
-
-struct B { char buf[640]; struct A a; };
-struct B b[32];
-
-int baz(void)
-{
- int i;
- struct B *j;
- for (i = 1; i < 32; i++)
- {
- j = &b[i];
- bar(&j->a);
- }
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010903-2.c b/gcc/testsuite/gcc.c-torture/compile/20010903-2.c
deleted file mode 100644
index a5d78c0111d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010903-2.c
+++ /dev/null
@@ -1,15 +0,0 @@
-extern int __dummy (void *__preg, const char *__string);
-extern int rpmatch (const char *response);
-
-int
-rpmatch (const char *response)
-{
- auto inline int try (void *re);
-
- inline int try (void *re)
- {
- return __dummy (re, response);
- }
- static void *yesre;
- return (try (&yesre));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010911-1.c b/gcc/testsuite/gcc.c-torture/compile/20010911-1.c
deleted file mode 100644
index f5a4724bc72..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20010911-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-/* Test for segfault handling an empty attribute. */
-/* Origin: PR c/4294 from <tori@ringstrom.mine.nu>. */
-
-void __attribute__(()) foo();
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011010-1.c b/gcc/testsuite/gcc.c-torture/compile/20011010-1.c
deleted file mode 100644
index b0137554379..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011010-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-extern int used (void);
-
-
-int foo ()
-{
- int i;
- for (; used (); ({while (1) if (used ()) return 0;}))
- i++;
- return i;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011023-1.c b/gcc/testsuite/gcc.c-torture/compile/20011023-1.c
deleted file mode 100644
index eca1adf17ca..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011023-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Test whether tree inlining works with prototyped nested functions. */
-
-extern void foo (char *x);
-void bar (void);
-void bar (void)
-{
- auto void baz (void);
- void baz (void)
- {
- char tmp[2];
- foo (tmp);
- }
- baz ();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011029-1.c b/gcc/testsuite/gcc.c-torture/compile/20011029-1.c
deleted file mode 100644
index 3b2bcdf2e9d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011029-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-void foo (void *) __attribute__ ((noreturn));
-
-void
-bar (void *x)
-{
- if (__builtin_setjmp (x))
- return;
- foo (x);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011106-1.c b/gcc/testsuite/gcc.c-torture/compile/20011106-1.c
deleted file mode 100644
index 9363780a65a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011106-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* Test that functions passed to the comma operator are correctly converted
- to pointers. */
-/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
-
-void foo (void);
-void (*fp) (void);
-char x[sizeof (1, foo) == sizeof (fp) ? 1 : -1];
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011106-2.c b/gcc/testsuite/gcc.c-torture/compile/20011106-2.c
deleted file mode 100644
index 358f9d2ed49..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011106-2.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* Test the the type of a component of a conditional expression between
- two structures is correct. */
-/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */
-
-struct s { char c; } a, b;
-int c;
-char x[sizeof ((c ? a : b).c) == 1 ? 1 : -1];
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011109-1.c b/gcc/testsuite/gcc.c-torture/compile/20011109-1.c
deleted file mode 100644
index f1987a74bf2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011109-1.c
+++ /dev/null
@@ -1,51 +0,0 @@
-typedef struct { short x[4]; } S;
-typedef struct { unsigned int a, b, c; S *d; } T;
-
-S *(*foo) (T *, int, int, int, int);
-unsigned short *(*bar)(const T *);
-unsigned short baz(T *,const int);
-
-T *die (void)
-{
- typedef struct { unsigned int a, b, e; double f, g; } U;
-
- char h[8], i[2053], j[2053];
- double k, l, m;
- U n;
- T *o;
- unsigned short p;
- int q, r;
- long s;
- unsigned short *t;
- S *u;
- unsigned char *v, *w;
- unsigned int x;
-
- o = 0;
- for (x = 0; x < n.e; x++)
- {
- l = 1.0;
- if (n.g - n.f <= 1.0)
- l = ((1 << o->c) - 1) / (n.g - n.f);
- v = w;
- for (r = o->b - 1; r >= 0; r--)
- {
- u = foo (o, 0, r, o->a, 1);
- if (!u)
- break;
- t = bar (o);
- for (q = 0; q < (int) o->a; q++)
- {
- h[0] = *v;
- s = *v++;
- k = (double) s;
- m = l*k;
- p = m < 0 ? 0 : m > (1 << o->c) - 1 ? (1 << o->c) - 1 : m + 0.5;
- p = baz (o,p);
- t[q] = p;
- *u++ = o->d[p];
- }
- }
- }
- return o;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011114-1.c b/gcc/testsuite/gcc.c-torture/compile/20011114-1.c
deleted file mode 100644
index 5e6e821845d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011114-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-extern void _text;
-static __SIZE_TYPE__ x = (__SIZE_TYPE__) &_text - 0x10000000L - 1;
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011114-2.c b/gcc/testsuite/gcc.c-torture/compile/20011114-2.c
deleted file mode 100644
index 46f0aedeb3a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011114-2.c
+++ /dev/null
@@ -1,13 +0,0 @@
-typedef struct { int c, d, e, f, g; } D;
-
-void bar (unsigned long, unsigned long);
-void foo (D *y)
-{
- int x = 0;
-
- if (y->f == 0)
- x |= 0x1;
- if (y->g == 0)
- x |= 0x2;
- bar ((x << 16) | (y->c & 0xffff), (y->d << 16) | (y->e & 0xffff));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011114-3.c b/gcc/testsuite/gcc.c-torture/compile/20011114-3.c
deleted file mode 100644
index 882792525c9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011114-3.c
+++ /dev/null
@@ -1,42 +0,0 @@
-typedef struct { int s, t; } C;
-C x;
-int foo (void);
-void bar (int);
-
-int baz (void)
-{
- int a = 0, c, d = 0;
- C *b = &x;
-
- while ((c = foo ()))
- switch(c)
- {
- case 23:
- bar (1);
- break;
- default:
- break;
- }
-
- if (a == 0 || (a & 1))
- {
- if (b->s)
- {
- if (a)
- bar (1);
- else
- a = 16;
- }
- else if (b->t)
- {
- if (a)
- bar (1);
- else
- a = 32;
- }
- }
-
- if (d && (a & ~127))
- bar (2);
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011114-4.c b/gcc/testsuite/gcc.c-torture/compile/20011114-4.c
deleted file mode 100644
index 516ef4f2325..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011114-4.c
+++ /dev/null
@@ -1,38 +0,0 @@
-static inline int foo (long x)
-{
- register int a = 0;
- register unsigned b;
-
- do
- {
- b = (x & 0x7f);
- x = (x >> 7) | ~(-1L >> 7);
- a += 1;
- }
- while ((x != 0 || (b & 0x40) != 0) && (x != -1 || (b & 0x40) == 0));
- return a;
-}
-
-static inline int bar (unsigned long x)
-{
- register int a = 0;
- register unsigned b;
-
- do
- {
- b = (x & 0x7f);
- x >>= 7;
- a++;
- }
- while (x != 0);
- return a;
-}
-
-int
-baz (unsigned long x, int y)
-{
- if (y)
- return foo ((long) x);
- else
- return bar (x);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011119-1.c b/gcc/testsuite/gcc.c-torture/compile/20011119-1.c
deleted file mode 100644
index 2204c11c90b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011119-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-extern inline int foo (void) { return 23; }
-int xxx(void) __asm__("xxx");
-int xxx(void) { return 23; }
-extern int foo (void) __attribute__ ((weak, alias ("xxx")));
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011119-2.c b/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
deleted file mode 100644
index ab649b98bc7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-extern inline int foo (void) { return 23; }
-int bar (void) { return foo (); }
-extern int foo (void) __attribute__ ((weak, alias ("xxx")));
-int baz (void) { return foo (); }
-int xxx(void) __asm__("xxx");
-int xxx(void) { return 23; }
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011130-1.c b/gcc/testsuite/gcc.c-torture/compile/20011130-1.c
deleted file mode 100644
index 82ff042cee6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011130-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-extern struct S x[];
-struct S { int i; };
-char *bar (const struct S *);
-void foo (void)
-{
- bar (x);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011130-2.c b/gcc/testsuite/gcc.c-torture/compile/20011130-2.c
deleted file mode 100644
index 6439527e89c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011130-2.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* This testcase caused infinite loop in life info computation
- after if conversion on IA-64. Conditional register dead for
- pseudo holding sign-extended k was improperly computed,
- resulting in this pseudo beeing live at start of bb if it was
- dead at the end and vice versa; as it was a bb which had edge
- to itself, this resulted in alternative propagating this basic
- block forever. */
-
-typedef struct {
- unsigned char a;
- unsigned char b;
-} S0;
-
-typedef struct {
- S0 *c;
- int d;
- unsigned int e;
- unsigned char *f[3];
- void *g;
-} S1;
-
-int bar (int, void *);
-
-int foo (S1 *x, float y)
-{
- S0 *h;
- int i, j, k, l, m;
- float n, o, p;
- unsigned char *q, *r[3];
-
- h = x->c;
- m = h->a;
- l = h->b;
- n = y;
- o = 0.0;
- if (x->d == 8)
- for (j = 0; j < x->e; j++)
- for (k = 0; k < 3; k++)
- {
- n = y;
- o = 0.0;
- if (m)
- q = x->f[k] + x->e - 1 - j;
- else
- q = x->f[k] + j;
- p = (*q - o) * y / (n - o);
- p = 0.0 > p ? 0.0 : p;
- p = y < p ? y : p;
- if (l)
- p = r[k][(int) p];
- bar (p, x->g);
- }
- return 1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011205-1.c b/gcc/testsuite/gcc.c-torture/compile/20011205-1.c
deleted file mode 100644
index ffc5ac419ea..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011205-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Failure to mark_addressable all operands before evaluation means we
- don't set up the proper temporaries, which leaves us with an asm that
- doesn't match its contraints. */
-
-long foo()
-{
- long x;
- asm("" : "=r"(x) : "m"(x));
- return x;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011217-1.c b/gcc/testsuite/gcc.c-torture/compile/20011217-1.c
deleted file mode 100644
index 3e89ca04c19..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011217-1.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Test that the initializer of a compound literal is properly walked
- when tree inlining. */
-/* Origin: PR c/5105 from <aj@suse.de>. */
-
-typedef struct { long p; } pt;
-
-inline pt f (pt _p)
-{
- long p = _p.p;
-
- return (pt) { (p) };
-}
-
-static int mmap_mem (void)
-{
- pt p;
- p = f (p);
-
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011217-2.c b/gcc/testsuite/gcc.c-torture/compile/20011217-2.c
deleted file mode 100644
index 0d9935969c3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011217-2.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* Test that the initializer of a compound literal is properly walked
- when tree inlining. */
-/* Origin: glibc (as reported in PR c/5105) from <aj@suse.de>. */
-
-inline int
-finite (double __x)
-{
- return (__extension__
- (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
- | 0x800fffffu) + 1) >> 31));
-}
-
-int
-main (void)
-{
- double x = 1.0;
-
- return finite (x);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011218-1.c b/gcc/testsuite/gcc.c-torture/compile/20011218-1.c
deleted file mode 100644
index bf63489b855..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011218-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This testcase failed on Alpha at -O2 because $27 hard register
- for the indirect call was exposed too early and reload couldn't
- allocate it for multiplication and division. */
-
-struct S {
- int a, b;
- void (*f) (long, int);
-};
-
-void foo (struct S *x)
-{
- long c = x->a * 50;
- c /= (long) x->b;
- c *= (long) x->b;
- x->f (c, 0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011219-1.c b/gcc/testsuite/gcc.c-torture/compile/20011219-1.c
deleted file mode 100644
index 04923092dff..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011219-1.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This testcase failed on IA-64 at -O2 during scheduling. */
-
-void * baz (unsigned long);
-static inline double **
-bar (long w, long x, long y, long z)
-{
- long i, a = x - w + 1, b = z - y + 1;
- double **m = (double **) baz (sizeof (double *) * (a + 1));
-
- m += 1;
- m -= w;
- m[w] = (double *) baz (sizeof (double) * (a * b + 1));
- m[w] += 1;
- m[w] -= y;
- for (i = w + 1; i <= x; i++)
- m[i] = m[i - 1] + b;
- return m;
-}
-
-void
-foo (double w[], int x, double y[], double z[])
-{
- int i;
- double **a;
-
- a = bar (1, 50, 1, 50);
- for (i = 1; i <= x; i++)
- a[1][i] = - w[x - i] / w[x];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011219-2.c b/gcc/testsuite/gcc.c-torture/compile/20011219-2.c
deleted file mode 100644
index 2ad7eb1a372..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011219-2.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* This testcase failed on Alpha at -O2 when simplifying conditional
- expressions. */
-
-struct S {
- unsigned long a;
- double b, c;
-};
-
-extern double bar (double, double);
-
-int
-foo (unsigned long x, unsigned int y, struct S *z)
-{
- unsigned int a = z->a;
- int b = y / z->a > 1 ? y / z->a : 1;
-
- a = y / b < z->a ? y / b : z->a;
- z->c = z->b * bar ((double) a, (double) x);
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011229-1.c b/gcc/testsuite/gcc.c-torture/compile/20011229-1.c
deleted file mode 100644
index 97b2655434a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011229-1.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* ICE: call insn does not satisfy its constraints, MMIX port.
- Origin: ghostscript-6.52, reduction from hp@bitrange.com. */
-struct s0
-{
- void (*init_color)(void *, void *);
-};
-struct s1
-{
- void (*map_cmyk)(short, void *, void **, void *);
- void (*map_rgb_alpha)(short, void *, void **, void *);
-};
-struct s5
-{
- long fill1; int fill2;
- long fill3; unsigned int fill4, fill5;
-};
-struct s2
-{
- struct s5 x, y;
-};
-struct s3
-{
- long dev_color;
- unsigned int key;
-};
-struct s4
-{
- unsigned char spp;
- int alpha;
- struct mc_
- {
- unsigned int values[14];
- unsigned int mask, test;
- int exact;
- } mask_color;
- void **pis;
- struct s0 *pcs;
- struct dd_
- {
- struct s2 row[2];
- struct s2 pixel0;
- } dda;
- struct s3 clues[256];
-};
-extern struct s1 *get_cmap_procs (void **, void *);
-int image_render_color (struct s4 *, unsigned char *, int, void *);
-int
-image_render_color (struct s4 *penum, unsigned char *buffer,
- int data_x, void *dev)
-{
- struct s3 *clues = penum->clues;
- void **pis = penum->pis;
- struct s2 pnext;
- struct s0 *pcs = penum->pcs;
- struct s1 *cmap_procs = get_cmap_procs(pis, dev);
- void (*map_4)(short, void *, void **, void *) =
- (penum->alpha ? cmap_procs->map_rgb_alpha : cmap_procs->map_cmyk);
- unsigned int mask = penum->mask_color.mask;
- unsigned int test = penum->mask_color.test;
- struct s3 *pic_next = &clues[1];
- int spp = penum->spp;
- unsigned char *psrc = buffer + data_x * spp;
- unsigned char v[6];
-
- pnext = penum->dda.pixel0;
- __builtin_memset (&v, 0, sizeof(v));
- (*(pcs)->init_color) (0, 0);
-
- if (spp == 4)
- {
- v[0] = psrc[0];
- v[1] = psrc[1];
- if ((buffer[0] & mask) == test && penum->mask_color.exact)
- pic_next->dev_color = 0;
- (*map_4)(v[0], &pic_next->dev_color, pis, dev);
- }
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011229-2.c b/gcc/testsuite/gcc.c-torture/compile/20011229-2.c
deleted file mode 100644
index bb49bd18e34..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20011229-2.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Test whether jump threading doesn't ICE if redirecting the jump to exit
- block. */
-
-extern int bar ();
-extern void baz ();
-
-void foo ()
-{
- int x;
-
- do
- {
- if ((x = bar ()) == 1)
- baz ();
- }
- while (x == 1);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020103-1.c b/gcc/testsuite/gcc.c-torture/compile/20020103-1.c
deleted file mode 100644
index b9861688ddd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020103-1.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* This testcase failed on Alpha at -O2 when simplifying conditional
- expressions. */
-
-int foo (void);
-
-struct A
-{
- int a, b, c, d;
-};
-
-void bar (struct A *x)
-{
- int e, f;
-
- e = foo ();
- e = e / x->b;
- if (e < 1)
- e = 1;
- f = (x->a + x->c) / e;
- if (f < x->d)
- x->d -= (1 << 16) / 8;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020106-1.c b/gcc/testsuite/gcc.c-torture/compile/20020106-1.c
deleted file mode 100644
index c114af1aa8c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020106-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-/* Origin: PR c/5279 from <wilco@equator.com>. */
-
-int
-foo ()
-{
- extern long long Y;
- return (0 > Y++);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020109-1.c b/gcc/testsuite/gcc.c-torture/compile/20020109-1.c
deleted file mode 100644
index 532fe6de2d5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020109-1.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This testcase ICEd when 2 different successors of a basic block
- were successfully threaded and try_forward_edges was not expecting
- that. */
-
-typedef struct A
-{
- struct A *s, *t;
- unsigned int u;
-} A;
-
-void bar (A *);
-
-void
-foo (A *x, A *y, A *z)
-{
- while (y
- && (((y && y->t && y->t->u) ? y : z)->t
- == ((x && x->t && x->t->u) ? x : z)->t))
- y = y->s;
-
- if (y)
- bar (y);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020109-2.c b/gcc/testsuite/gcc.c-torture/compile/20020109-2.c
deleted file mode 100644
index 31673156569..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020109-2.c
+++ /dev/null
@@ -1,30 +0,0 @@
-typedef union
-{
- unsigned char member3;
- signed short member4;
- unsigned int member5;
-}
-UNI02;
-
-struct srt_dat_t
-{
- UNI02 un2;
- unsigned long member1;
- signed short member2;
-};
-
-struct srt_dat_t exsrt1;
-void
-extern_test (struct srt_dat_t arg1)
-{
- arg1.un2.member3++;
- arg1.member1++;
- arg1.member2++;
-}
-
-int
-main (void)
-{
- extern_test (exsrt1);
- return (0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020110.c b/gcc/testsuite/gcc.c-torture/compile/20020110.c
deleted file mode 100644
index 90e0ce95d29..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020110.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* Copyright 2002 Free Software Foundation */
-
-/* Make sure the nested extern declaration doesn't conflict with the
- non-extern one in the enclosing scope. */
-
-void foo() {
- static long bar;
-
- {
- extern int bar;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020116-1.c b/gcc/testsuite/gcc.c-torture/compile/20020116-1.c
deleted file mode 100644
index 6c023edcabe..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020116-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-void noret (void) __attribute__ ((noreturn));
-int foo (int, char **);
-char *a, *b;
-int d;
-
-int
-main (int argc, char **argv)
-{
- register int c;
-
- d = 1;
- while ((c = foo (argc, argv)) != -1)
- switch (c) {
- case 's':
- case 'c':
- case 'f':
- a = b;
- break;
- case 'v':
- d = 1;
- break;
- case 'V':
- d = 0;
- break;
- }
- noret ();
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020120-1.c b/gcc/testsuite/gcc.c-torture/compile/20020120-1.c
deleted file mode 100644
index e049a9720ee..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020120-1.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* This ICEed on IA-32 with -O2 -mcpu=i386, because reload was trying
- to reload into %sil register. */
-
-struct A
-{
- void *a;
- unsigned int b, c, d;
-};
-
-struct B
-{
- struct A *e;
-};
-
-void bar (struct A *);
-void baz (struct A *);
-
-static inline unsigned int
-inl (unsigned int v, unsigned char w, unsigned char x, unsigned char y,
- unsigned char z)
-{
- switch (v)
- {
- case 2:
- return ((w & 0xf8) << 8) | ((x & 0xfc) << 3) | ((y & 0xf8) >> 3);
- case 4:
- return (z << 24) | (w << 16) | (x << 8) | y;
- default:
- return 0;
- }
-}
-
-void foo (struct B *x, int y, const float *z)
-{
- struct A *a = x->e;
-
- if (y)
- {
- if (x->e->a)
- bar (x->e);
- }
- else
- {
- unsigned char c[4];
- unsigned int b;
-
- c[0] = z[0]; c[1] = z[1]; c[2] = z[2]; c[3] = z[3];
- b = inl (a->b, c[0], c[1], c[2], c[3] );
- if (a->a)
- bar (a);
- else
- baz (a);
- a->c = b;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020121-1.c b/gcc/testsuite/gcc.c-torture/compile/20020121-1.c
deleted file mode 100644
index f8950f4ce8b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020121-1.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This testcase resulted in a 'unrecognizeable insn' on powerpc-linux-gnu
- because of a missing trunc_int_for_mode in simplify_and_const_int. */
-
-struct display {
- struct disphist *hstent;
- int pid;
- int status;
-};
-
-struct disphist {
- struct disphist *next;
- char *name;
- int startTries;
- unsigned rLogin:2,
- sd_how:2,
- sd_when:2,
- lock:1,
- goodExit:1;
- char *nuser, *npass, **nargs;
-};
-
-void
-StartDisplay (struct display *d)
-{
- d->pid = 0;
- d->status = 0;
- d->hstent->lock = d->hstent->rLogin = d->hstent->goodExit =
- d->hstent->sd_how = d->hstent->sd_when = 0;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020206-1.c b/gcc/testsuite/gcc.c-torture/compile/20020206-1.c
deleted file mode 100644
index c21c5645409..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020206-1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* Origin: PR optimization/5429 from Philipp Thomas <pthomas@suse.de>. */
-/* This testcase caused ICE on IA-32 -O2 -march=i686 due to rtl sharing
- problem in noce_process_if_block. Fixed by
- http://gcc.gnu.org/ml/gcc-patches/2002-01/msg02146.html. */
-
-typedef struct {
- unsigned char a;
-} A;
-
-unsigned int foo (A *x)
-{
- unsigned char b[2] = { 0, 0 };
- unsigned char c = 0;
-
- c = (x->a) ? b[1] : b[0];
-
- return (unsigned int) c;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020210-1.c b/gcc/testsuite/gcc.c-torture/compile/20020210-1.c
deleted file mode 100644
index 5ca27f4f6ca..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020210-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-/* PR c/5615 */
-void f(int a, struct {int b[a];} c) {}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020303-1.c b/gcc/testsuite/gcc.c-torture/compile/20020303-1.c
deleted file mode 100644
index a120adf7148..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020303-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* With -fzero-initialized-in-bss, we made I a common symbol instead
- of a symbol in the .bss section. Not only does that break semantics,
- but a common symbol can't be weak. */
-
-int i __attribute__((weak)) = 0;
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020304-1.c b/gcc/testsuite/gcc.c-torture/compile/20020304-1.c
deleted file mode 100644
index 3940d5ffd2e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020304-1.c
+++ /dev/null
@@ -1,777 +0,0 @@
-/* In 3.0, this test case (extracted from Bigloo) crashes the compiler in
- bb-reorder.c. This is a regression from 2.95, already fixed in 3.1.
-
- Original bug report is c/5830 by Manuel Serrano <Manuel.Serrano@inria.fr>.
- */
-
-typedef union scmobj {
- struct pair {
- union scmobj *car;
- union scmobj *cdr;
- } pair_t;
- struct vector {
- long header;
- int length;
- union scmobj *obj0;
- } vector_t;
-} *obj_t;
-
-extern obj_t create_vector (int);
-extern obj_t make_pair (obj_t, obj_t);
-extern long bgl_list_length (obj_t);
-extern int BGl_equalzf3zf3zz__r4_equivalence_6_2z00 (obj_t, obj_t);
-extern obj_t BGl_evcompilezd2lambdazd2zz__evcompilez00 (obj_t
- BgL_formalsz00_39,
- obj_t BgL_bodyz00_40,
- obj_t BgL_wherez00_41,
- obj_t
- BgL_namedzf3zf3_42,
- obj_t BgL_locz00_43);
-
-obj_t
-BGl_evcompilezd2lambdazd2zz__evcompilez00 (obj_t BgL_formalsz00_39,
- obj_t BgL_bodyz00_40,
- obj_t BgL_wherez00_41,
- obj_t BgL_namedzf3zf3_42,
- obj_t BgL_locz00_43)
-{
- if (BGl_equalzf3zf3zz__r4_equivalence_6_2z00
- (BgL_formalsz00_39,
- ((obj_t) (obj_t) ((long) (((long) (0) << 2) | 2))))) {
- BgL_tagzd21966zd2_943:
- if ((BgL_namedzf3zf3_42 !=
- ((obj_t) (obj_t) ((long) (((long) (1) << 2) | 2))))) {
- obj_t BgL_v1042z00_998;
- {
- int BgL_auxz00_4066;
- BgL_auxz00_4066 = (int) (((long) 3));
- BgL_v1042z00_998 = create_vector (BgL_auxz00_4066);
- }
- {
- obj_t BgL_arg1586z00_1000;
- BgL_arg1586z00_1000 = make_pair (BgL_wherez00_41, BgL_bodyz00_40);
- {
- int BgL_auxz00_4070;
- BgL_auxz00_4070 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1042z00_998))->vector_t.obj0))[BgL_auxz00_4070] =
- BgL_arg1586z00_1000,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- }
- {
- int BgL_auxz00_4073;
- BgL_auxz00_4073 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1042z00_998))->vector_t.obj0))[BgL_auxz00_4073] =
- BgL_locz00_43, ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4078;
- int BgL_auxz00_4076;
- {
- long BgL_auxz00_4079;
- {
- long BgL_auxz00_4080;
- BgL_auxz00_4080 = bgl_list_length (BgL_formalsz00_39);
- BgL_auxz00_4079 = (BgL_auxz00_4080 + ((long) 37));
- }
- BgL_auxz00_4078 =
- (obj_t) ((long) (((long) (BgL_auxz00_4079) << 2) | 1));
- }
- BgL_auxz00_4076 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1042z00_998))->vector_t.obj0))[BgL_auxz00_4076] =
- BgL_auxz00_4078, ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1042z00_998;
- } else {
- obj_t BgL_v1043z00_1005;
- {
- int BgL_auxz00_4085;
- BgL_auxz00_4085 = (int) (((long) 3));
- BgL_v1043z00_1005 = create_vector (BgL_auxz00_4085);
- }
- {
- int BgL_auxz00_4088;
- BgL_auxz00_4088 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1043z00_1005))->vector_t.obj0))[BgL_auxz00_4088] =
- BgL_bodyz00_40, ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- int BgL_auxz00_4091;
- BgL_auxz00_4091 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1043z00_1005))->vector_t.obj0))[BgL_auxz00_4091] =
- BgL_locz00_43, ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4096;
- int BgL_auxz00_4094;
- {
- long BgL_auxz00_4097;
- {
- long BgL_auxz00_4098;
- BgL_auxz00_4098 = bgl_list_length (BgL_formalsz00_39);
- BgL_auxz00_4097 = (BgL_auxz00_4098 + ((long) 42));
- }
- BgL_auxz00_4096 =
- (obj_t) ((long) (((long) (BgL_auxz00_4097) << 2) | 1));
- }
- BgL_auxz00_4094 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1043z00_1005))->vector_t.obj0))[BgL_auxz00_4094] =
- BgL_auxz00_4096, ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1043z00_1005;
- }
- } else {
- if (((((long) BgL_formalsz00_39) & ((1 << 2) - 1)) == 3)) {
- if (BGl_equalzf3zf3zz__r4_equivalence_6_2z00
- (((((obj_t) ((long) BgL_formalsz00_39 - 3))->pair_t).cdr),
- ((obj_t) (obj_t) ((long) (((long) (0) << 2) | 2))))) {
- goto BgL_tagzd21966zd2_943;
- } else {
- obj_t BgL_cdrzd21979zd2_953;
- BgL_cdrzd21979zd2_953 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->pair_t).cdr);
- if (((((long) BgL_cdrzd21979zd2_953) & ((1 << 2) - 1)) == 3)) {
- if (BGl_equalzf3zf3zz__r4_equivalence_6_2z00
- (((((obj_t) ((long) BgL_cdrzd21979zd2_953 - 3))->pair_t).cdr),
- ((obj_t) (obj_t) ((long) (((long) (0) << 2) | 2))))) {
- goto BgL_tagzd21966zd2_943;
- } else {
- obj_t BgL_cdrzd21986zd2_956;
- BgL_cdrzd21986zd2_956 =
- ((((obj_t) ((long) BgL_cdrzd21979zd2_953 - 3))->pair_t).cdr);
- if (((((long) BgL_cdrzd21986zd2_956) & ((1 << 2) - 1)) == 3)) {
- if (BGl_equalzf3zf3zz__r4_equivalence_6_2z00
- (((((obj_t) ((long) BgL_cdrzd21986zd2_956 - 3))->pair_t).
- cdr),
- ((obj_t) (obj_t) ((long) (((long) (0) << 2) | 2))))) {
- goto BgL_tagzd21966zd2_943;
- } else {
- obj_t BgL_cdrzd21994zd2_959;
- {
- obj_t BgL_auxz00_4120;
- BgL_auxz00_4120 =
- ((((obj_t) ((long) BgL_cdrzd21979zd2_953 - 3))->pair_t).
- cdr);
- BgL_cdrzd21994zd2_959 =
- ((((obj_t) ((long) BgL_auxz00_4120 - 3))->pair_t).cdr);
- }
- if (((((long) BgL_cdrzd21994zd2_959) & ((1 << 2) - 1)) == 3)) {
- if (BGl_equalzf3zf3zz__r4_equivalence_6_2z00
- (((((obj_t) ((long) BgL_cdrzd21994zd2_959 - 3))->
- pair_t).cdr),
- ((obj_t) (obj_t) ((long) (((long) (0) << 2) | 2))))) {
- goto BgL_tagzd21966zd2_943;
- } else {
- int BgL_testz00_4128;
- {
- obj_t BgL_auxz00_4129;
- BgL_auxz00_4129 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->pair_t).
- car);
- BgL_testz00_4128 =
- ((((long) BgL_auxz00_4129) & ((1 << 2) - 1)) == 3);
- }
- if (BgL_testz00_4128) {
- BgL_tagzd21971zd2_948:
- if ((BgL_namedzf3zf3_42 !=
- ((obj_t) (obj_t)
- ((long) (((long) (1) << 2) | 2))))) {
- obj_t BgL_v1052z00_1026;
- {
- int BgL_auxz00_4134;
- BgL_auxz00_4134 = (int) (((long) 3));
- BgL_v1052z00_1026 = create_vector (BgL_auxz00_4134);
- }
- {
- obj_t BgL_arg1606z00_1028;
- {
- obj_t BgL_v1053z00_1029;
- {
- int BgL_auxz00_4137;
- BgL_auxz00_4137 = (int) (((long) 3));
- BgL_v1053z00_1029 =
- create_vector (BgL_auxz00_4137);
- }
- {
- int BgL_auxz00_4140;
- BgL_auxz00_4140 = (int) (((long) 2));
- ((&
- (((obj_t) (BgL_v1053z00_1029))->vector_t.
- obj0))[BgL_auxz00_4140] =
- BgL_formalsz00_39,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- {
- int BgL_auxz00_4143;
- BgL_auxz00_4143 = (int) (((long) 1));
- ((&
- (((obj_t) (BgL_v1053z00_1029))->vector_t.
- obj0))[BgL_auxz00_4143] =
- BgL_bodyz00_40,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- {
- int BgL_auxz00_4146;
- BgL_auxz00_4146 = (int) (((long) 0));
- ((&
- (((obj_t) (BgL_v1053z00_1029))->vector_t.
- obj0))[BgL_auxz00_4146] =
- BgL_wherez00_41,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- BgL_arg1606z00_1028 = BgL_v1053z00_1029;
- }
- {
- int BgL_auxz00_4149;
- BgL_auxz00_4149 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1052z00_1026))->vector_t.obj0))
- [BgL_auxz00_4149] =
- BgL_arg1606z00_1028,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- }
- {
- int BgL_auxz00_4152;
- BgL_auxz00_4152 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1052z00_1026))->vector_t.obj0))
- [BgL_auxz00_4152] =
- BgL_locz00_43,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4157;
- int BgL_auxz00_4155;
- BgL_auxz00_4157 =
- (obj_t) ((long)
- (((long) (((long) 55)) << 2) | 1));
- BgL_auxz00_4155 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1052z00_1026))->vector_t.obj0))
- [BgL_auxz00_4155] =
- BgL_auxz00_4157,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1052z00_1026;
- } else {
- obj_t BgL_v1054z00_1030;
- {
- int BgL_auxz00_4160;
- BgL_auxz00_4160 = (int) (((long) 3));
- BgL_v1054z00_1030 = create_vector (BgL_auxz00_4160);
- }
- {
- obj_t BgL_arg1608z00_1032;
- BgL_arg1608z00_1032 =
- make_pair (BgL_bodyz00_40, BgL_formalsz00_39);
- {
- int BgL_auxz00_4164;
- BgL_auxz00_4164 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1054z00_1030))->vector_t.obj0))
- [BgL_auxz00_4164] =
- BgL_arg1608z00_1032,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- }
- {
- int BgL_auxz00_4167;
- BgL_auxz00_4167 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1054z00_1030))->vector_t.obj0))
- [BgL_auxz00_4167] =
- BgL_locz00_43,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4172;
- int BgL_auxz00_4170;
- BgL_auxz00_4172 =
- (obj_t) ((long)
- (((long) (((long) 56)) << 2) | 1));
- BgL_auxz00_4170 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1054z00_1030))->vector_t.obj0))
- [BgL_auxz00_4170] =
- BgL_auxz00_4172,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1054z00_1030;
- }
- } else {
- int BgL_testz00_4175;
- {
- obj_t BgL_auxz00_4176;
- {
- obj_t BgL_auxz00_4177;
- BgL_auxz00_4177 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->
- pair_t).cdr);
- BgL_auxz00_4176 =
- ((((obj_t) ((long) BgL_auxz00_4177 - 3))->pair_t).
- car);
- }
- BgL_testz00_4175 =
- ((((long) BgL_auxz00_4176) & ((1 << 2) - 1)) == 3);
- }
- if (BgL_testz00_4175) {
- goto BgL_tagzd21971zd2_948;
- } else {
- int BgL_testz00_4181;
- {
- obj_t BgL_auxz00_4182;
- {
- obj_t BgL_auxz00_4183;
- {
- obj_t BgL_auxz00_4184;
- BgL_auxz00_4184 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->
- pair_t).cdr);
- BgL_auxz00_4183 =
- ((((obj_t) ((long) BgL_auxz00_4184 - 3))->
- pair_t).cdr);
- }
- BgL_auxz00_4182 =
- ((((obj_t) ((long) BgL_auxz00_4183 - 3))->
- pair_t).car);
- }
- BgL_testz00_4181 =
- ((((long) BgL_auxz00_4182) & ((1 << 2) - 1)) ==
- 3);
- }
- if (BgL_testz00_4181) {
- goto BgL_tagzd21971zd2_948;
- } else {
- goto BgL_tagzd21971zd2_948;
- }
- }
- }
- }
- } else {
- int BgL_testz00_4189;
- {
- obj_t BgL_auxz00_4190;
- BgL_auxz00_4190 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->pair_t).
- car);
- BgL_testz00_4189 =
- ((((long) BgL_auxz00_4190) & ((1 << 2) - 1)) == 3);
- }
- if (BgL_testz00_4189) {
- goto BgL_tagzd21971zd2_948;
- } else {
- int BgL_testz00_4193;
- {
- obj_t BgL_auxz00_4194;
- {
- obj_t BgL_auxz00_4195;
- BgL_auxz00_4195 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->pair_t).
- cdr);
- BgL_auxz00_4194 =
- ((((obj_t) ((long) BgL_auxz00_4195 - 3))->pair_t).
- car);
- }
- BgL_testz00_4193 =
- ((((long) BgL_auxz00_4194) & ((1 << 2) - 1)) == 3);
- }
- if (BgL_testz00_4193) {
- goto BgL_tagzd21971zd2_948;
- } else {
- int BgL_testz00_4199;
- {
- obj_t BgL_auxz00_4200;
- {
- obj_t BgL_auxz00_4201;
- {
- obj_t BgL_auxz00_4202;
- BgL_auxz00_4202 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->
- pair_t).cdr);
- BgL_auxz00_4201 =
- ((((obj_t) ((long) BgL_auxz00_4202 - 3))->
- pair_t).cdr);
- }
- BgL_auxz00_4200 =
- ((((obj_t) ((long) BgL_auxz00_4201 - 3))->pair_t).
- car);
- }
- BgL_testz00_4199 =
- ((((long) BgL_auxz00_4200) & ((1 << 2) - 1)) == 3);
- }
- if (BgL_testz00_4199) {
- goto BgL_tagzd21971zd2_948;
- } else {
- if ((BgL_namedzf3zf3_42 !=
- ((obj_t) (obj_t)
- ((long) (((long) (1) << 2) | 2))))) {
- obj_t BgL_v1050z00_1022;
- {
- int BgL_auxz00_4209;
- BgL_auxz00_4209 = (int) (((long) 3));
- BgL_v1050z00_1022 =
- create_vector (BgL_auxz00_4209);
- }
- {
- obj_t BgL_arg1604z00_1024;
- BgL_arg1604z00_1024 =
- make_pair (BgL_wherez00_41, BgL_bodyz00_40);
- {
- int BgL_auxz00_4213;
- BgL_auxz00_4213 = (int) (((long) 2));
- ((&
- (((obj_t) (BgL_v1050z00_1022))->vector_t.
- obj0))[BgL_auxz00_4213] =
- BgL_arg1604z00_1024,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- }
- {
- int BgL_auxz00_4216;
- BgL_auxz00_4216 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1050z00_1022))->vector_t.obj0))
- [BgL_auxz00_4216] =
- BgL_locz00_43,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4221;
- int BgL_auxz00_4219;
- BgL_auxz00_4221 =
- (obj_t) ((long)
- (((long) (((long) 50)) << 2) | 1));
- BgL_auxz00_4219 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1050z00_1022))->vector_t.obj0))
- [BgL_auxz00_4219] =
- BgL_auxz00_4221,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1050z00_1022;
- } else {
- obj_t BgL_v1051z00_1025;
- {
- int BgL_auxz00_4224;
- BgL_auxz00_4224 = (int) (((long) 3));
- BgL_v1051z00_1025 =
- create_vector (BgL_auxz00_4224);
- }
- {
- int BgL_auxz00_4227;
- BgL_auxz00_4227 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1051z00_1025))->vector_t.obj0))
- [BgL_auxz00_4227] =
- BgL_bodyz00_40,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- {
- int BgL_auxz00_4230;
- BgL_auxz00_4230 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1051z00_1025))->vector_t.obj0))
- [BgL_auxz00_4230] =
- BgL_locz00_43,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4235;
- int BgL_auxz00_4233;
- BgL_auxz00_4235 =
- (obj_t) ((long)
- (((long) (((long) 54)) << 2) | 1));
- BgL_auxz00_4233 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1051z00_1025))->vector_t.obj0))
- [BgL_auxz00_4233] =
- BgL_auxz00_4235,
- ((obj_t) (obj_t)
- ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1051z00_1025;
- }
- }
- }
- }
- }
- }
- } else {
- int BgL_testz00_4238;
- {
- obj_t BgL_auxz00_4239;
- BgL_auxz00_4239 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->pair_t).car);
- BgL_testz00_4238 =
- ((((long) BgL_auxz00_4239) & ((1 << 2) - 1)) == 3);
- }
- if (BgL_testz00_4238) {
- goto BgL_tagzd21971zd2_948;
- } else {
- int BgL_testz00_4242;
- {
- obj_t BgL_auxz00_4243;
- BgL_auxz00_4243 =
- ((((obj_t) ((long) BgL_cdrzd21979zd2_953 - 3))->pair_t).
- car);
- BgL_testz00_4242 =
- ((((long) BgL_auxz00_4243) & ((1 << 2) - 1)) == 3);
- }
- if (BgL_testz00_4242) {
- goto BgL_tagzd21971zd2_948;
- } else {
- if ((BgL_namedzf3zf3_42 !=
- ((obj_t) (obj_t) ((long) (((long) (1) << 2) | 2))))) {
- obj_t BgL_v1048z00_1018;
- {
- int BgL_auxz00_4248;
- BgL_auxz00_4248 = (int) (((long) 3));
- BgL_v1048z00_1018 = create_vector (BgL_auxz00_4248);
- }
- {
- obj_t BgL_arg1602z00_1020;
- BgL_arg1602z00_1020 =
- make_pair (BgL_wherez00_41, BgL_bodyz00_40);
- {
- int BgL_auxz00_4252;
- BgL_auxz00_4252 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1048z00_1018))->vector_t.obj0))
- [BgL_auxz00_4252] =
- BgL_arg1602z00_1020,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- }
- {
- int BgL_auxz00_4255;
- BgL_auxz00_4255 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1048z00_1018))->vector_t.obj0))
- [BgL_auxz00_4255] =
- BgL_locz00_43,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4260;
- int BgL_auxz00_4258;
- BgL_auxz00_4260 =
- (obj_t) ((long) (((long) (((long) 49)) << 2) | 1));
- BgL_auxz00_4258 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1048z00_1018))->vector_t.obj0))
- [BgL_auxz00_4258] =
- BgL_auxz00_4260,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1048z00_1018;
- } else {
- obj_t BgL_v1049z00_1021;
- {
- int BgL_auxz00_4263;
- BgL_auxz00_4263 = (int) (((long) 3));
- BgL_v1049z00_1021 = create_vector (BgL_auxz00_4263);
- }
- {
- int BgL_auxz00_4266;
- BgL_auxz00_4266 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1049z00_1021))->vector_t.obj0))
- [BgL_auxz00_4266] =
- BgL_bodyz00_40,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- int BgL_auxz00_4269;
- BgL_auxz00_4269 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1049z00_1021))->vector_t.obj0))
- [BgL_auxz00_4269] =
- BgL_locz00_43,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4274;
- int BgL_auxz00_4272;
- BgL_auxz00_4274 =
- (obj_t) ((long) (((long) (((long) 53)) << 2) | 1));
- BgL_auxz00_4272 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1049z00_1021))->vector_t.obj0))
- [BgL_auxz00_4272] =
- BgL_auxz00_4274,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1049z00_1021;
- }
- }
- }
- }
- }
- } else {
- int BgL_testz00_4277;
- {
- obj_t BgL_auxz00_4278;
- BgL_auxz00_4278 =
- ((((obj_t) ((long) BgL_formalsz00_39 - 3))->pair_t).car);
- BgL_testz00_4277 =
- ((((long) BgL_auxz00_4278) & ((1 << 2) - 1)) == 3);
- }
- if (BgL_testz00_4277) {
- goto BgL_tagzd21971zd2_948;
- } else {
- if ((BgL_namedzf3zf3_42 !=
- ((obj_t) (obj_t) ((long) (((long) (1) << 2) | 2))))) {
- obj_t BgL_v1046z00_1014;
- {
- int BgL_auxz00_4283;
- BgL_auxz00_4283 = (int) (((long) 3));
- BgL_v1046z00_1014 = create_vector (BgL_auxz00_4283);
- }
- {
- obj_t BgL_arg1600z00_1016;
- BgL_arg1600z00_1016 =
- make_pair (BgL_wherez00_41, BgL_bodyz00_40);
- {
- int BgL_auxz00_4287;
- BgL_auxz00_4287 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1046z00_1014))->vector_t.obj0))
- [BgL_auxz00_4287] =
- BgL_arg1600z00_1016,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- }
- {
- int BgL_auxz00_4290;
- BgL_auxz00_4290 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1046z00_1014))->vector_t.obj0))
- [BgL_auxz00_4290] =
- BgL_locz00_43,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4295;
- int BgL_auxz00_4293;
- BgL_auxz00_4295 =
- (obj_t) ((long) (((long) (((long) 48)) << 2) | 1));
- BgL_auxz00_4293 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1046z00_1014))->vector_t.obj0))
- [BgL_auxz00_4293] =
- BgL_auxz00_4295,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1046z00_1014;
- } else {
- obj_t BgL_v1047z00_1017;
- {
- int BgL_auxz00_4298;
- BgL_auxz00_4298 = (int) (((long) 3));
- BgL_v1047z00_1017 = create_vector (BgL_auxz00_4298);
- }
- {
- int BgL_auxz00_4301;
- BgL_auxz00_4301 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1047z00_1017))->vector_t.obj0))
- [BgL_auxz00_4301] =
- BgL_bodyz00_40,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- int BgL_auxz00_4304;
- BgL_auxz00_4304 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1047z00_1017))->vector_t.obj0))
- [BgL_auxz00_4304] =
- BgL_locz00_43,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4309;
- int BgL_auxz00_4307;
- BgL_auxz00_4309 =
- (obj_t) ((long) (((long) (((long) 52)) << 2) | 1));
- BgL_auxz00_4307 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1047z00_1017))->vector_t.obj0))
- [BgL_auxz00_4307] =
- BgL_auxz00_4309,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1047z00_1017;
- }
- }
- }
- }
- } else {
- if ((BgL_namedzf3zf3_42 !=
- ((obj_t) (obj_t) ((long) (((long) (1) << 2) | 2))))) {
- obj_t BgL_v1044z00_1010;
- {
- int BgL_auxz00_4314;
- BgL_auxz00_4314 = (int) (((long) 3));
- BgL_v1044z00_1010 = create_vector (BgL_auxz00_4314);
- }
- {
- obj_t BgL_arg1598z00_1012;
- BgL_arg1598z00_1012 = make_pair (BgL_wherez00_41, BgL_bodyz00_40);
- {
- int BgL_auxz00_4318;
- BgL_auxz00_4318 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1044z00_1010))->vector_t.obj0))
- [BgL_auxz00_4318] =
- BgL_arg1598z00_1012,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- }
- {
- int BgL_auxz00_4321;
- BgL_auxz00_4321 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1044z00_1010))->vector_t.obj0))[BgL_auxz00_4321]
- =
- BgL_locz00_43, ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4326;
- int BgL_auxz00_4324;
- BgL_auxz00_4326 =
- (obj_t) ((long) (((long) (((long) 47)) << 2) | 1));
- BgL_auxz00_4324 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1044z00_1010))->vector_t.obj0))[BgL_auxz00_4324]
- =
- BgL_auxz00_4326,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1044z00_1010;
- } else {
- obj_t BgL_v1045z00_1013;
- {
- int BgL_auxz00_4329;
- BgL_auxz00_4329 = (int) (((long) 3));
- BgL_v1045z00_1013 = create_vector (BgL_auxz00_4329);
- }
- {
- int BgL_auxz00_4332;
- BgL_auxz00_4332 = (int) (((long) 2));
- ((&(((obj_t) (BgL_v1045z00_1013))->vector_t.obj0))[BgL_auxz00_4332]
- =
- BgL_bodyz00_40,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- int BgL_auxz00_4335;
- BgL_auxz00_4335 = (int) (((long) 1));
- ((&(((obj_t) (BgL_v1045z00_1013))->vector_t.obj0))[BgL_auxz00_4335]
- =
- BgL_locz00_43, ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- {
- obj_t BgL_auxz00_4340;
- int BgL_auxz00_4338;
- BgL_auxz00_4340 =
- (obj_t) ((long) (((long) (((long) 51)) << 2) | 1));
- BgL_auxz00_4338 = (int) (((long) 0));
- ((&(((obj_t) (BgL_v1045z00_1013))->vector_t.obj0))[BgL_auxz00_4338]
- =
- BgL_auxz00_4340,
- ((obj_t) (obj_t) ((long) (((long) (3) << 2) | 2))));
- }
- return BgL_v1045z00_1013;
- }
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020304-2.c b/gcc/testsuite/gcc.c-torture/compile/20020304-2.c
deleted file mode 100644
index 9a162d4935d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020304-2.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* This testcase ICEd because a SUBREG of MEM/v was never
- simplified. */
-volatile unsigned long long *a;
-
-unsigned char
-foo (void)
-{
- unsigned char b = (*a != 0);
- return b;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020309-1.c b/gcc/testsuite/gcc.c-torture/compile/20020309-1.c
deleted file mode 100644
index b74061764de..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020309-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-int
-sub1 (char *p, int i)
-{
- char j = p[i];
-
- {
- void
- sub2 ()
- {
- i = 2;
- p = p + 2;
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020309-2.c b/gcc/testsuite/gcc.c-torture/compile/20020309-2.c
deleted file mode 100644
index 77699e43d3d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020309-2.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This testcase ICEd on IA-32 at -O2, because loop was calling convert_modes
- between a MODE_FLOAT and MODE_INT class modes. */
-
-typedef union
-{
- double d;
- long long ll;
-} A;
-
-void
-foo (A x, A **y, A z)
-{
- for (; *y; y++)
- if (x.ll == 262 && (*y)->d == z.d)
- break;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020312-1.c b/gcc/testsuite/gcc.c-torture/compile/20020312-1.c
deleted file mode 100644
index 9f61dae64a5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020312-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* PR optimization/5892 */
-typedef struct { unsigned long a; unsigned int b, c; } A;
-typedef struct { unsigned long a; A *b; int c; } B;
-
-static inline unsigned int
-bar (unsigned int x)
-{
- unsigned long r;
- asm ("" : "=r" (r) : "0" (x));
- return r >> 31;
-}
-
-int foo (B *x)
-{
- A *y;
- y = x->b;
- y->b = bar (x->c);
- y->c = ({ unsigned int z = 1; (z << 24) | (z >> 24); });
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020312-1.x b/gcc/testsuite/gcc.c-torture/compile/20020312-1.x
deleted file mode 100644
index 105f2516474..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020312-1.x
+++ /dev/null
@@ -1,6 +0,0 @@
-# This does not compile on HC11/HC12 due to the asm which requires
-# two 32-bit registers.
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- return 1
-}
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020314-1.c b/gcc/testsuite/gcc.c-torture/compile/20020314-1.c
deleted file mode 100644
index b21eb14f8d9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020314-1.c
+++ /dev/null
@@ -1,26 +0,0 @@
-typedef struct tux_req_struct tux_req_t;
-struct tux_req_struct
-{
- struct socket *sock;
- char usermode;
- char *userbuf;
- unsigned int userlen;
- char error;
- void *private;
-};
-void user_send_buffer (tux_req_t *req, int cachemiss)
-{
- int ret;
-repeat:
- switch (ret) {
- case -11:
- if (add_output_space_event(req, req->sock)) {
- del_tux_atom(req);
- goto repeat;
- }
- do { } while (0);
- break;
- default:
- add_req_to_workqueue(req);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020315-1.c b/gcc/testsuite/gcc.c-torture/compile/20020315-1.c
deleted file mode 100644
index c6c9daa2f72..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020315-1.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* PR bootstrap/4128 */
-
-extern int bar (char *, char *, int, int);
-extern long baz (char *, char *, int, int);
-
-int sgt (char *a, char *b, int c, int d)
-{
- return bar (a, b, c, d) > 0;
-}
-
-long dgt (char *a, char *b, int c, int d)
-{
- return baz (a, b, c, d) > 0;
-}
-
-int sne (char *a, char *b, int c, int d)
-{
- return bar (a, b, c, d) != 0;
-}
-
-long dne (char *a, char *b, int c, int d)
-{
- return baz (a, b, c, d) != 0;
-}
-
-int seq (char *a, char *b, int c, int d)
-{
- return bar (a, b, c, d) == 0;
-}
-
-long deq (char *a, char *b, int c, int d)
-{
- return baz (a, b, c, d) == 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020318-1.c b/gcc/testsuite/gcc.c-torture/compile/20020318-1.c
deleted file mode 100644
index 097a35d7956..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020318-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* PR c/5656
- This testcase ICEd on IA-32 at -O3, due to tree inliner not converting
- parameter assignment when using K&R syntax. */
-
-void foo (c)
- char c;
-{
- (void) &c;
-}
-
-int bar (void);
-
-void baz (void)
-{
- foo (bar ());
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020319-1.c b/gcc/testsuite/gcc.c-torture/compile/20020319-1.c
deleted file mode 100644
index be5b9c2fece..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020319-1.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* This testcase ICEd in combine.c:do_SUBST() self-test for sign-extended
-CONST_INT because expr.c:expand_expr() was not sign-extending array index
-into constant strings. */
-
-typedef unsigned char uch;
-extern uch outbuf[];
-extern unsigned outcnt;
-
-extern void flush_outbuf (void);
-
-int zip(void)
-{
- outcnt = 0;
-
- {outbuf[outcnt++]=(uch)("\037\213"[0]); if (outcnt==16384) flush_outbuf();};
- {outbuf[outcnt++]=(uch)("\037\213"[1]); if (outcnt==16384) flush_outbuf();};
-
- return 0;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020320-1.c b/gcc/testsuite/gcc.c-torture/compile/20020320-1.c
deleted file mode 100644
index 385c061e193..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020320-1.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* PR bootstrap/4192
- This testcase caused infinite loop in flow (several places),
- because flow assumes gen_jump generates simple_jump_p. */
-
-typedef void (*T) (void);
-extern T x[];
-
-void
-foo (void)
-{
- static T *p = x;
- static _Bool a;
- T f;
-
- if (__builtin_expect (a, 0))
- return;
-
- while ((f = *p))
- {
- p++;
- f ();
- }
- a = 1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020323-1.c b/gcc/testsuite/gcc.c-torture/compile/20020323-1.c
deleted file mode 100644
index ed3c66651d9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020323-1.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* This testcase caused ICE on powerpc at -O3, because regrename did
- not handle match_dup of match_operator if the RTLs were not shared. */
-
-struct A
-{
- unsigned char *a0, *a1;
- int a2;
-};
-
-void bar (struct A *);
-
-unsigned int
-foo (int x)
-{
- struct A a;
- unsigned int b;
-
- if (x < -128 || x > 255 || x == -1)
- return 26;
-
- a.a0 = (unsigned char *) &b;
- a.a1 = a.a0 + sizeof (unsigned int);
- a.a2 = 0;
- bar (&a);
- return b;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020330-1.c b/gcc/testsuite/gcc.c-torture/compile/20020330-1.c
deleted file mode 100644
index cac7099127f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020330-1.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* PR 5446 */
-/* This testcase is similar to gcc.c-torture/compile/20011219-1.c except
- with parts of it omitted, causing an ICE with -O3 on IA-64. */
-
-void * baz (unsigned long);
-static inline double **
-bar (long w, long x, long y, long z)
-{
- long i, a = x - w + 1, b = z - y + 1;
- double **m = (double **) baz (sizeof (double *) * (a + 1));
-
- m += 1;
- m -= w;
- m[w] = (double *) baz (sizeof (double) * (a * b + 1));
- for (i = w + 1; i <= x; i++)
- m[i] = m[i - 1] + b;
- return m;
-}
-
-void
-foo (double w[], int x, double y[], double z[])
-{
- int i;
- double **a;
-
- a = bar (1, 50, 1, 50);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020409-1.c b/gcc/testsuite/gcc.c-torture/compile/20020409-1.c
deleted file mode 100644
index 1bdc08ff3b8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020409-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR c/5078 */
-
-#include <limits.h>
-
-int f(int i)
-{
- i -= 2 * (INT_MAX + 1);
- return i;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020415-1.c b/gcc/testsuite/gcc.c-torture/compile/20020415-1.c
deleted file mode 100644
index 95cdc1eafeb..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020415-1.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Check that floating point casts of integer operations don't ICE. */
-/* The first of these routines caused problems for a patch, that wasn't
- otherwise caught by a full bootstrap, the regression test suite or
- SPEC CPU2000. */
-
-double
-andop (unsigned int x)
-{
- return x & 1;
-}
-
-double
-orop (unsigned int x)
-{
- return x | 1;
-}
-
-double
-notop (unsigned int x)
-{
- return ~x;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020418-1.c b/gcc/testsuite/gcc.c-torture/compile/20020418-1.c
deleted file mode 100644
index df01e6847e3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020418-1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* PR c/6358
- This testcase ICEd on IA-32 in foo, because current_function_return_rtx
- was assigned a hard register only after expand_null_return was called,
- thus return pseudo was clobbered twice and the hard register not at
- all. */
-
-void baz (void);
-
-double foo (void)
-{
- baz ();
- return;
-}
-
-double bar (void)
-{
- baz ();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020530-1.c b/gcc/testsuite/gcc.c-torture/compile/20020530-1.c
deleted file mode 100644
index a6794892ec7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020530-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* PR optimization/6822 */
-
-extern unsigned char foo1 (void);
-extern unsigned short foo2 (void);
-
-int bar1 (void)
-{
- unsigned char q = foo1 ();
- return (q < 0x80) ? 64 : 0;
-}
-
-int bar2 (void)
-{
- unsigned short h = foo2 ();
- return (h < 0x8000) ? 64 : 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020604-1.c b/gcc/testsuite/gcc.c-torture/compile/20020604-1.c
deleted file mode 100644
index 19e082030a4..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020604-1.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/* PR c/6957
- This testcase ICEd at -O2 on IA-32, because
- (insn 141 139 142 (set (subreg:SF (reg:QI 72) 0)
- (plus:SF (reg:SF 73)
- (reg:SF 76))) 525 {*fop_sf_comm_nosse} (insn_list 134 (nil))
- (expr_list:REG_DEAD (reg:SF 73) (nil)))
- couldn't be reloaded. */
-
-void
-foo (unsigned int n, int x, int y, unsigned char *z)
-{
- int a, b;
- float c[2048][4];
-
- switch (x)
- {
- case 0x1906:
- a = b = -1;
- break;
- case 0x190A:
- a = b = -1;
- break;
- case 0x8049:
- a = b = -1;
- break;
- case 0x1907:
- a = 1;
- b = 2;
- break;
- default:
- return;
- }
-
- if (a >= 0)
- {
- unsigned char *d = z;
- unsigned int i;
- for (i = 0; i < n; i++)
- {
- do
- {
- union
- {
- float r;
- unsigned int i;
- }
- e;
- e.r = c[i][1];
- d[a] =
- ((e.i >= 0x3f7f0000) ? ((int) e.i <
- 0) ? (unsigned char) 0
- : (unsigned char) 255 : (e.r =
- e.r * (255.0F / 256.0F) +
- 32768.0F, (unsigned char) e.i));
- }
- while (0);
- d += y;
- }
- }
-
- if (b >= 0)
- {
- unsigned char *d = z;
- unsigned int i;
- for (i = 0; i < n; i++)
- {
- do
- {
- union
- {
- float r;
- unsigned int i;
- }
- e;
- e.r = c[i][2];
- d[b] =
- ((e.i >= 0x3f7f0000) ? ((int) e.i <
- 0) ? (unsigned char) 0
- : (unsigned char) 255 : (e.r =
- e.r * (255.0F / 256.0F) +
- 32768.0F, (unsigned char) e.i));
- }
- while (0);
- d += y;
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020604-1.x b/gcc/testsuite/gcc.c-torture/compile/20020604-1.x
deleted file mode 100644
index bced22f0f44..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020604-1.x
+++ /dev/null
@@ -1,10 +0,0 @@
-# The array is too big.
-if { [istarget "h8300-*-*"] } {
- return 1;
-}
-
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- return 1;
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020605-1.c b/gcc/testsuite/gcc.c-torture/compile/20020605-1.c
deleted file mode 100644
index 960a4be7ed1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020605-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This testcase caused on IA-32 -O2 endless loop in
- merge_blocks when trying to merge a basic block
- with itself. */
-
-void f (void)
-{
- char *c;
- do
- {
- if (c)
- break;
- }
- while (1);
- if (!c)
- while (1)
- f ();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020701-1.c b/gcc/testsuite/gcc.c-torture/compile/20020701-1.c
deleted file mode 100644
index 1258cec28b7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020701-1.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/* PR target/7177
- Problem with cris-axis-elf: ICE in global.
- Origin: hp@axis.com. */
-
-typedef __SIZE_TYPE__ size_t;
-void f1 (void *);
-char *f2 (const char *);
-int atoi (const char *);
-char *strchr (const char *, int);
-int strcmp (const char *, const char *);
-size_t strlen (const char *);
-typedef enum { A, B, C } t1;
-extern const char _v[];
-
-static t1
-f (const char* p1, const char* p2, char p3)
-{
- char *v1;
- char *v2;
- char *a;
- char *v3;
- char *v4;
- char *v5;
- char *e;
- char *v6;
- t1 r = C;
-
- v1 = f2 (p2);
- v4 = f2 (p1);
-
- a = v2 = v1;
- e = v5 = v4;
- memcpy (&e, &e, sizeof (e));
-
- v3 = strchr (v2, ',');
- v6 = strchr (v5, ',');
-
- while ((_v + 1)[(unsigned) *a] & 4)
- a++;
- while ((_v + 1)[(unsigned) *e] & 4)
- e++;
-
- if (a == v3 && e == v6)
- {
- if (p3)
- r = atoi (v5) < atoi (v2) ? B : A;
- else
- r = atoi (v5) > atoi (v2) ? B : A;
- v2 = ++a;
- v5 = ++e;
- v3 = strchr (v2, ',');
- v6 = strchr (v5, ',');
-
- while ((_v + 1)[(unsigned) *a] & 4)
- a++;
- while ((_v + 1)[(unsigned) *e] & 4)
- e++;
-
- if (a == v3 && e == v6)
- {
- if (r == B)
- r = B;
- else if (p3)
- r = atoi (v5) < atoi (v2) ? B : A;
- else
- r = atoi (v5) > atoi (v2) ? B : A;
- }
- else
- r = C;
- }
-
- f1 (v1);
- f1 (v4);
- return r;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020706-1.c b/gcc/testsuite/gcc.c-torture/compile/20020706-1.c
deleted file mode 100644
index c8811bc68ff..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020706-1.c
+++ /dev/null
@@ -1,50 +0,0 @@
-// Contributed by Alexandre Oliva <aoliva@redhat.com>
-// From Red Hat case 106165.
-
-typedef struct s1
-{
- unsigned short v1;
- unsigned char *v2;
-} S1;
-
-extern void bar(const struct s1 *const hdb);
-extern unsigned char* foo ();
-
-unsigned int sn;
-S1 *hdb;
-S1 *pb;
-unsigned short len;
-
-unsigned int crashIt()
-{
- unsigned char *p;
- unsigned int nsn;
- unsigned short cnt;
-
- if (sn != 0) return 1;
-
- if ((len < 12) || ((p = (((pb->v1) >= 8) ? pb->v2 : foo() )) == 0))
- return 1;
-
- nsn = (
- (((*(unsigned int*)p) & 0x000000ff) << 24) |
- (((*(unsigned int*)p) & 0x0000ff00) << 8) |
- (((*(unsigned int*)p) & 0x00ff0000) >> 8) |
- (((*(unsigned int*)p) & 0xff000000) >> 24) );
- p += 4;
-
- cnt = (unsigned short) ((
- (((*(unsigned int*)p) & 0x000000ff) << 24) |
- (((*(unsigned int*)p) & 0x0000ff00) << 8) |
- (((*(unsigned int*)p) & 0x00ff0000) >> 8) |
- (((*(unsigned int*)p) & 0xff000000) >> 24) ) &
- 0xffff);
-
- if ((len != 12 + (cnt * 56)) || (nsn == 0))
- {
- bar(hdb);
- return 1;
- }
-
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020706-2.c b/gcc/testsuite/gcc.c-torture/compile/20020706-2.c
deleted file mode 100644
index b84dda60fd3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020706-2.c
+++ /dev/null
@@ -1,26 +0,0 @@
-// Contributed by Alexandre Oliva <aoliva@redhat.com>
-// From Red Hat case 106165.
-
-typedef unsigned short (FUNC_P) (void *, unsigned char *, unsigned short);
-
-void crashIt(int id, FUNC_P *func, unsigned char *funcparm)
-{
- unsigned char buff[5], reverse[4];
- unsigned char *bp = buff;
- unsigned char *rp = reverse;
- unsigned short int count = 0;
- unsigned short cnt;
- while (id > 0)
- {
- *rp++ = (unsigned char) (id & 0x7F);
- id >>= 7;
- count++;
- }
- cnt = count + 1;
- while ((count--) > 1)
- {
- *bp++ = (unsigned char)(*(--rp) | 0x80);
- }
- *bp++ = *(--rp);
- (void)(*func)(funcparm, buff, cnt);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020709-1.c b/gcc/testsuite/gcc.c-torture/compile/20020709-1.c
deleted file mode 100644
index af0e1ddf469..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020709-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-extern double atof (__const char *__nptr) __attribute__ ((__pure__));
-
-void bar (char *s)
-{
- union {double val; unsigned int a, b;} u;
- u.val = atof (s);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020710-1.c b/gcc/testsuite/gcc.c-torture/compile/20020710-1.c
deleted file mode 100644
index bf6c9066cdd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020710-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* Red Hat bugzilla #68395
- PR middle-end/7245
- This testcase ICEd on IA-32 because shift & compare patterns
- predicates allowed any immediate, but constraints allowed only
- numbers from 1 to 31. */
-
-void foo (int *x, unsigned int y)
-{
- int a = y >> -13;
- if (a)
- *x = a;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020715-1.c b/gcc/testsuite/gcc.c-torture/compile/20020715-1.c
deleted file mode 100644
index 5294133f37b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020715-1.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* PR optimization/7153 */
-/* Verify that GCC doesn't promote a register when its
- lifetime is not limited to one basic block. */
-
-void f(char);
-void g(void);
-
-void scale(void)
-{
- int width;
- char bytes;
- char *src;
-
- if (width)
- {
- bytes = *src;
- g();
- width *= bytes;
- }
-
- f(bytes);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020910-1.c b/gcc/testsuite/gcc.c-torture/compile/20020910-1.c
deleted file mode 100644
index 31398ea3d45..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020910-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-unsigned int x0 = 0;
-
-typedef struct {
- unsigned int field1 : 20;
- unsigned int field2 : 12;
-} XX;
-
-static XX yy;
-
-static void foo (void)
-{
- yy.field1 = (unsigned int ) (&x0);
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020926-1.c b/gcc/testsuite/gcc.c-torture/compile/20020926-1.c
deleted file mode 100644
index 260e844549a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020926-1.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* PR c/7160 */
-/* Verify that the register-to-stack converter properly handles
- branches without return value containing function calls. */
-
-extern int gi;
-
-extern int foo1(int, int);
-extern void foo2(int, int);
-extern float foo3(int);
-
-float bar(int i1, int i2)
-{
- int i3;
-
- if (i2) {
- i3 = foo1(i1, gi);
- foo2(i1, i3);
- }
- else
- return foo3(i2);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020927-1.c b/gcc/testsuite/gcc.c-torture/compile/20020927-1.c
deleted file mode 100644
index b93d8a18d5e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020927-1.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* PR optimization/7520 */
-/* ICE at -O3 on x86 due to register life problems caused by
- the return-without-value in bar. */
-
-int
-foo ()
-{
- int i;
- long long int j;
-
- while (1)
- {
- if (j & 1)
- ++i;
- j >>= 1;
- if (j)
- return i;
- }
-}
-
-int
-bar ()
-{
- if (foo ())
- return;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020930-1.c b/gcc/testsuite/gcc.c-torture/compile/20020930-1.c
deleted file mode 100644
index d2fa3748ab5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20020930-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* PR c/8002 */
-
-float expm1f(float x) {
- union {
- float value;
- unsigned word;
- } sf_u;
- sf_u.word = (unsigned) x * 2;
- return x + sf_u.value;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021001-1.c b/gcc/testsuite/gcc.c-torture/compile/20021001-1.c
deleted file mode 100644
index 9f0f9c0978f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021001-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-int foo (double x, double y)
-{
- return !__builtin_isunordered (x, y);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021007-1.c b/gcc/testsuite/gcc.c-torture/compile/20021007-1.c
deleted file mode 100644
index de4c0defae9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021007-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* PR c/7411 */
-/* Verify that GCC simplifies the null addition to i before
- virtual register substitution tries it and winds up with
- a memory to memory move. */
-
-void foo ()
-{
- int i = 0,j;
-
- i+=j=0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021015-1.c b/gcc/testsuite/gcc.c-torture/compile/20021015-1.c
deleted file mode 100644
index 789b8a8b176..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021015-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* PR target/7370. */
-
-int g (int *x, int *y);
-
-void f ()
-{
- int x, y;
- char a[4000];
-
- g (&x, &y);
- x = x/y + x;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021015-2.c b/gcc/testsuite/gcc.c-torture/compile/20021015-2.c
deleted file mode 100644
index 6b158c5bdc8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021015-2.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* PR target/8232. */
-
-int f (char *p, char *q, int i)
-{
- return bcmp (p, q, i);
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021103-1.c b/gcc/testsuite/gcc.c-torture/compile/20021103-1.c
deleted file mode 100644
index 82802001a5d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021103-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* PR middle-end/8408 */
-/* Verify that the recognizer explicitly
- handles ADDRESSOF operands. */
-
-void foo(void)
-{
- double d1 = 3.14159, d2;
- if (&d2 == &d1)
- ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021108-1.c b/gcc/testsuite/gcc.c-torture/compile/20021108-1.c
deleted file mode 100644
index c421639035a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021108-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-int
-main()
-{
-l1:
- return &&l1-&&l2;
-l2:
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021110.c b/gcc/testsuite/gcc.c-torture/compile/20021110.c
deleted file mode 100644
index dd2aa7e09dd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021110.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* PR c/8439 */
-/* Verify that GCC properly handles null increments. */
-
-struct empty {
-};
-
-void foo(struct empty *p)
-{
- p++;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021119-1.c b/gcc/testsuite/gcc.c-torture/compile/20021119-1.c
deleted file mode 100644
index d4306b89b99..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021119-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* PR c/8588 */
-/* Contributed by Volker Reichelt. */
-
-/* Verify that GCC converts integer constants
- in shift operations. */
-
-void foo()
-{
- unsigned int i, j;
- j = (i >> 0xf0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021120-1.c b/gcc/testsuite/gcc.c-torture/compile/20021120-1.c
deleted file mode 100644
index 423f8ec1964..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021120-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR c/8518 */
-/* Contributed by Volker Reichelt. */
-
-/* Verify that GCC doesn't get confused by the
- redefinition of an extern inline function. */
-
-extern int inline foo () { return 0; }
-extern int inline bar () { return 0; }
-static int inline bar () { return foo(); }
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021120-2.c b/gcc/testsuite/gcc.c-torture/compile/20021120-2.c
deleted file mode 100644
index 51f0e257dfd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021120-2.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR c/8518 */
-/* Contributed by Volker Reichelt. */
-
-/* Verify that GCC doesn't get confused by the
- redefinition of an extern inline function. */
-
-extern int inline foo () { return 0; }
-extern int inline bar () { return 0; }
-static int bar () { return foo(); }
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-1.c b/gcc/testsuite/gcc.c-torture/compile/20021123-1.c
deleted file mode 100644
index dd2aa7e09dd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021123-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* PR c/8439 */
-/* Verify that GCC properly handles null increments. */
-
-struct empty {
-};
-
-void foo(struct empty *p)
-{
- p++;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-2.c b/gcc/testsuite/gcc.c-torture/compile/20021123-2.c
deleted file mode 100644
index 423f8ec1964..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021123-2.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR c/8518 */
-/* Contributed by Volker Reichelt. */
-
-/* Verify that GCC doesn't get confused by the
- redefinition of an extern inline function. */
-
-extern int inline foo () { return 0; }
-extern int inline bar () { return 0; }
-static int inline bar () { return foo(); }
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-3.c b/gcc/testsuite/gcc.c-torture/compile/20021123-3.c
deleted file mode 100644
index 51f0e257dfd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021123-3.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR c/8518 */
-/* Contributed by Volker Reichelt. */
-
-/* Verify that GCC doesn't get confused by the
- redefinition of an extern inline function. */
-
-extern int inline foo () { return 0; }
-extern int inline bar () { return 0; }
-static int bar () { return foo(); }
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-4.c b/gcc/testsuite/gcc.c-torture/compile/20021123-4.c
deleted file mode 100644
index d4306b89b99..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021123-4.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* PR c/8588 */
-/* Contributed by Volker Reichelt. */
-
-/* Verify that GCC converts integer constants
- in shift operations. */
-
-void foo()
-{
- unsigned int i, j;
- j = (i >> 0xf0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021124-1.c b/gcc/testsuite/gcc.c-torture/compile/20021124-1.c
deleted file mode 100644
index 3ab2b2ef495..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021124-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* PR optimization/8275 */
-/* Contributed by Volker Reichelt. */
-
-unsigned int foo (unsigned int u)
-{
- return (u >> 32) & 0xffff;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021204-1.c b/gcc/testsuite/gcc.c-torture/compile/20021204-1.c
deleted file mode 100644
index 4e8d3fefcbb..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021204-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* PR c/7622 */
-
-/* Verify that GCC can handle the mix of
- extern inline and nested functions. */
-
-extern inline int t()
-{
- int q() { return 0; }
-
- return q();
-}
-
-int foo()
-{
- return t();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021205-1.c b/gcc/testsuite/gcc.c-torture/compile/20021205-1.c
deleted file mode 100644
index 9c400cfac3a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021205-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* dg-do compile */
-/* dg-options "-O3" */
-typedef struct x x;
-extern void *baz(char *);
-struct x { char * (*bar) (int); };
-static x **foo() { return ((x**)baz(0)); }
-int xyzzy()
-{
- baz((*foo())->bar(0));
- return 3;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021212-1.c b/gcc/testsuite/gcc.c-torture/compile/20021212-1.c
deleted file mode 100644
index b89669d75b8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021212-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* PR optimization/8334 */
-/* Verify that GCC produces valid operands
- after simplifying an addition. */
-
-void foo(int m, int n, double *f)
-{
- int i, j, k = 1;
-
- for (j = 0; j < n; j++) {
- for (i = k; i < m; i++) {
- f[i] = (double) (i * j);
- f[i + j] = (double) ((i + 1) * j);
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021230-1.c b/gcc/testsuite/gcc.c-torture/compile/20021230-1.c
deleted file mode 100644
index 45ab51fd5ef..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20021230-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-/* SH has special handling for combined and/shift sequences. Make
- sure that it behaves properly when one input is in the MACL register. */
-int r, t;
-
-static void initRGB()
-{
- t = ((r*255/3) & 0xff) << 16;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030109-1.c b/gcc/testsuite/gcc.c-torture/compile/20030109-1.c
deleted file mode 100644
index 4df7d18721a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030109-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-void foo ()
-{
- int x1, x2, x3;
-
- bar (&x2 - &x1, &x3 - &x2);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030110-1.c b/gcc/testsuite/gcc.c-torture/compile/20030110-1.c
deleted file mode 100644
index 1cbbaea3c10..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030110-1.c
+++ /dev/null
@@ -1,39 +0,0 @@
-extern char bpp;
-
-void foo()
-{
- if (bpp == 32)
- {
- if (2 < 8)
- {
- do
- {
- while (inb(0x9ae8) & (0x0100 >> (2 +1)));
- }
- while(0);
- }
- else
- {
- do
- {
- while (inb(0x9ae8) & (0x0100 >> (2)));
- }
- while(0);
- }
- }
- else
- do
- {
- while (inb(0x9ae8) & (0x0100 >> (1)));
- }
- while(0);
- if (8 < 8)
- {
- do
- {
- while (inb(0x9ae8) & (0x0100 >> (8 +1)));
- }
- while(0);
- }
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030125-1.c b/gcc/testsuite/gcc.c-torture/compile/20030125-1.c
deleted file mode 100644
index 656304e2d67..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030125-1.c
+++ /dev/null
@@ -1,24 +0,0 @@
- int count;
-
- int func(int *valp) {
- int val, locked = 0;
-
- while ((val = *valp) != 0) {
- if (count) {
- if (count)
- locked = 1;
- else
- locked = 1;
-
- if (!locked)
- continue;
- }
-
- if (!count)
- count--;
-
- break;
- }
-
- return val;
- }
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030206-1.c b/gcc/testsuite/gcc.c-torture/compile/20030206-1.c
deleted file mode 100644
index 1e0d5445877..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030206-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* PR c/9530 */
-/* Contributed by Volker Reichelt. */
-
-/* Verify that the call to 'foo' is not turned
- into a sibling call. */
-
-void foo(float d);
-
-float bar(float d);
-
-float baz(float d)
-{
- foo(bar(d));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030216-1.c b/gcc/testsuite/gcc.c-torture/compile/20030216-1.c
deleted file mode 100644
index 8f692f09276..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030216-1.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* PR c/8086 */
-
-#define P(x) \
- (((((((((((((((((((((((((((((((( \
- (x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a) \
- *(x)+a)
-
-int
-polynomial(int a)
-{
- return P(3);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030219-1.c b/gcc/testsuite/gcc.c-torture/compile/20030219-1.c
deleted file mode 100644
index ecc943f7737..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030219-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-int global_one;
-
-void clobber_register()
-{
- *(volatile unsigned char *)(0xE0000000 * global_one) = 0x00;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c b/gcc/testsuite/gcc.c-torture/compile/20030224-1.c
deleted file mode 100644
index 6832dc81e47..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-void zzz (char *s1, char *s2, int len, int *q)
-{
- int z = 5;
- unsigned int i, b;
- struct { char a[z]; } x;
-
- for (i = 0; i < len; i++)
- s1[i] = s2[i];
-
- b = z & 0x3;
-
- len += (b == 0 ? 0 : 1) + z;
-
- *q = len;
-
- foo (x, x);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030305-1.c b/gcc/testsuite/gcc.c-torture/compile/20030305-1.c
deleted file mode 100644
index 2f608196fdd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030305-1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* PR c/9799 */
-/* Verify that GCC doesn't crash on excess elements
- in initializer for a flexible array member. */
-
-typedef struct {
- int aaa;
-} s1_t;
-
-typedef struct {
- int bbb;
- s1_t s1_array[];
-} s2_t;
-
-static s2_t s2_array[]= {
- { 1, 4 },
- { 2, 5 },
- { 3, 6 }
-};
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030314-1.c b/gcc/testsuite/gcc.c-torture/compile/20030314-1.c
deleted file mode 100644
index 02d4fed526a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030314-1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* PR optimization/8396 */
-/* Originator: <papadopo@shfj.cea.fr> */
-
-/* Verify that the tree inliner doesn't mess up the types
- when passing the value of read-only constant arguments. */
-
-static inline bar(const short int xs, const short int xe)
-{
- if (xe && (xs < xe))
- ;
-}
-
-void f()
-{
- short int xe;
-
- bar(0, xe);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030319-1.c b/gcc/testsuite/gcc.c-torture/compile/20030319-1.c
deleted file mode 100644
index dc5ab5774a9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030319-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* PR 10073 */
-typedef struct
-{
- unsigned short digits[4];
-} INT_64;
-
-INT_64 int_64_com (INT_64 a)
-{
- a.digits[0] ^= 0xFFFF;
- a.digits[1] ^= 0xFFFF;
- a.digits[2] ^= 0xFFFF;
- a.digits[3] ^= 0xFFFF;
- return a;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030320-1.c b/gcc/testsuite/gcc.c-torture/compile/20030320-1.c
deleted file mode 100644
index 40243f28f93..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030320-1.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Failed on powerpc64-linux with a segfault due to ifcvt generating
- conditional returns without updating dominance info.
- Extracted from glibc's dl-load.c. */
-
-typedef unsigned long size_t;
-
-static size_t
-is_dst (const char *start, const char *name, const char *str,
- int is_path, int secure)
-{
- size_t len;
- _Bool is_curly = 0;
-
- if (name[0] == '{')
- {
- is_curly = 1;
- ++name;
- }
-
- len = 0;
- while (name[len] == str[len] && name[len] != '\0')
- ++len;
-
- if (is_curly)
- {
- if (name[len] != '}')
- return 0;
-
-
- --name;
-
- len += 2;
- }
- else if (name[len] != '\0' && name[len] != '/'
- && (!is_path || name[len] != ':'))
- return 0;
-
- if (__builtin_expect (secure, 0)
- && ((name[len] != '\0' && (!is_path || name[len] != ':'))
- || (name != start + 1 && (!is_path || name[-2] != ':'))))
- return 0;
-
- return len;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030323-1.c b/gcc/testsuite/gcc.c-torture/compile/20030323-1.c
deleted file mode 100644
index 8ea602deee3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030323-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* PR c/10178. The following code would ICE because we didn't check for
- overflow when computing the range of the switch-statment, and therefore
- decided it could be implemented using bit-tests. */
-
-int
-banana(long citron)
-{
- switch (citron) {
- case 0x80000000:
- case 0x40000:
- case 0x40001:
- return 1;
- break;
- }
- return 0;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030330-1.c b/gcc/testsuite/gcc.c-torture/compile/20030330-1.c
deleted file mode 100644
index a5d5de23b7a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030330-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* PR c/10083 */
-/* This will result in a very small constant for umul_highpart, which
- uncovered a bug in the Alpha machine description. */
-
-unsigned long f(unsigned long x) {
- return x % 0x3fffffffffffffff;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030331-1.c b/gcc/testsuite/gcc.c-torture/compile/20030331-1.c
deleted file mode 100644
index e5db36bf369..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030331-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* From PR/9301. Fixed by ebotcazou's patch for PR/9493. */
-
-void bar (void);
-
-void foo (int a, int b, int c, int d, int e)
-{
- if (a)
- bar();
- if (b && c)
- ;
- if (d && e)
- ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030405-1.c b/gcc/testsuite/gcc.c-torture/compile/20030405-1.c
deleted file mode 100644
index 2e61f1fa3ff..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030405-1.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* PR optimization/10024 */
-extern int *allegro_errno;
-typedef long fixed;
-extern inline int
-fixfloor (fixed x)
-{
- if (x >= 0)
- return (x >> 16);
- else
- return ~((~x) >> 16);
-}
-extern inline int
-fixtoi (fixed x)
-{
- return fixfloor (x) + ((x & 0x8000) >> 15);
-}
-extern inline fixed
-ftofix (double x)
-{
- if (x > 32767.0)
- {
- *allegro_errno = 34;
- return 0x7FFFFFFF;
- }
- if (x < -32767.0)
- {
- *allegro_errno = 34;
- return -0x7FFFFFFF;
- }
- return (long) (x * 65536.0 + (x < 0 ? -0.5 : 0.5));
-}
-extern inline double
-fixtof (fixed x)
-{
- return (double) x / 65536.0;
-}
-extern inline fixed
-fixdiv (fixed x, fixed y)
-{
- if (y == 0)
- {
- *allegro_errno = 34;
- return (x < 0) ? -0x7FFFFFFF : 0x7FFFFFFF;
- }
- else
- return ftofix (fixtof (x) / fixtof (y));
-}
-extern inline fixed
-itofix (int x)
-{
- return x << 16;
-}
-
-int
-foo (int n)
-{
- return fixtoi (fixdiv (itofix (512), itofix (n)));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030410-1.c b/gcc/testsuite/gcc.c-torture/compile/20030410-1.c
deleted file mode 100644
index 9127ede8397..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030410-1.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* PR 10201 */
-
-extern struct _zend_compiler_globals compiler_globals;
-typedef struct _zend_executor_globals zend_executor_globals;
-extern zend_executor_globals executor_globals;
-
-typedef struct _zend_ptr_stack {
- int top;
- void **top_element;
-} zend_ptr_stack;
-struct _zend_compiler_globals {
-};
-struct _zend_executor_globals {
- int *uninitialized_zval_ptr;
- zend_ptr_stack argument_stack;
-};
-
-static inline void safe_free_zval_ptr(int *p)
-{
- if (p!=(executor_globals.uninitialized_zval_ptr)) {
- }
-}
-zend_executor_globals executor_globals;
-static inline void zend_ptr_stack_clear_multiple(void)
-{
- executor_globals.argument_stack.top -= 2;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030415-1.c b/gcc/testsuite/gcc.c-torture/compile/20030415-1.c
deleted file mode 100644
index bcca4c85dc6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030415-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-float g(float f)
-{
- return fabs(f);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030418-1.c b/gcc/testsuite/gcc.c-torture/compile/20030418-1.c
deleted file mode 100644
index f6d5a4af51c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/20030418-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* PR optimization/7675 */
-/* Contributed by Volker Reichelt */
-
-/* Verify that we don't put automatic variables
- in registers too early. */
-
-extern int dummy (int *);
-
-void foo(int i)
-{
- int j=i;
-
- void bar() { int x=j, y=i; }
-
- dummy(&i);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/900116-1.c b/gcc/testsuite/gcc.c-torture/compile/900116-1.c
deleted file mode 100644
index 37c7eb789b9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/900116-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-struct st {char a, b, c, d; }
-
-zloop (struct st *s, int *p, int *q)
-{
- int i;
- struct st ss;
-
- for (i = 0; i < 100; i++)
- {
- ss = s[i];
- p[i] = ss.c;
- q[i] = ss.b;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/900216-1.c b/gcc/testsuite/gcc.c-torture/compile/900216-1.c
deleted file mode 100644
index 8a4bfb74e78..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/900216-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-foo (p, a, b)
- unsigned short *p;
-{
- unsigned int x;
-
- x = p[0];
-
- return (x == 134U);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/900313-1.c b/gcc/testsuite/gcc.c-torture/compile/900313-1.c
deleted file mode 100644
index f2bc40d7242..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/900313-1.c
+++ /dev/null
@@ -1,172 +0,0 @@
-main ()
-{
- char *a;
- foo (alloca (10000));
- foo (alloca (100000));
- foo (alloca ((int) &main));
-}
-
-many_par (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
-{
- char *x;
- int aa, ba, ca, da, ea, fa, ga, ha, ia, ja, ka, la, ma, na, oa, pa;
-
- aa = bar ();
- ba = bar ();
- ca = bar ();
- da = bar ();
- ea = bar ();
- fa = bar ();
- ga = bar ();
- ha = bar ();
- ia = bar ();
- ja = bar ();
- ka = bar ();
- la = bar ();
- ma = bar ();
- na = bar ();
- oa = bar ();
- pa = bar ();
- foobar (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, aa, ba, ca,
- da, ea, fa, ga, ha, ia, ja, ka, la, ma, na, oa, pa);
-
-}
-
-foobar (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, aa, ba, ca,
- da, ea, fa, ga, ha, ia, ja, ka, la, ma, na, oa, pa)
-{
- int ab, bb, cb, db, eb, fb, gb, hb, ib, jb, kb, lb, mb, nb, ob, pb;
- int qb, rb, sb, tb, ub, vb, xb, yb;
-
- ab = bar ();
- bb = bar ();
- cb = bar ();
- db = bar ();
- eb = bar ();
- fb = bar ();
- gb = bar ();
- hb = bar ();
- ib = bar ();
- jb = bar ();
- kb = bar ();
- lb = bar ();
- mb = bar ();
- nb = bar ();
- ob = bar ();
- pb = bar ();
- qb = bar ();
- rb = bar ();
- sb = bar ();
- tb = bar ();
- ub = bar ();
- vb = bar ();
- xb = bar ();
- yb = bar ();
-
- boofar (a);
- boofar (b);
- boofar (c);
- boofar (d);
- boofar (e);
- boofar (f);
- boofar (g);
- boofar (h);
- boofar (i);
- boofar (j);
- boofar (k);
- boofar (l);
- boofar (m);
- boofar (n);
- boofar (o);
- boofar (p);
- boofar (aa);
- boofar (ba);
- boofar (ca);
- boofar (da);
- boofar (ea);
- boofar (fa);
- boofar (ga);
- boofar (ha);
- boofar (ia);
- boofar (ja);
- boofar (ka);
- boofar (la);
- boofar (ma);
- boofar (na);
- boofar (oa);
- boofar (pa);
-
- boofar (ab);
- boofar (bb);
- boofar (cb);
- boofar (db);
- boofar (eb);
- boofar (fb);
- boofar (gb);
- boofar (hb);
- boofar (ib);
- boofar (jb);
- boofar (kb);
- boofar (lb);
- boofar (mb);
- boofar (nb);
- boofar (ob);
- boofar (pb);
-
- boofar (a);
- boofar (b);
- boofar (c);
- boofar (d);
- boofar (e);
- boofar (f);
- boofar (g);
- boofar (h);
- boofar (i);
- boofar (j);
- boofar (k);
- boofar (l);
- boofar (m);
- boofar (n);
- boofar (o);
- boofar (p);
- boofar (aa);
- boofar (ba);
- boofar (ca);
- boofar (da);
- boofar (ea);
- boofar (fa);
- boofar (ga);
- boofar (ha);
- boofar (ia);
- boofar (ja);
- boofar (ka);
- boofar (la);
- boofar (ma);
- boofar (na);
- boofar (oa);
- boofar (pa);
-
- boofar (ab);
- boofar (bb);
- boofar (cb);
- boofar (db);
- boofar (eb);
- boofar (fb);
- boofar (gb);
- boofar (hb);
- boofar (ib);
- boofar (jb);
- boofar (kb);
- boofar (lb);
- boofar (mb);
- boofar (nb);
- boofar (ob);
- boofar (pb);
-
-}
-
-test_exit_ignore_stack ()
-{
- foobar (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/900407-1.c b/gcc/testsuite/gcc.c-torture/compile/900407-1.c
deleted file mode 100644
index fdf47791cd7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/900407-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-foo (a, b, p)
- int *p;
-{
- int c;
- p[1] = a + 0x1000;
- c = b + 0xffff0000;
- if ((b + 0xffff0000) == 0)
- c++;
- p[2] = c;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/900516-1.c b/gcc/testsuite/gcc.c-torture/compile/900516-1.c
deleted file mode 100644
index 69e96144745..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/900516-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(c){return!(c?2.0:1.0);}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920301-1.c b/gcc/testsuite/gcc.c-torture/compile/920301-1.c
deleted file mode 100644
index c4d663eb8a7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920301-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-#ifndef NO_LABEL_VALUES
-f(){static void*t[]={&&x};x:;}
-#endif
-g(){static unsigned p[5];}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920409-1.c b/gcc/testsuite/gcc.c-torture/compile/920409-1.c
deleted file mode 100644
index b96ec53d595..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920409-1.c
+++ /dev/null
@@ -1 +0,0 @@
-x(){int y;y>0.0?y:y-1;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920409-2.c b/gcc/testsuite/gcc.c-torture/compile/920409-2.c
deleted file mode 100644
index ef2bdb8b7e7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920409-2.c
+++ /dev/null
@@ -1,2 +0,0 @@
-double x(){int x1,x2;double v;
-if(((long)(x1-x2))<1)return -1.0;v=t(v);v=y(1,v>0.0?(int)v:((int)v-1));}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920410-1.c b/gcc/testsuite/gcc.c-torture/compile/920410-1.c
deleted file mode 100644
index 4bfa7a665a3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920410-1.c
+++ /dev/null
@@ -1,30 +0,0 @@
-int alloc_float(f)
- float f;
-{ union
- {
- float f;
- int i;
- }
- u;
- u.f=f;
- return u.i&~1;
-}
-
-float c_float(int obj)
-{ union
- {
- float f;
- int i;
- } u;
-
- u.i=obj;
- return u.f;
-}
-
-main()
-{ int x=alloc_float(1.2);
- int y=alloc_float(5.7);
- int z=alloc_float(c_float(x)*c_float(y));
-
- printf("%g\n",(double)c_float(z));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920410-2.c b/gcc/testsuite/gcc.c-torture/compile/920410-2.c
deleted file mode 100644
index 958aae9cb0f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920410-2.c
+++ /dev/null
@@ -1,12 +0,0 @@
-joe()
-{
- int j;
-
- while( 1 )
- {
- for( j = 0; j < 4; j++ )
- ;
- for( j = 0; j < 4; j++ )
- ;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920411-2.c b/gcc/testsuite/gcc.c-torture/compile/920411-2.c
deleted file mode 100644
index 0cc13c8436a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920411-2.c
+++ /dev/null
@@ -1 +0,0 @@
-x(){int n;double x;n=x<1?n:n+1;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920413-1.c b/gcc/testsuite/gcc.c-torture/compile/920413-1.c
deleted file mode 100644
index 45b5fc5d09c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920413-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-union u {double d;long long ll;};
-f(double x, int n){union u v;v.d=x;if(n>=0){v.ll<<=63;}else{v.ll+=1<<-n;v.ll>>=-n;}return v.ll;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920415-1.c b/gcc/testsuite/gcc.c-torture/compile/920415-1.c
deleted file mode 100644
index 8d9bc065349..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920415-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef NO_LABEL_VALUES
-f ()
-{
- __label__ l;
- void *x()
- {
- return &&l;
- }
- goto *x ();
- abort ();
- return;
- l:
- exit (0);
-}
-#else
-int x;
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-1.c b/gcc/testsuite/gcc.c-torture/compile/920428-1.c
deleted file mode 100644
index fdc478a382c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920428-1.c
+++ /dev/null
@@ -1 +0,0 @@
-x(){char*q;return(long)q>>8&0xff;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-2.c b/gcc/testsuite/gcc.c-torture/compile/920428-2.c
deleted file mode 100644
index 23f32a83a9d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920428-2.c
+++ /dev/null
@@ -1,531 +0,0 @@
-double sin(double x);
-double cos(double x);
-double tan(double x);
-double asin(double x);
-double acos(double x);
-double atan(double x);
-double atan2(double y, double x);
-double sinh(double x);
-double cosh(double x);
-double tanh(double x);
-double exp(double x);
-double expm1(double x);
-double log(double x);
-double log10(double x);
-double log1p(double x);
-double pow(double x, double y);
-double sqrt(double x);
-double cbrt(double x);
-double ceil(double x);
-double floor(double x);
-double fabs(double x);
-double frexp(double value, int *eptr);
-double ldexp(double value, int exp);
-double modf(double value, double *iptr);
-double erf(double x);
-double erfc(double x);
-double atof(const char *nptr);
-double hypot(double x, double y);
-double lgamma(double x);
-double j0(double x);
-double j1(double x);
-double jn(int n, double x);
-double y0(double x);
-double y1(double x);
-double yn(int n, double x);
-extern struct _iobuf {
- int _cnt;
- char *_ptr;
- char *_base;
- int _bufsiz;
- short _flag;
- char _file;
-} _iob[];
-typedef unsigned long size_t;
-typedef char *va_list;
-struct _iobuf *fopen(const char *filename, const char *type);
-struct _iobuf *freopen(const char *filename, const char *type, struct _iobuf *stream);
-struct _iobuf *fdopen(int fildes, const char *type);
-struct _iobuf *popen(const char *command, const char *type);
-int pclose(struct _iobuf *stream);
-int fflush(struct _iobuf *stream);
-int fclose(struct _iobuf *stream);
-int remove(const char *path);
-int rename(const char *from, const char *to);
-struct _iobuf *tmpfile(void);
-char *tmpnam(char *s);
-int setvbuf(struct _iobuf *iop, char *buf, int type, size_t size);
-int setbuf(struct _iobuf *stream, char *buf);
-int setbuffer(struct _iobuf *stream, char *buf, size_t size);
-int setlinebuf(struct _iobuf *stream);
-int fprintf(struct _iobuf *stream, const char *format, ...);
-int printf(const char *format, ...);
-char *sprintf(char *s, const char *format, ...);
-int vfprintf(struct _iobuf *stream, const char *format, va_list arg);
-int vprintf(const char *format, va_list arg);
-int vsprintf(char *s, const char *format, va_list arg);
-int fscanf(struct _iobuf *stream, const char *format, ...);
-int scanf(const char *format, ...);
-int sscanf(char *s, const char *format, ...);
-int fgetc(struct _iobuf *stream);
-int getw(struct _iobuf *stream);
-char *fgets(char *s, int n, struct _iobuf *stream);
-char *gets(char *s);
-int fputc(int c, struct _iobuf *stream);
-int putw(int w, struct _iobuf *stream);
-int fputs(const char *s, struct _iobuf *stream);
-int puts(const char *s);
-int ungetc(int c, struct _iobuf *stream);
-int fread(void *ptr, size_t size, size_t count, struct _iobuf *iop);
-int fwrite(const void *ptr, size_t size, size_t count, struct _iobuf *iop);
-int fseek(struct _iobuf *stream, long offset, int ptrname);
-long ftell(struct _iobuf *stream);
-void rewind(struct _iobuf *stream);
-int fgetpos(struct _iobuf *stream, long *pos);
-int fsetpos(struct _iobuf *stream, const long *pos);
-void perror(const char *s);
-typedef unsigned char byte;
-typedef unsigned char uchar;
-typedef unsigned short ushort;
-typedef unsigned int uint;
-typedef unsigned long ulong;
-typedef unsigned char u_char;
-typedef unsigned short u_short;
-typedef unsigned int u_int;
-typedef unsigned long u_long;
-typedef unsigned short ushort_;
-typedef struct _physadr { int r[1]; } *physadr;
-typedef struct label_t {
- int val[11];
-} label_t;
-typedef struct _quad { long val[2]; } quad;
-typedef long daddr_t;
-typedef char * caddr_t;
-typedef u_long ino_t;
-typedef long swblk_t;
-typedef long time_t;
-typedef short dev_t;
-typedef long off_t;
-typedef u_short uid_t;
-typedef u_short gid_t;
-typedef signed char prio_t;
-typedef long fd_mask;
-typedef struct fd_set {
- fd_mask fds_bits[(((256 )+(( (sizeof(fd_mask) * 8 ) )-1))/( (sizeof(fd_mask) * 8 ) )) ];
-} fd_set;
-typedef struct qhdr {
- struct qhdr *link, *rlink;
-} *queue_t;
-typedef char *ptr_ord_t;
-typedef double floatp;
-typedef char *(*proc_alloc_t)(unsigned num_elements, unsigned element_size, const char *client_name );
-typedef void (*proc_free_t)(char *data, unsigned num_elements, unsigned element_size, const char *client_name );
-extern struct _iobuf *gs_out;
-typedef struct gs_point_s {
- double x, y;
-} gs_point;
-typedef struct gs_int_point_s {
- int x, y;
-} gs_int_point;
-typedef struct gs_rect_s {
- gs_point p, q;
-} gs_rect;
-typedef struct gs_int_rect_s {
- gs_int_point p, q;
-} gs_int_rect;
-typedef struct gs_state_s gs_state;
-typedef struct {
- proc_alloc_t alloc;
- proc_free_t free;
-} gs_memory_procs;
-char *gs_malloc(uint, uint, const char * );
-void gs_free(char *, uint, uint, const char * );
-extern char gs_debug[128];
-extern int gs_log_error(int, const char *, int );
-typedef long fixed;
-typedef struct gs_fixed_point_s {
- fixed x, y;
-} gs_fixed_point;
-typedef struct gs_fixed_rect_s {
- gs_fixed_point p, q;
-} gs_fixed_rect;
-typedef struct gs_matrix_s {
- long _xx; float xx; long _xy; float xy; long _yx; float yx; long _yy; float yy; long _tx; float tx; long _ty; float ty;
-} gs_matrix;
-void gs_make_identity(gs_matrix * );
-int gs_make_translation(floatp, floatp, gs_matrix * ),
- gs_make_scaling(floatp, floatp, gs_matrix * ),
- gs_make_rotation(floatp, gs_matrix * );
-int gs_matrix_multiply(const gs_matrix *, const gs_matrix *, gs_matrix * ),
- gs_matrix_invert(const gs_matrix *, gs_matrix * ),
- gs_matrix_rotate(const gs_matrix *, floatp, gs_matrix * );
-int gs_point_transform(floatp, floatp, const gs_matrix *, gs_point * ),
- gs_point_transform_inverse(floatp, floatp, const gs_matrix *, gs_point * ),
- gs_distance_transform(floatp, floatp, const gs_matrix *, gs_point * ),
- gs_distance_transform_inverse(floatp, floatp, const gs_matrix *, gs_point * ),
- gs_bbox_transform_inverse(gs_rect *, gs_matrix *, gs_rect * );
-typedef struct gs_matrix_fixed_s {
- long _xx; float xx; long _xy; float xy; long _yx; float yx; long _yy; float yy; long _tx; float tx; long _ty; float ty;
- fixed tx_fixed, ty_fixed;
-} gs_matrix_fixed;
-extern void gs_update_matrix_fixed(gs_matrix_fixed * );
-int gs_point_transform2fixed(gs_matrix_fixed *, floatp, floatp, gs_fixed_point * ),
- gs_distance_transform2fixed(gs_matrix_fixed *, floatp, floatp, gs_fixed_point * );
-typedef struct {
- long xx, xy, yx, yy;
- int skewed;
- int shift;
- int max_bits;
- fixed round;
-} fixed_coeff;
-
-typedef enum {
- gs_cap_butt = 0,
- gs_cap_round = 1,
- gs_cap_square = 2
-} gs_line_cap;
-typedef enum {
- gs_join_miter = 0,
- gs_join_round = 1,
- gs_join_bevel = 2
-} gs_line_join;
-gs_state *gs_state_alloc(proc_alloc_t, proc_free_t );
-int gs_state_free(gs_state * );
-int gs_gsave(gs_state * ),
- gs_grestore(gs_state * ),
- gs_grestoreall(gs_state * );
-gs_state *gs_gstate(gs_state * );
-int gs_currentgstate(gs_state * , const gs_state * ),
- gs_setgstate(gs_state * , const gs_state * );
-gs_state *gs_state_swap_saved(gs_state *, gs_state * );
-void gs_state_swap(gs_state *, gs_state * );
-int gs_initgraphics(gs_state * );
-typedef struct gx_device_s gx_device;
-int gs_flushpage(gs_state * );
-int gs_copypage(gs_state * );
-int gs_output_page(gs_state *, int, int );
-int gs_copyscanlines(gx_device *, int, byte *, uint, int *, uint * );
-gx_device * gs_getdevice(int );
-int gs_copydevice(gx_device **, gx_device *, proc_alloc_t );
-int gs_makeimagedevice(gx_device **, gs_matrix *, uint, uint, byte *, int, proc_alloc_t );
-void gs_nulldevice(gs_state * );
-int gs_setdevice(gs_state *, gx_device * );
-gx_device * gs_currentdevice(gs_state * );
-const char * gs_devicename(gx_device * );
-void gs_deviceinitialmatrix(gx_device *, gs_matrix * );
-int gs_closedevice(gx_device * );
-int gs_setlinewidth(gs_state *, floatp );
-float gs_currentlinewidth(const gs_state * );
-int gs_setlinecap(gs_state *, gs_line_cap );
-gs_line_cap gs_currentlinecap(const gs_state * );
-int gs_setlinejoin(gs_state *, gs_line_join );
-gs_line_join gs_currentlinejoin(const gs_state * );
-int gs_setmiterlimit(gs_state *, floatp );
-float gs_currentmiterlimit(const gs_state * );
-int gs_setdash(gs_state *, const float *, uint, floatp );
-uint gs_currentdash_length(const gs_state * );
-int gs_currentdash_pattern(const gs_state *, float * );
-float gs_currentdash_offset(const gs_state * );
-int gs_setflat(gs_state *, floatp );
-float gs_currentflat(const gs_state * );
-int gs_setstrokeadjust(gs_state *, int );
-int gs_currentstrokeadjust(const gs_state * );
-typedef enum {
- gs_color_space_DeviceGray = 0,
- gs_color_space_DeviceRGB,
- gs_color_space_DeviceCMYK
-} gs_color_space;
-typedef struct gs_color_s gs_color;
-extern const uint gs_color_sizeof;
-int gs_setgray(gs_state *, floatp );
-float gs_currentgray(gs_state * );
-int gs_sethsbcolor(gs_state *, floatp, floatp, floatp ),
- gs_currenthsbcolor(gs_state *, float [3] ),
- gs_setrgbcolor(gs_state *, floatp, floatp, floatp ),
- gs_currentrgbcolor(gs_state *, float [3] );
-int gs_currentcolorspace(gs_state *, gs_color_space * );
-typedef float (*gs_transfer_proc)(gs_state *, floatp );
-int gs_settransfer(gs_state *, gs_transfer_proc ),
- gs_settransfer_remap(gs_state *, gs_transfer_proc, int );
-gs_transfer_proc gs_currenttransfer(gs_state * );
-int gs_setcolortransfer(gs_state *, gs_transfer_proc ,
- gs_transfer_proc , gs_transfer_proc ,
- gs_transfer_proc ),
- gs_setcolortransfer_remap(gs_state *, gs_transfer_proc ,
- gs_transfer_proc , gs_transfer_proc ,
- gs_transfer_proc , int );
-void gs_currentcolortransfer(gs_state *, gs_transfer_proc [4] );
-int gs_setscreen(gs_state *, floatp, floatp, float (*)(floatp, floatp ) );
-int gs_currentscreen(gs_state *, float *, float *, float (**)(floatp, floatp ) );
-int gs_sethalftonephase(gs_state *, int, int );
-int gs_currenthalftonephase(gs_state *, gs_int_point * );
-typedef struct gs_screen_enum_s gs_screen_enum;
-extern const uint gs_screen_enum_sizeof;
-int gs_screen_init(gs_screen_enum *, gs_state *, floatp, floatp );
-int gs_screen_currentpoint(gs_screen_enum *, gs_point * );
-int gs_screen_next(gs_screen_enum *, floatp );
-struct gs_state_s {
- gs_state *saved;
- gs_memory_procs memory_procs;
- gs_matrix_fixed ctm;
- gs_matrix ctm_inverse;
- int inverse_valid;
- struct gx_path_s *path;
- struct gx_clip_path_s *clip_path;
- int clip_rule;
- struct line_params_s *line_params;
- struct halftone_params_s *halftone;
- float (*ht_proc)(floatp, floatp );
- gs_int_point ht_phase;
- gs_int_point phase_mod;
- struct gs_color_s *color;
- struct gx_device_color_s *dev_color;
- struct gx_transfer_s *transfer;
- struct gs_font_s *font;
- gs_matrix char_tm;
- int char_tm_valid;
- byte in_cachedevice;
- byte in_charpath;
-
-
-
-
- int level;
- float flatness;
- int stroke_adjust;
- struct device_s *device;
- int device_is_shared;
-
-};
-typedef unsigned long gx_bitmap_id;
-typedef struct gx_bitmap_s {
- byte *data;
- int raster;
- gs_int_point size;
- gx_bitmap_id id;
- ushort rep_width, rep_height;
-} gx_bitmap;
-typedef unsigned long gx_color_index;
-typedef unsigned short gx_color_value;
-typedef struct gx_device_color_info_s {
- int num_components;
-
- int depth;
- gx_color_value max_gray;
- gx_color_value max_rgb;
-
- gx_color_value dither_gray;
- gx_color_value dither_rgb;
-
-} gx_device_color_info;
-typedef struct gx_device_procs_s gx_device_procs;
-struct gx_device_s {
- int params_size; gx_device_procs *procs; const char *dname; int width; int height; float x_pixels_per_inch; float y_pixels_per_inch; float l_margin, b_margin, r_margin, t_margin; gx_device_color_info color_info; int is_open;
-};
-typedef struct gs_prop_item_s gs_prop_item;
-struct gx_device_procs_s {
- int (*open_device)(gx_device *dev );
- void (*get_initial_matrix)(gx_device *dev, gs_matrix *pmat );
- int (*sync_output)(gx_device *dev );
- int (*output_page)(gx_device *dev, int num_copies, int flush );
- int (*close_device)(gx_device *dev );
- gx_color_index (*map_rgb_color)(gx_device *dev, gx_color_value red, gx_color_value green, gx_color_value blue );
- int (*map_color_rgb)(gx_device *dev, gx_color_index color, gx_color_value rgb[3] );
- int (*fill_rectangle)(gx_device *dev, int x, int y, int width, int height, gx_color_index color );
- int (*tile_rectangle)(gx_device *dev, gx_bitmap *tile, int x, int y, int width, int height, gx_color_index color0, gx_color_index color1, int phase_x, int phase_y );
- int (*copy_mono)(gx_device *dev, unsigned char *data, int data_x, int raster, gx_bitmap_id id, int x, int y, int width, int height, gx_color_index color0, gx_color_index color1 );
- int (*copy_color)(gx_device *dev, unsigned char *data, int data_x, int raster, gx_bitmap_id id, int x, int y, int width, int height );
- int (*draw_line)(gx_device *dev, int x0, int y0, int x1, int y1, gx_color_index color );
- int (*get_bits)(gx_device *dev, int y, unsigned char *data, unsigned int size, int pad_to_word );
- int (*get_props)(gx_device *dev, gs_prop_item *plist );
-
- int (*put_props)(gx_device *dev, gs_prop_item *plist, int count );
-
-};
-extern unsigned int gx_device_bytes_per_scan_line(gx_device *dev, int pad_to_word );
-int gx_default_open_device(gx_device *dev );
-void gx_default_get_initial_matrix(gx_device *dev, gs_matrix *pmat );
-int gx_default_sync_output(gx_device *dev );
-int gx_default_output_page(gx_device *dev, int num_copies, int flush );
-int gx_default_close_device(gx_device *dev );
-gx_color_index gx_default_map_rgb_color(gx_device *dev, gx_color_value red, gx_color_value green, gx_color_value blue );
-int gx_default_map_color_rgb(gx_device *dev, gx_color_index color, gx_color_value rgb[3] );
-int gx_default_tile_rectangle(gx_device *dev, gx_bitmap *tile, int x, int y, int width, int height, gx_color_index color0, gx_color_index color1, int phase_x, int phase_y );
-int gx_default_copy_color(gx_device *dev, unsigned char *data, int data_x, int raster, gx_bitmap_id id, int x, int y, int width, int height );
-int gx_default_draw_line(gx_device *dev, int x0, int y0, int x1, int y1, gx_color_index color );
-int gx_default_get_bits(gx_device *dev, int y, unsigned char *data, unsigned int size, int pad_to_word );
-int gx_default_get_props(gx_device *dev, gs_prop_item *plist );
-int gx_default_put_props(gx_device *dev, gs_prop_item *plist, int count );
-typedef struct device_s {
- gx_device *info;
- int is_band_device;
- gx_color_index white, black;
-} device;
-int gs_initmatrix(gs_state * ),
- gs_defaultmatrix(const gs_state *, gs_matrix * ),
- gs_currentmatrix(const gs_state *, gs_matrix * ),
- gs_setmatrix(gs_state *, const gs_matrix * ),
- gs_translate(gs_state *, floatp, floatp ),
- gs_scale(gs_state *, floatp, floatp ),
- gs_rotate(gs_state *, floatp ),
- gs_concat(gs_state *, const gs_matrix * );
-int gs_transform(gs_state *, floatp, floatp, gs_point * ),
- gs_dtransform(gs_state *, floatp, floatp, gs_point * ),
- gs_itransform(gs_state *, floatp, floatp, gs_point * ),
- gs_idtransform(gs_state *, floatp, floatp, gs_point * );
-static int
-ctm_set_inverse(gs_state *pgs)
-{ int code = gs_matrix_invert(&*(gs_matrix *)&(pgs)->ctm , &pgs->ctm_inverse);
- 0;
- if ( code < 0 ) return code;
- pgs->inverse_valid = 1;
- return 0;
-}
-void
-gs_update_matrix_fixed(gs_matrix_fixed *pmat)
-{ (*pmat). tx = ((float)(((*pmat). tx_fixed = ((fixed)(((*pmat). tx)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , (*pmat). ty = ((float)(((*pmat). ty_fixed = ((fixed)(((*pmat). ty)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) )));
-}
-int
-gs_initmatrix(gs_state *pgs)
-{ gx_device *dev = pgs->device->info;
- (*dev->procs->get_initial_matrix)(dev, &*(gs_matrix *)&(pgs)->ctm );
- (pgs->ctm). tx = ((float)(((pgs->ctm). tx_fixed = ((fixed)(((pgs->ctm). tx)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , (pgs->ctm). ty = ((float)(((pgs->ctm). ty_fixed = ((fixed)(((pgs->ctm). ty)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , pgs->inverse_valid = 0, pgs->char_tm_valid = 0;
- return 0;
-}
-int
-gs_defaultmatrix(const gs_state *pgs, gs_matrix *pmat)
-{ gx_device *dev = pgs->device->info;
- (*dev->procs->get_initial_matrix)(dev, pmat);
- return 0;
-}
-int
-gs_currentmatrix(const gs_state *pgs, gs_matrix *pmat)
-{ *pmat = *(gs_matrix *)&(pgs)->ctm;
- return 0;
-}
-int
-gs_setmatrix(gs_state *pgs, const gs_matrix *pmat)
-{ *(gs_matrix *)&(pgs)->ctm = *pmat;
- (pgs->ctm). tx = ((float)(((pgs->ctm). tx_fixed = ((fixed)(((pgs->ctm). tx)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , (pgs->ctm). ty = ((float)(((pgs->ctm). ty_fixed = ((fixed)(((pgs->ctm). ty)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , pgs->inverse_valid = 0, pgs->char_tm_valid = 0;
- return 0;
-}
-int
-gs_translate(gs_state *pgs, floatp dx, floatp dy)
-{ gs_point pt;
- int code;
- if ( (code = gs_distance_transform(dx, dy, &*(gs_matrix *)&(pgs)->ctm , &pt)) < 0 )
- return code;
- pgs->ctm.tx += pt.x;
- pgs->ctm.ty += pt.y;
- (pgs->ctm). tx = ((float)(((pgs->ctm). tx_fixed = ((fixed)(((pgs->ctm). tx)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , (pgs->ctm). ty = ((float)(((pgs->ctm). ty_fixed = ((fixed)(((pgs->ctm). ty)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , pgs->inverse_valid = 0, pgs->char_tm_valid = 0;
- return 0;
-}
-int
-gs_scale(gs_state *pgs, floatp sx, floatp sy)
-{ pgs->ctm.xx *= sx;
- pgs->ctm.xy *= sx;
- pgs->ctm.yx *= sy;
- pgs->ctm.yy *= sy;
- pgs->inverse_valid = 0, pgs->char_tm_valid = 0;
- return 0;
-}
-int
-gs_rotate(gs_state *pgs, floatp ang)
-{ int code = gs_matrix_rotate(&*(gs_matrix *)&(pgs)->ctm , ang, &*(gs_matrix *)&(pgs)->ctm );
- pgs->inverse_valid = 0, pgs->char_tm_valid = 0;
- return code;
-}
-int
-gs_concat(gs_state *pgs, const gs_matrix *pmat)
-{ int code = gs_matrix_multiply(pmat, &*(gs_matrix *)&(pgs)->ctm , &*(gs_matrix *)&(pgs)->ctm );
- (pgs->ctm). tx = ((float)(((pgs->ctm). tx_fixed = ((fixed)(((pgs->ctm). tx)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , (pgs->ctm). ty = ((float)(((pgs->ctm). ty_fixed = ((fixed)(((pgs->ctm). ty)*(float)(1<<12 ) )) )*(1.0/(1<<12 ) ))) , pgs->inverse_valid = 0, pgs->char_tm_valid = 0;
- return code;
-}
-int
-gs_transform(gs_state *pgs, floatp x, floatp y, gs_point *pt)
-{ return gs_point_transform(x, y, &*(gs_matrix *)&(pgs)->ctm , pt);
-}
-int
-gs_dtransform(gs_state *pgs, floatp dx, floatp dy, gs_point *pt)
-{ return gs_distance_transform(dx, dy, &*(gs_matrix *)&(pgs)->ctm , pt);
-}
-int
-gs_itransform(gs_state *pgs, floatp x, floatp y, gs_point *pt)
-{
-
- if ( !!(((*(long *)(&((&pgs->ctm)->xy)) | *(long *)(&( (&pgs->ctm)->yx)) ) << 1) == 0) )
- { return gs_point_transform_inverse(x, y, &*(gs_matrix *)&(pgs)->ctm , pt);
- }
- else
- { if ( !pgs->inverse_valid ) { int code = ctm_set_inverse(pgs); if ( code < 0 ) return code; };
- return gs_point_transform(x, y, &pgs->ctm_inverse, pt);
- }
-}
-int
-gs_idtransform(gs_state *pgs, floatp dx, floatp dy, gs_point *pt)
-{
-
- if ( !!(((*(long *)(&((&pgs->ctm)->xy)) | *(long *)(&( (&pgs->ctm)->yx)) ) << 1) == 0) )
- { return gs_distance_transform_inverse(dx, dy,
- &*(gs_matrix *)&(pgs)->ctm , pt);
- }
- else
- { if ( !pgs->inverse_valid ) { int code = ctm_set_inverse(pgs); if ( code < 0 ) return code; };
- return gs_distance_transform(dx, dy, &pgs->ctm_inverse, pt);
- }
-}
-int
-gs_translate_to_fixed(register gs_state *pgs, fixed px, fixed py)
-{ pgs->ctm.tx = ((float)((pgs->ctm.tx_fixed = px)*(1.0/(1<<12 ) )));
- pgs->ctm.ty = ((float)((pgs->ctm.ty_fixed = py)*(1.0/(1<<12 ) )));
- pgs->inverse_valid = 0;
- pgs->char_tm_valid = 1;
- return 0;
-}
-int
-gx_matrix_to_fixed_coeff(const gs_matrix *pmat, register fixed_coeff *pfc,
- int max_bits)
-{ gs_matrix ctm;
- int scale = -10000;
- int expt, shift;
- ctm = *pmat;
- pfc->skewed = 0;
- if ( !((*(long *)(&(ctm.xx)) << 1) == 0) )
- { (void)frexp(ctm.xx, &scale);
- }
- if ( !((*(long *)(&(ctm.xy)) << 1) == 0) )
- { (void)frexp(ctm.xy, &expt);
- if ( expt > scale ) scale = expt;
- pfc->skewed = 1;
- }
- if ( !((*(long *)(&(ctm.yx)) << 1) == 0) )
- { (void)frexp(ctm.yx, &expt);
- if ( expt > scale ) scale = expt;
- pfc->skewed = 1;
- }
- if ( !((*(long *)(&(ctm.yy)) << 1) == 0) )
- { (void)frexp(ctm.yy, &expt);
- if ( expt > scale ) scale = expt;
- }
- scale = sizeof(long) * 8 - 1 - max_bits - scale;
- shift = scale - 12;
- if ( shift > 0 )
- { pfc->shift = shift;
- pfc->round = (fixed)1 << (shift - 1);
- }
- else
- { pfc->shift = 0;
- pfc->round = 0;
- scale -= shift;
- }
- pfc->xx = (((*(long *)(&(ctm.xx)) << 1) == 0) ? 0 : (long)ldexp(ctm.xx, scale));
- pfc->yy = (((*(long *)(&(ctm.yy)) << 1) == 0) ? 0 : (long)ldexp(ctm.yy, scale));
- if ( pfc->skewed )
- { pfc->xy = (((*(long *)(&(ctm.xy)) << 1) == 0) ? 0 : (long)ldexp(ctm.xy, scale));
- pfc->yx = (((*(long *)(&(ctm.yx)) << 1) == 0) ? 0 : (long)ldexp(ctm.yx, scale));
- }
- else
- pfc->xy = pfc->yx = 0;
- pfc->max_bits = max_bits;
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-3.c b/gcc/testsuite/gcc.c-torture/compile/920428-3.c
deleted file mode 100644
index 13640c98ad2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920428-3.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#ifndef NO_LABEL_VALUES
-x(a){static void*j[]={&&l1,&&l2};goto*j[a];l1:return 0;l2:return 1;}
-#else
-main(){ exit (0); }
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-4.c b/gcc/testsuite/gcc.c-torture/compile/920428-4.c
deleted file mode 100644
index cc5e30c2a80..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920428-4.c
+++ /dev/null
@@ -1 +0,0 @@
-x(a){struct{int p[a],i;}l;l.i;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-5.c b/gcc/testsuite/gcc.c-torture/compile/920428-5.c
deleted file mode 100644
index ff313799280..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920428-5.c
+++ /dev/null
@@ -1 +0,0 @@
-typedef struct{unsigned b0:1;}*t;x(a,b)t a,b;{b->b0=a->b0;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-6.c b/gcc/testsuite/gcc.c-torture/compile/920428-6.c
deleted file mode 100644
index e43af7ed3a7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920428-6.c
+++ /dev/null
@@ -1,22 +0,0 @@
-typedef struct x
-{
- struct x *type;
- struct x *chain;
- struct x *value;
-} *tree;
-
-int
-func (new, old)
- register tree new, old;
-{
- if (old->type == 0 || new->type == 0)
- {
- register tree t = old->type;
- if (t == 0)
- t = new->type;
- for (; t; t = t->chain )
- if (t->value)
- return 1;
- }
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-7.c b/gcc/testsuite/gcc.c-torture/compile/920428-7.c
deleted file mode 100644
index 69b1d979aa9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920428-7.c
+++ /dev/null
@@ -1 +0,0 @@
-x(float*x){int a[4],i=0,j;for(j=0;j<2;j++){f(a[i++]);f(a[i++]);}}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-1.c b/gcc/testsuite/gcc.c-torture/compile/920501-1.c
deleted file mode 100644
index 29e197341aa..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#ifndef NO_LABEL_VALUES
-a(){int**b[]={&&c};c:;}
-#else
-int x;
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-10.c b/gcc/testsuite/gcc.c-torture/compile/920501-10.c
deleted file mode 100644
index ecb5bb4151c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-10.c
+++ /dev/null
@@ -1 +0,0 @@
-x(y){return 8193*y;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-11.c b/gcc/testsuite/gcc.c-torture/compile/920501-11.c
deleted file mode 100644
index d636357e867..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-11.c
+++ /dev/null
@@ -1 +0,0 @@
-typedef struct{int s;}S;foo(){int i=(int)&(S){(void*)((int)&(S){1})};}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-12.c b/gcc/testsuite/gcc.c-torture/compile/920501-12.c
deleted file mode 100644
index 594e14178b9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-12.c
+++ /dev/null
@@ -1,5 +0,0 @@
-x(x){ return 3 + x;}
-a(x){int y[994]; return 3 + x;}
-b(x){int y[999]; return 2*(x + 3);}
-A(x){int y[9999];return 2*(x + 3);}
-B(x){int y[9949];return 3 + x;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-12.x b/gcc/testsuite/gcc.c-torture/compile/920501-12.x
deleted file mode 100644
index 61ba34933fb..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-12.x
+++ /dev/null
@@ -1,6 +0,0 @@
-# This test fails on HC11/HC12 when it is compiled without -mshort because
-# the stack arrays are too large. Force to use 16-bit ints for it.
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- set options "-mshort"
-}
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-13.c b/gcc/testsuite/gcc.c-torture/compile/920501-13.c
deleted file mode 100644
index b5a6798ecc2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-13.c
+++ /dev/null
@@ -1 +0,0 @@
-typedef struct{int i;}t;inline y(t u){}x(){t u;y(u);}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-15.c b/gcc/testsuite/gcc.c-torture/compile/920501-15.c
deleted file mode 100644
index 81fd66401d5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-15.c
+++ /dev/null
@@ -1 +0,0 @@
-x(a)double a;{int i;return i>a?i:i+1;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-16.c b/gcc/testsuite/gcc.c-torture/compile/920501-16.c
deleted file mode 100644
index f82b7524b24..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-16.c
+++ /dev/null
@@ -1 +0,0 @@
-f(n){struct z{int a,b[n],c[n];};}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-17.c b/gcc/testsuite/gcc.c-torture/compile/920501-17.c
deleted file mode 100644
index 05a4d408d50..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-17.c
+++ /dev/null
@@ -1 +0,0 @@
-x(){static const char x[]="x";char y[2];y[0]=x[1];}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-18.c b/gcc/testsuite/gcc.c-torture/compile/920501-18.c
deleted file mode 100644
index 70f7c0af505..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-18.c
+++ /dev/null
@@ -1,2 +0,0 @@
-union u{int i;float f;};
-x(p)int p;{union u x;for(x.i=0;x.i<p;x.i++)if(x.f>(float)3.0)break;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-19.c b/gcc/testsuite/gcc.c-torture/compile/920501-19.c
deleted file mode 100644
index 1671cc37e68..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-19.c
+++ /dev/null
@@ -1 +0,0 @@
-long long x=0;y(){x=0;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-2.c b/gcc/testsuite/gcc.c-torture/compile/920501-2.c
deleted file mode 100644
index 905f5ddb627..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-2.c
+++ /dev/null
@@ -1,11 +0,0 @@
-extern short distdata[64][64], taxidata[64][64];
-extern short PieceList[2][64];
-
-int
-ScoreKBNK (short int winner, short int king1, short int king2)
-{
- register short s;
-
- s = taxidata[king1][king2] + distdata[PieceList[winner][1]][king2];
- return s;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-20.c b/gcc/testsuite/gcc.c-torture/compile/920501-20.c
deleted file mode 100644
index 170d0501761..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-20.c
+++ /dev/null
@@ -1 +0,0 @@
-int*f(x)int*x;{if(x[4]){int h[1];if(setjmp(h))return x;}}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-21.c b/gcc/testsuite/gcc.c-torture/compile/920501-21.c
deleted file mode 100644
index 4a9f05a1b20..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-21.c
+++ /dev/null
@@ -1,3 +0,0 @@
-typedef unsigned short t;
-struct foo{t d;};
-int bar(d)t d;{struct foo u;u.d=d;return(int)(&u);}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-22.c b/gcc/testsuite/gcc.c-torture/compile/920501-22.c
deleted file mode 100644
index b15d7984b1b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-22.c
+++ /dev/null
@@ -1 +0,0 @@
-x(){int y[]={};}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-23.c b/gcc/testsuite/gcc.c-torture/compile/920501-23.c
deleted file mode 100644
index 291d93e6c5d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-23.c
+++ /dev/null
@@ -1,16 +0,0 @@
-typedef unsigned char qi;
-typedef unsigned short hi;
-typedef unsigned long si;
-typedef unsigned long long di;
-subi(a){return 100-a;}
-add(a,b){return a+b;}
-mul(a){return 85*a;}
-memshift(p)unsigned*p;{unsigned x;for(;;){x=*p++>>16;if(x)return x;}}
-ldw(xp)si*xp;{return xp[4];}
-ldws_m(xp)si*xp;{si x;do{x=xp[3];xp+=3;}while(x);}
-postinc_si(p)si*p;{si x;for(;;){x=*p++;if(x)return x;}}
-preinc_si(p)si*p;{si x;for(;;){x=*++p;if(x)return x;}}
-postinc_di(p)di*p;{di x;for(;;){x=*p++;if(x)return x;}}
-preinc_di(p)di*p;{di x;for(;;){x=*++p;if(x)return x;}}
-inc_overlap(p,a)di*p;{do{p=*(di**)p;p=(di*)((int)p+4);}while(*p);}
-di move_di(p,p2)di*p,*p2;{di x=p;p2=((di*)x)[1];return p2[1];}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-3.c b/gcc/testsuite/gcc.c-torture/compile/920501-3.c
deleted file mode 100644
index 41ef87fbf7f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-3.c
+++ /dev/null
@@ -1,2 +0,0 @@
-struct{long long x:24,y:40;}v;
-x(){v.y=0;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-4.c b/gcc/testsuite/gcc.c-torture/compile/920501-4.c
deleted file mode 100644
index 9cd2fd7bd7a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-4.c
+++ /dev/null
@@ -1,49 +0,0 @@
-foo ()
-{
- int r0[8186 ];
- int r1[2 ];
- int r2[2 ];
- int bitm0[2 ];
- int bitm1[2 ];
- int bitm2[2 ];
-
- int i,j,k,m,n,m_max;
- int f;
- double fm,ft;
-
- while (1) {
-
- if (m%4 == 2)
- ++m;
-
- if (m_max != 0 && m > m_max)
- break;
-
- fm=m;
-
- r0[k=1]=0;
- bitm0[0] = 0;
-
- while ( n%f == 0 ) {
- while ( (ft != 0) && (ft < fm )) {
- bitm1[i] = 0;
- r1[i]=0;
- }
-
- while ( r0[i] != 0 && r1[i] != 0 ) {
- if ( r0[i] < r1[i] ) {
- bitm2[k] = bitm0[i];
- r2[k++]=0;
- }
- else if ( r0[i] > r1[j] ) {
- bitm2[k] = bitm1[j];
- r2[k++]=r1[j++];
- }
- else {
- bitm1[k] = bitm0[i];
- r2[k++]=r0[i++];
- }
- }
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-4.x b/gcc/testsuite/gcc.c-torture/compile/920501-4.x
deleted file mode 100644
index cf60af9be67..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-4.x
+++ /dev/null
@@ -1,6 +0,0 @@
-# This test fails on HC11/HC12 when it is compiled without -mshort because
-# the 'r0' array is too large. Force to use 16-bit ints for it.
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- set options "-mshort"
-}
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-6.c b/gcc/testsuite/gcc.c-torture/compile/920501-6.c
deleted file mode 100644
index d0a406381ff..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-6.c
+++ /dev/null
@@ -1 +0,0 @@
-x(y,z)float*y;{*y=z;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-7.c b/gcc/testsuite/gcc.c-torture/compile/920501-7.c
deleted file mode 100644
index aed88045e54..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-7.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#ifndef NO_LABEL_VALUES
-x(){if(&&e-&&b<0)x();b:goto*&&b;e:;}
-#else
-int x;
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-8.c b/gcc/testsuite/gcc.c-torture/compile/920501-8.c
deleted file mode 100644
index 68e33934d21..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-8.c
+++ /dev/null
@@ -1 +0,0 @@
-x(int*p){int x=p;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-9.c b/gcc/testsuite/gcc.c-torture/compile/920501-9.c
deleted file mode 100644
index 98a06000bf2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920501-9.c
+++ /dev/null
@@ -1 +0,0 @@
-short x(a)unsigned a;{a=32987799;return a;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920502-1.c b/gcc/testsuite/gcc.c-torture/compile/920502-1.c
deleted file mode 100644
index b576c6c990c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920502-1.c
+++ /dev/null
@@ -1 +0,0 @@
-extern void*t[];x(i){goto*t[i];}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920502-2.c b/gcc/testsuite/gcc.c-torture/compile/920502-2.c
deleted file mode 100644
index d3aa1e26d81..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920502-2.c
+++ /dev/null
@@ -1 +0,0 @@
-x(c){1LL<<c;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920520-1.c b/gcc/testsuite/gcc.c-torture/compile/920520-1.c
deleted file mode 100644
index 6b1cd7b17c4..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920520-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(){asm("%0"::"r"(1.5F));}g(){asm("%0"::"r"(1.5));}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920520-1.x b/gcc/testsuite/gcc.c-torture/compile/920520-1.x
deleted file mode 100644
index 3687bf6145d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920520-1.x
+++ /dev/null
@@ -1,9 +0,0 @@
-set options "-S"
-
-# This does not work on m68hc11 due to the asm which forces a
-# float or a double to go in a register.
-
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- return 1
-}
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/920521-1.c b/gcc/testsuite/gcc.c-torture/compile/920521-1.c
deleted file mode 100644
index 95b949798dc..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920521-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(){asm("f":::"cc");}g(x,y){asm("g"::"%r"(x), "r"(y));}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920521-1.x b/gcc/testsuite/gcc.c-torture/compile/920521-1.x
deleted file mode 100644
index 4cfce33b2dc..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920521-1.x
+++ /dev/null
@@ -1,2 +0,0 @@
-set options "-S"
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/920529-1.c b/gcc/testsuite/gcc.c-torture/compile/920529-1.c
deleted file mode 100644
index 0f50309a27c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920529-1.c
+++ /dev/null
@@ -1,21 +0,0 @@
-void
-f (a, b, m, n)
- unsigned short *a, *b;
- int m, n;
-{
- unsigned long acc;
- int qn;
- int j;
-
- abort ();
-
- acc = a[m - 1];
- a += 0;
- for (j = qn - 1; j >= 0; j = j - 1)
- {
- acc = (acc << 16) | a[j];
- acc = acc % *b;
- }
-
- return;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920608-1.c b/gcc/testsuite/gcc.c-torture/compile/920608-1.c
deleted file mode 100644
index cae1978e6c0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920608-1.c
+++ /dev/null
@@ -1,25 +0,0 @@
-foo (p)
- int *p;
-{
- int x;
- int a;
-
- a = p[0];
- x = a + 5;
- a = -1;
- p[0] = x - 5;
- return a;
-}
-
-bar (p)
-{
- short x;
- int a;
-
- x = ((short *) p)[1];
-#if INHIBIT_COMBINE
- ((short *) p)[0] = x;
-#endif
-
- return (x < 45);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920611-2.c b/gcc/testsuite/gcc.c-torture/compile/920611-2.c
deleted file mode 100644
index e54b1cda5fc..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920611-2.c
+++ /dev/null
@@ -1,53 +0,0 @@
-typedef unsigned char uchar;
-typedef unsigned short ushort;
-typedef unsigned int uint;
-typedef unsigned long ulong;
-
-static unsigned long S[1][1]={0x00820200};
-
-static int body(out0,out1,ks,Eswap0,Eswap1)
-ulong *out0,*out1;
-int *ks;
-ulong Eswap0,Eswap1;
-{
- register unsigned long l,r,t,u,v;
- register unsigned long *s;
- register int i,j;
- register unsigned long E0,E1;
-
- l=0;
- r=0;
-
- s=(ulong *)ks;
- E0=Eswap0;
- E1=Eswap1;
-
- for (i=0; i<(16 *2); i+=4)
- {
- v=(r^(r>>16));
- u=(v&E0);
- v=(v&E1);
- u=(u^(u<<16))^r^s[ i ];
- t=(v^(v<<16))^r^s[ i+1];
- t=(t>>4)|(t<<28);
- l^=S[1][(t)&0x3f]| S[3][(t>> 8)&0x3f]| S[5][(t>>16)&0x3f]| S[7][(t>>24)&0x3f]| S[0][(u)&0x3f]| S[2][(u>> 8)&0x3f]| S[4][(u>>16)&0x3f]| S[6][(u>>24)&0x3f];
- v=(l^(l>>16));
- u=(v&E0);
- v=(v&E1);
- u=(u^(u<<16))^l^s[ i+2 ];
- t=(v^(v<<16))^l^s[ i+2+1];
- t=(t>>4)|(t<<28);
- r^= S[1][(t )&0x3f];
- }
- t=l;
- l=r;
- r=t;
-
- t=r;
- r=(l>>1)|(l<<31);
- l=(t>>1)|(t<<31);
-
- *out0=l;
- *out1=r;
- return(0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920615-1.c b/gcc/testsuite/gcc.c-torture/compile/920615-1.c
deleted file mode 100644
index 9b1c6aceef3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920615-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f()
-{
- int x[20] = {[0] = 5, [10] = 12};
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920617-1.c b/gcc/testsuite/gcc.c-torture/compile/920617-1.c
deleted file mode 100644
index 2d84e8d84f8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920617-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(){double*xp,y;*xp++=sqrt(y);}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920617-2.c b/gcc/testsuite/gcc.c-torture/compile/920617-2.c
deleted file mode 100644
index 3a5450982c0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920617-2.c
+++ /dev/null
@@ -1 +0,0 @@
-f(a,b,c,d)float a[],d;int b[],c;{}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920623-1.c b/gcc/testsuite/gcc.c-torture/compile/920623-1.c
deleted file mode 100644
index 9b6ad51e102..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920623-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-int f(int c){return f(c--);}
-g(){}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920624-1.c b/gcc/testsuite/gcc.c-torture/compile/920624-1.c
deleted file mode 100644
index 8b4d2979d26..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920624-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-int B[],Q[];
-f(){int s;for(s=0;s<=1;s++)switch(s){case 2:case 3:++B[s];case 4:case 5:++Q[s];}}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920625-1.c b/gcc/testsuite/gcc.c-torture/compile/920625-1.c
deleted file mode 100644
index 720d43fd42f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920625-1.c
+++ /dev/null
@@ -1,279 +0,0 @@
-typedef unsigned long int unsigned_word;
-typedef signed long int signed_word;
-typedef unsigned_word word;
-
-typedef enum { ADD, ADD_CI, ADD_CO, ADD_CIO, SUB, SUB_CI, SUB_CO,
-SUB_CIO, ADC_CI, ADC_CO, ADC_CIO, AND, IOR, XOR, ANDC, IORC, EQV,
-NAND, NOR, AND_RC, IOR_RC, XOR_RC, ANDC_RC, IORC_RC, EQV_RC, NAND_RC,
-NOR_RC, AND_CC, IOR_CC, XOR_CC, ANDC_CC, IORC_CC, EQV_CC, NAND_CC,
-NOR_CC, LSHIFTR, ASHIFTR, SHIFTL, LSHIFTR_CO, ASHIFTR_CO, SHIFTL_CO,
-ROTATEL, ROTATEL_CO, ROTATEXL_CIO, ASHIFTR_CON, EXTS1, EXTS2, EXTU1,
-EXTU2, CLZ, CTZ, FF1, FF0, ABSVAL, NABSVAL, CMP, CPEQ, CPGE, CPGEU,
-CPGT, CPGTU, CPLE, CPLEU, CPLT, CPLTU, CPNEQ, CMPPAR, DOZ, COPY,
-EXCHANGE, COMCY, } opcode_t;
-
-typedef struct
-{
- opcode_t opcode:8;
- unsigned int s1:8;
- unsigned int s2:8;
- unsigned int d:8;
-} insn_t;
-
-enum prune_flags
-{
- NO_PRUNE = 0,
- CY_0 = 1,
- CY_1 = 2,
- CY_JUST_SET = 4,
-};
-
-int flag_use_carry = 1;
-
-inline
-recurse(opcode_t opcode,
- int d,
- int s1,
- int s2,
- word v,
- int cost,
- insn_t *sequence,
- int n_insns,
- word *values,
- int n_values,
- const word goal_value,
- int allowed_cost,
- int cy,
- int prune_flags)
-{
- insn_t insn;
-
- allowed_cost -= cost;
-
- if (allowed_cost > 0)
- {
- word old_d;
-
- old_d = values[d];
- values[d] = v;
-
- insn.opcode = opcode;
- insn.s1 = s1;
- insn.s2 = s2;
- insn.d = d;
- sequence[n_insns] = insn;
-
- synth(sequence, n_insns + 1, values, n_values,
- goal_value, allowed_cost, cy, prune_flags);
-
- values[d] = old_d;
- }
- else if (goal_value == v)
- {
- insn.opcode = opcode;
- insn.s1 = s1;
- insn.s2 = s2;
- insn.d = d;
- sequence[n_insns] = insn;
- test_sequence(sequence, n_insns + 1);
- }
-}
-
-synth(insn_t *sequence,
- int n_insns,
- word *values,
- int n_values,
- word goal_value,
- int allowed_cost,
- int ci,
- int prune_hint)
-{
- int s1, s2;
- word v, r1, r2;
- int co;
- int last_dest;
-
- if (n_insns > 0)
- last_dest = sequence[n_insns - 1].d;
- else
- last_dest = -1;
- if (ci >= 0 && flag_use_carry)
- {
- for (s1 = n_values - 1; s1 >= 0; s1--)
- {
- r1 = values[s1];
- for (s2 = s1 - 1; s2 >= 0; s2--)
- {
- r2 = values[s2];
-
- if (allowed_cost <= 1 && (prune_hint & CY_JUST_SET) == 0)
- {
- if (last_dest >= 0 && s1 != last_dest && s2 != last_dest)
- continue;
- }
- do { word __d = ( r1) + ( r2) + (( ci)); ( co) = ( ci) ? __d <= ( r1) : __d < ( r1); (v) = __d; } while (0);
- recurse(ADD_CIO, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- do { word __d = ( r1) + ( r2) + (( ci)); ( co) = ( ci); (v) = __d; } while (0);
- recurse(ADD_CI, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- do { word __d = ( r1) - ( r2) - (( ci)); ( co) = ( ci) ? __d >= ( r1) : __d > ( r1); (v) = __d; } while (0);
- recurse(SUB_CIO, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- do { word __d = ( r2) - ( r1) - (( ci)); ( co) = ( ci) ? __d >= ( r2) : __d > ( r2); (v) = __d; } while (0);
- recurse(SUB_CIO, n_values, s2, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
-
- do { word __d = ( r1) - ( r2) - (( ci)); ( co) = ( ci); (v) = __d; } while (0);
- recurse(SUB_CI, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- do { word __d = ( r2) - ( r1) - (( ci)); ( co) = ( ci); (v) = __d; } while (0);
- recurse(SUB_CI, n_values, s2, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- }
- }
- }
- for (s1 = n_values - 1; s1 >= 0; s1--)
- {
- r1 = values[s1];
- for (s2 = s1 - 1; s2 >= 0; s2--)
- {
- r2 = values[s2];
-
- if (allowed_cost <= 1)
- {
- if (last_dest >= 0 && s1 != last_dest && s2 != last_dest)
- continue;
- }
-
- do { word __d = ( r1) + ( r2); ( co) = __d < ( r1); (v) = __d; } while (0);
- recurse(ADD_CO, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
-
- ((v) = ( r1) + ( r2), ( co) = ( ci));
- recurse(ADD, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- do { word __d = ( r1) - ( r2); ( co) = __d > ( r1); (v) = __d; } while (0);
- recurse(SUB_CO, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- do { word __d = ( r2) - ( r1); ( co) = __d > ( r2); (v) = __d; } while (0);
- recurse(SUB_CO, n_values, s2, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- ((v) = ( r1) - ( r2), ( co) = ( ci));
- recurse(SUB, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ( r2) - ( r1), ( co) = ( ci));
- recurse(SUB, n_values, s2, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- ((v) = ( r1) & ( r2), ( co) = ( ci));
- recurse(AND, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- ((v) = ( r1) | ( r2), ( co) = ( ci));
- recurse(IOR, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- ((v) = ( r1) ^ ( r2), ( co) = ( ci));
- recurse(XOR, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- ((v) = ( r1) & ~( r2), ( co) = ( ci));
- recurse(ANDC, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ( r2) & ~( r1), ( co) = ( ci));
- recurse(ANDC, n_values, s2, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ( r1) | ~( r2), ( co) = ( ci));
- recurse(IORC, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ( r2) | ~( r1), ( co) = ( ci));
- recurse(IORC, n_values, s2, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ( r1) ^ ~( r2), ( co) = ( ci));
- recurse(EQV, n_values, s1, s2, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- }
- }
- if (ci >= 0 && flag_use_carry)
- {
- for (s1 = n_values - 1; s1 >= 0; s1--)
- {
- r1 = values[s1];
-
- if (allowed_cost <= 1 && (prune_hint & CY_JUST_SET) == 0)
- {
-
- if (last_dest >= 0 && s1 != last_dest)
- continue;
- }
-
- do { word __d = ( r1) + ( r1) + (( ci)); ( co) = ( ci) ? __d <= ( r1) : __d < ( r1); (v) = __d; } while (0);
- recurse(ADD_CIO, n_values, s1, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
-
- do { word __d = ( r1) + ( r1) + (( ci)); ( co) = ( ci); (v) = __d; } while (0);
- recurse(ADD_CI, n_values, s1, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- do { word __d = ( r1) + ( -1 ) + (( ci)); ( co) = ( ci) ? __d <= ( r1) : __d < ( r1); (v) = __d; } while (0);
- recurse(ADD_CIO, n_values, s1, (0x20 + -1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
-
- do { word __d = ( r1) + ( 0 ) + (( ci)); ( co) = ( ci) ? __d <= ( r1) : __d < ( r1); (v) = __d; } while (0);
- recurse(ADD_CIO, n_values, s1, (0x20 + 0) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- do { word __d = ( 0 ) - ( r1) - (( ci)); ( co) = ( ci) ? __d >= ( 0 ) : __d > ( 0 ); (v) = __d; } while (0);
- recurse(SUB_CIO, n_values, (0x20 + 0) , s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
-
- }
- }
- for (s1 = n_values - 1; s1 >= 0; s1--)
- {
- r1 = values[s1];
-
- if (allowed_cost <= 1)
- {
- if (last_dest >= 0 && s1 != last_dest)
- continue;
- }
- do { word __d = ( r1) + ( r1); ( co) = __d < ( r1); (v) = __d; } while (0);
- recurse(ADD_CO, n_values, s1, s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
-
- ((v) = ( r1) & ( 1 ), ( co) = ( ci));
- recurse(AND, n_values, s1, (0x20 + 1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- ((v) = ( r1) ^ ( 1 ), ( co) = ( ci));
- recurse(XOR, n_values, s1, (0x20 + 1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- ((v) = ( -1 ) - ( r1), ( co) = ( ci));
- recurse(SUB, n_values, (0x20 + -1) , s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- do { word __d = ( r1) + ( 1 ); ( co) = __d < ( r1); (v) = __d; } while (0);
- recurse(ADD_CO, n_values, s1, (0x20 + 1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- ((v) = ( r1) + ( 1 ), ( co) = ( ci));
- recurse(ADD, n_values, s1, (0x20 + 1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- do { word __d = ( r1) + ( -1 ); ( co) = __d < ( r1); (v) = __d; } while (0);
- recurse(ADD_CO, n_values, s1, (0x20 + -1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- do { word __d = ( r1) - ( 1 ); ( co) = __d > ( r1); (v) = __d; } while (0);
- recurse(SUB_CO, n_values, s1, (0x20 + 1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- do { word __d = ( 0 ) - ( r1); ( co) = __d > ( 0 ); (v) = __d; } while (0);
- recurse(SUB_CO, n_values, (0x20 + 0) , s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET);
- ((v) = ( 0 ) - ( r1), ( co) = ( ci));
- recurse(SUB, n_values, (0x20 + 0) , s1, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ((unsigned_word) ( r1) >> (( 1 ) & (32 - 1)) ), ( co) = ( ci));
- recurse(LSHIFTR, n_values, s1, (0x20 + 1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ((signed_word) ( r1) >> (( 1 ) & (32 - 1)) ), ( co) = ( ci));
- recurse(ASHIFTR, n_values, s1, (0x20 + 1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ((signed_word) ( r1) << (( 1 ) & (32 - 1)) ), ( co) = ( ci));
- recurse(SHIFTL, n_values, s1, (0x20 + 1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ((unsigned_word) ( r1) >> (( 32 -1 ) & (32 - 1)) ), ( co) = ( ci));
- recurse(LSHIFTR, n_values, s1, (0x20 + 32 -1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- ((v) = ((signed_word) ( r1) >> (( 32 -1 ) & (32 - 1)) ), ( co) = ( ci));
- recurse(ASHIFTR, n_values, s1, (0x20 + 32 -1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- }
- if (ci >= 0 && flag_use_carry
- && (allowed_cost <= 1 ? ((prune_hint & CY_JUST_SET) != 0) : 1))
- {
- do { word __d = ( 0 ) + ( 0 ) + (( ci)); ( co) = ( ci) ? __d <= ( 0 ) : __d < ( 0 ); (v) = __d; } while (0);
- recurse(ADD_CIO, n_values, (0x20 + 0) , (0x20 + 0) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET | CY_0);
- do { word __d = ( 0 ) - ( 0 ) - (( ci)); ( co) = ( ci) ? __d >= ( 0 ) : __d > ( 0 ); (v) = __d; } while (0);
- recurse(SUB_CIO, n_values, (0x20 + 0) , (0x20 + 0) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- do { word __d = ( 0 ) - ( -1 ) - (( ci)); ( co) = ( ci) ? __d >= ( 0 ) : __d > ( 0 ); (v) = __d; } while (0);
- recurse(SUB_CIO, n_values, (0x20 + 0) , (0x20 + -1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, CY_JUST_SET | CY_1);
- do { word __d = ( 0 ) + ( -1 ) + (( ci)); ( co) = ( ci) ? __d <= ( 0 ) : __d < ( 0 ); (v) = __d; } while (0);
- recurse(ADD_CIO, n_values, (0x20 + 0) , (0x20 + -1) , v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- }
-
- if (allowed_cost > 1)
- {
- ((v) = ( 0x80000000 ), ( co) = ( ci));
- recurse(COPY, n_values, (0x20 - 2) , 0, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- ((v) = ( -1 ), ( co) = ( ci));
- recurse(COPY, n_values, (0x20 + -1) , 0, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
-
- ((v) = ( 1 ), ( co) = ( ci));
- recurse(COPY, n_values, (0x20 + 1) , 0, v, 1, sequence, n_insns, values, n_values + 1, goal_value, allowed_cost, co, prune_hint & ~CY_JUST_SET);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920625-1.x b/gcc/testsuite/gcc.c-torture/compile/920625-1.x
deleted file mode 100644
index 08a5f6771c7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920625-1.x
+++ /dev/null
@@ -1,25 +0,0 @@
-# The problem on IA-64 is that if-conversion creates a sequence
-#
-# (p17) cmp.geu p6, p7 = r48, r15
-# (p16) cmp.gtu p6, p7 = r48, r15
-#
-# where p16 and p17 are complemenary, but the assembler DV validation
-# code doesn't recognize that p6 and p7 are complimentary, and so
-# we end up warning for a later use
-#
-# (p6) addl r14 = 1, r0
-# (p7) mov r14 = r0
-#
-# that appears to be a WAW violation.
-
-set torture_eval_before_compile {
-
- set compiler_conditional_xfail_data {
- "missing .pred.rel.mutex directive" \
- "ia64-*-*" \
- { "-O1" "-O2" "-O3" "-Os" } \
- { "" }
- }
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/920625-2.c b/gcc/testsuite/gcc.c-torture/compile/920625-2.c
deleted file mode 100644
index 1466285f88e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920625-2.c
+++ /dev/null
@@ -1,103 +0,0 @@
-typedef char * caddr_t;
-typedef unsigned Cursor;
-typedef char *String;
-typedef struct _WidgetRec *Widget;
-typedef char Boolean;
-typedef unsigned int Cardinal;
-typedef struct _XedwListReturnStruct {
- String string;
- int xedwList_index;
- struct _XedwListReturnStruct *next;
-} XedwListReturnStruct;
-static XedwListReturnStruct *return_list;
-static String srcdir, dstdir;
-char *strcpy();
- extern void setCursor(Cursor);
- extern void query_dialog(String, Boolean);
- extern Boolean directoryManagerNewDirectory(String);
-trashQueryResult(Widget w, Boolean delete, caddr_t call_data)
-{
- int execute(String, String, String, Boolean);
- extern void destroy_button_dialog(void);
- extern void changestate(Boolean);
-
- extern Cursor busy, left_ptr;
- extern String cwd;
- static void freeReturnStruct(void);
- String rmstring;
- int status;
- XedwListReturnStruct *tmp;
- setCursor(busy);
- destroy_button_dialog();
- if (delete == 1) {
- rmstring = (("rm -fr") != ((void *)0) ? (strcpy((char*)XtMalloc((unsigned)strlen("rm -fr") + 1), "rm -fr")) : ((void *)0));
- tmp = return_list;
- while (tmp != ((void *)0)) {
- rmstring = (String) XtRealloc (rmstring, sizeof(char) *
- (strlen(rmstring) +
- strlen(tmp->string) + 5));
- sprintf(rmstring, "%s '%s'", rmstring, tmp->string);
- tmp = tmp->next;
- }
- if ((status = execute(((void *)0), "rm", rmstring, 1)) != 0) {
- XBell(XtDisplay(w), 100);
- query_dialog("Can't remove file", 0);
- }
- XtFree(rmstring);
-
- directoryManagerNewDirectory(cwd);
- } else {
- changestate(1);
- }
- setCursor(left_ptr);
- freeReturnStruct();
-}
-
-copyQueryResult(Widget w, Boolean copy, caddr_t call_data)
-{
- extern void destroy_button_dialog();
- extern void changestate(Boolean);
- extern Cursor busy, left_ptr;
- static void freeReturnStruct(void);
- int execute(String, String, String, Boolean);
- extern String cwd;
- String copystring;
- int status;
- Cardinal srclen, dstlen;
- XedwListReturnStruct *tmp;
- destroy_button_dialog();
- setCursor(busy);
- if (copy == 1) {
- srclen = strlen(srcdir);
- dstlen = strlen(dstdir);
- copystring = (("cp -r") != ((void *)0) ? (strcpy((char*)XtMalloc((unsigned)strlen("cp -r") + 1), "cp -r")) : ((void *)0));
- tmp = return_list;
- while (tmp != ((void *)0)) {
- copystring = (String) XtRealloc (copystring, sizeof(char) *
- (strlen(copystring) +
- strlen(tmp->string) +
- srclen + 6));
- sprintf(copystring, "%s '%s/%s'", copystring, srcdir, tmp->string);
- tmp = tmp->next;
- }
- copystring = (String) XtRealloc (copystring, sizeof(char) *
- (strlen(copystring) +
- dstlen + 5));
- sprintf(copystring, "%s '%s'", copystring, dstdir);
- if ((status = execute(((void *)0), "cp", copystring, 1)) != 0) {
- XBell(XtDisplay(w), 100);
- query_dialog("Can't copy file!", 0);
- }
- XtFree(copystring);
-
- directoryManagerNewDirectory(cwd);
- } else {
- changestate(1);
- }
- XtFree(srcdir);
- XtFree(dstdir);
- setCursor(left_ptr);
- freeReturnStruct();
-}
-
-freeReturnStruct(){}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920626-1.c b/gcc/testsuite/gcc.c-torture/compile/920626-1.c
deleted file mode 100644
index 54419866a1f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920626-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(x)unsigned x;{return x>>-5;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920701-1.c b/gcc/testsuite/gcc.c-torture/compile/920701-1.c
deleted file mode 100644
index 4302f9ea331..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920701-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(char*c){extern char a[],b[];return a+(b-c);}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920702-1.c b/gcc/testsuite/gcc.c-torture/compile/920702-1.c
deleted file mode 100644
index 23a5395b0cd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920702-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-int somevar;
-void
-yylex ()
-{
- register int result = 0;
- int num_bits = -1;
-
- if (((result >> -1) & 1))
- somevar = 99;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920706-1.c b/gcc/testsuite/gcc.c-torture/compile/920706-1.c
deleted file mode 100644
index 13b0ff1e0ba..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920706-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(){float i[2],o[1];g(o);return*o;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920710-2.c b/gcc/testsuite/gcc.c-torture/compile/920710-2.c
deleted file mode 100644
index dcaf1bea3cf..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920710-2.c
+++ /dev/null
@@ -1,36 +0,0 @@
-union u
-{
- struct {unsigned h, l;} i;
- double d;
-};
-
-foo (union u x)
-{
- while (x.i.h++)
- {
- while (x.i.l-- > 0)
- ;
- while (x.d++ > 0)
- ;
- }
-}
-
-union n
-{
- long long unsigned i;
- double d;
-};
-
-bar (union n x)
-{
- int i;
- for (i = 0; i < 100; i++)
- {
- while (--x.i > 0)
- ;
- while (++x.d > 0)
- ;
- }
- return x.i;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/920711-1.c b/gcc/testsuite/gcc.c-torture/compile/920711-1.c
deleted file mode 100644
index a5aa7df1127..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920711-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(a){a=(1,1)/2;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920721-1.c b/gcc/testsuite/gcc.c-torture/compile/920721-1.c
deleted file mode 100644
index 7ced611eb6f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920721-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-typedef struct{short ttype;float s;}T;
-short t[8][8];
-
-T f(T t2,T t1)
-{
- T x;
- if (t1.ttype == 1)
- x.ttype = t[t2.ttype][t1.ttype],
- x.s = 1;
- return x;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920723-1.c b/gcc/testsuite/gcc.c-torture/compile/920723-1.c
deleted file mode 100644
index d8734a6796e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920723-1.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#if defined(STACK_SIZE) && STACK_SIZE < 65536
-# define GITT_SIZE 75
-#endif
-
-#ifndef GITT_SIZE
-# define GITT_SIZE 150
-#endif
-
-typedef struct {
- double x, y;
-} vector_t;
-double sqrt();
-f(int count,vector_t*pos,double r,double *rho)
-{
- int i, j, miny, maxy, hy;
- float help, d;
- int gitt[GITT_SIZE][GITT_SIZE];
- int *data = (int *)malloc(count*sizeof(int));
- for (i = 0; i < count; i++)
- rho[i] = 0;
- for (i = 1; i < count; i++)
- for (hy = miny; hy<= maxy; hy++)
- while(j >=0) {
- d = pos[i].y - pos[j].y;
- if ( d <= r) {
- d = sqrt(d);
- rho[i] += help;
- }
- }
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/920729-1.c b/gcc/testsuite/gcc.c-torture/compile/920729-1.c
deleted file mode 100644
index de00be5af88..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920729-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-extern volatile int i;
-f(){int j;for(;;)j = i;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920806-1.c b/gcc/testsuite/gcc.c-torture/compile/920806-1.c
deleted file mode 100644
index 0928fe8a784..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920806-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(){short x=32000;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920808-1.c b/gcc/testsuite/gcc.c-torture/compile/920808-1.c
deleted file mode 100644
index 17510a96821..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920808-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(i){for(i=1;i<=2;({;}),i++){({;}),g();}}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920809-1.c b/gcc/testsuite/gcc.c-torture/compile/920809-1.c
deleted file mode 100644
index ad35e121003..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920809-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(x,y){memcpy (&x,&y,8192);}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920817-1.c b/gcc/testsuite/gcc.c-torture/compile/920817-1.c
deleted file mode 100644
index 31a57339ea9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920817-1.c
+++ /dev/null
@@ -1 +0,0 @@
-int v;static inline f(){return 0;}g(){return f();}void h(){return v++;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920820-1.c b/gcc/testsuite/gcc.c-torture/compile/920820-1.c
deleted file mode 100644
index 2bc0dbea07b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920820-1.c
+++ /dev/null
@@ -1 +0,0 @@
-long long f(double y){return y;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920821-1.c b/gcc/testsuite/gcc.c-torture/compile/920821-1.c
deleted file mode 100644
index 40a8c178f10..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920821-1.c
+++ /dev/null
@@ -1 +0,0 @@
-/* empty */
diff --git a/gcc/testsuite/gcc.c-torture/compile/920821-2.c b/gcc/testsuite/gcc.c-torture/compile/920821-2.c
deleted file mode 100644
index a69c0a901ba..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920821-2.c
+++ /dev/null
@@ -1,4 +0,0 @@
-typedef struct{int p[25];}t1;
-struct{t1 x,y;}y;
-t1 x[1];
-f(){y.x=*x;y.y=*x;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920825-1.c b/gcc/testsuite/gcc.c-torture/compile/920825-1.c
deleted file mode 100644
index 514d63f977f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920825-1.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#pragma pack(1)
-struct{unsigned short f1:5;unsigned short f2:6;}x;
-f(){x.f2=1;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920825-2.c b/gcc/testsuite/gcc.c-torture/compile/920825-2.c
deleted file mode 100644
index 9834aac1783..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920825-2.c
+++ /dev/null
@@ -1,3 +0,0 @@
-f(double*a,int m){int j;for(j=0;j<m;j++)a[j]=1;}
-g(double*a){int j;for(j=0;j<4;j++)a[j]=1;}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/920826-1.c b/gcc/testsuite/gcc.c-torture/compile/920826-1.c
deleted file mode 100644
index d19eff2cec6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920826-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(int*x){goto*(char)*x;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920828-1.c b/gcc/testsuite/gcc.c-torture/compile/920828-1.c
deleted file mode 100644
index 4893173423b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920828-1.c
+++ /dev/null
@@ -1 +0,0 @@
-char a[]={4,5};f(n){return a[n<2?n:0];}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920829-1.c b/gcc/testsuite/gcc.c-torture/compile/920829-1.c
deleted file mode 100644
index 593400bac92..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920829-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(double x){double y;y=x/0.5;if(y<0.1)y=1.0;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920831-1.c b/gcc/testsuite/gcc.c-torture/compile/920831-1.c
deleted file mode 100644
index ff2fd6360bf..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920831-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f(x){goto*(char)x;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920902-1.c b/gcc/testsuite/gcc.c-torture/compile/920902-1.c
deleted file mode 100644
index 6f6dcd5bf30..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920902-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-void f(int);
-void f(x)unsigned char x;{}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920909-1.c b/gcc/testsuite/gcc.c-torture/compile/920909-1.c
deleted file mode 100644
index 939aaf789e8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920909-1.c
+++ /dev/null
@@ -1 +0,0 @@
-long long f(long long a,long long b){return a<<b;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920917-1.c b/gcc/testsuite/gcc.c-torture/compile/920917-1.c
deleted file mode 100644
index ebe8200d48b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920917-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-inline f(x){switch(x){case 6:case 4:case 3:case 1:;}return x;}
-g(){f(sizeof("xxxxxx"));}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-1.c b/gcc/testsuite/gcc.c-torture/compile/920928-1.c
deleted file mode 100644
index 137363dc120..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920928-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-struct{int c;}v;
-static long i=((char*)&(v.c)-(char*)&v);
diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-2.c b/gcc/testsuite/gcc.c-torture/compile/920928-2.c
deleted file mode 100644
index a0964f90f44..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920928-2.c
+++ /dev/null
@@ -1,19 +0,0 @@
-typedef struct{struct{char*d;int b;}*i;}*t;
-double f();
-g(p)t p;
-{
- short x,y,delta,s,w,h,fx,fy,tx,ty;
- int q1,q2,q3,q4;
- h=f((ty-fy)/2.0+0.5);
- s=(((int)((short)(tx-fx))<(int)((short)(ty-fy)))?((short)(tx-fx)):((short)(ty-fy)))%2;
- delta=(((int)(w)<(int)(h))?(w):(h))-s;
- for(x=0;x<=delta;x++)
- for(y=1-s;y<=delta;y++){
- q1=((int)((*(p->i->d+(fx+w+x)/8+(fy+h+y)*p->i->b)&(1<<((fx+w+x)%8)))?1:0));
- q2=((int)((*(p->i->d+(fx+w+y)/8+(fy+h-s-x)*p->i->b)&(1<<((fx+w+y)%8)))?1:0));
- q3=((int)((*(p->i->d+(fx+w-s-x)/8+(fy+h-s-y)*p->i->b)&(1<<((fx+w-s-x)%8)))?1:0));
- q4=((int)((*(p->i->d+(fx+w-s-y)/8+(fy+h+x)*p->i->b)&(1<<((fx+w-s-y)%8)))?1:0));
- if(q4!=q1)
- ff(p,fx+w-s-y,fy+h+x);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-3.c b/gcc/testsuite/gcc.c-torture/compile/920928-3.c
deleted file mode 100644
index 583dc69b74c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920928-3.c
+++ /dev/null
@@ -1,19 +0,0 @@
-f (int phaseone)
-{
- typedef struct
- {
- unsigned char *p;
- }
- FILE;
- FILE b[2];
- static unsigned char xchr[2];
- int j;
- int for_end;
- if (phaseone)
- {
- if (j <= for_end)
- do
- *(b[1].p) = xchr[j];
- while (j++ < 10);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-4.c b/gcc/testsuite/gcc.c-torture/compile/920928-4.c
deleted file mode 100644
index 348de654f30..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920928-4.c
+++ /dev/null
@@ -1,113 +0,0 @@
-typedef unsigned char unsigned8;
-typedef unsigned short int unsigned16;
-typedef unsigned long int unsigned32;
-typedef char signed8;
-typedef short int signed16;
-typedef long int signed32;
-typedef unsigned32 boolean32;
-typedef unsigned long int error_status_t;
-typedef struct {
- unsigned32 time_low;
- unsigned16 time_mid;
- unsigned16 time_hi_and_version;
- unsigned8 clock_seq_hi_and_reserved;
- unsigned8 clock_seq_low;
- unsigned char node[6];
-} uuid_t;
-
-typedef unsigned32 bitset;
-typedef signed32 sec_timeval_sec_t;
-typedef struct {
- signed32 sec;
- signed32 usec;
-} sec_timeval_t;
-typedef signed32 sec_timeval_period_t;
-typedef signed32 sec_rgy_acct_key_t;
-
-typedef struct {
- uuid_t source;
- signed32 handle;
- boolean32 valid;
-} sec_rgy_cursor_t;
-typedef unsigned char sec_rgy_pname_t[257];
-typedef unsigned char sec_rgy_name_t[1025];
-
-typedef signed32 sec_rgy_override_t;
-typedef signed32 sec_rgy_mode_resolve_t;
-typedef unsigned char sec_rgy_unix_gecos_t[292];
-typedef unsigned char sec_rgy_unix_login_name_t[1025];
-typedef unsigned char sec_rgy_member_t[1025];
-typedef unsigned char sec_rgy_unix_passwd_buf_t[16];
-typedef struct sec_rgy_sid_t {
- uuid_t person;
- uuid_t group;
- uuid_t org;
-} sec_rgy_sid_t;
-typedef struct {
- signed32 person;
- signed32 group;
- signed32 org;
-} sec_rgy_unix_sid_t;
-typedef struct {
- sec_rgy_unix_login_name_t name;
- sec_rgy_unix_passwd_buf_t passwd;
- signed32 uid;
- signed32 gid;
- signed32 oid;
- sec_rgy_unix_gecos_t gecos;
- sec_rgy_pname_t homedir;
- sec_rgy_pname_t shell;
-} sec_rgy_unix_passwd_t;
-typedef unsigned char sec_rgy_member_buf_t[10250];
-typedef struct {
- sec_rgy_name_t name;
- signed32 gid;
- sec_rgy_member_buf_t members;
-} sec_rgy_unix_group_t;
-
-typedef struct {
- uuid_t site_id;
- sec_timeval_sec_t person_dtm;
- sec_timeval_sec_t group_dtm;
- sec_timeval_sec_t org_dtm;
-} rs_cache_data_t;
-
-typedef enum {
- rs_unix_query_name,
- rs_unix_query_unix_num,
- rs_unix_query_none
-} rs_unix_query_t;
-
-typedef struct {
- rs_unix_query_t query;
- union {
- struct {
- long int name_len;
- sec_rgy_name_t name;
- } name;
- long int unix_num;
- } tagged_union;
-} rs_unix_query_key_t;
-
-static unsigned long int IDL_offset_vec[] =
-{
- 0,
- sizeof(sec_rgy_unix_group_t),
- (unsigned long int) ((unsigned char *) &((sec_rgy_unix_group_t *) 0)->name - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((sec_rgy_unix_group_t *) 0)->gid - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((sec_rgy_unix_group_t *) 0)->members - (unsigned char *) 0),
- sizeof(rs_cache_data_t),
- (unsigned long int) ((unsigned char *) &((rs_cache_data_t *) 0)->site_id.time_low - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((rs_cache_data_t *) 0)->site_id.time_mid - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((rs_cache_data_t *) 0)->site_id.time_hi_and_version - (unsigned char *) 0),
- sizeof(sec_rgy_unix_passwd_t),
- (unsigned long int) ((unsigned char *) &((sec_rgy_cursor_t *) 0)->source.clock_seq_hi_and_reserved - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((sec_rgy_cursor_t *) 0)->source.clock_seq_low - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((sec_rgy_cursor_t *) 0)->source.node - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((sec_rgy_cursor_t *) 0)->handle - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((sec_rgy_cursor_t *) 0)->valid - (unsigned char *) 0),
- sizeof(struct {long int name_len; sec_rgy_name_t name;}),
- (unsigned long int) ((unsigned char *) &((struct {long int name_len; sec_rgy_name_t name;} *)0)->name_len
- - (unsigned char *) 0),
- (unsigned long int) ((unsigned char *) &((struct {long int name_len; sec_rgy_name_t name;} *)0)->name - (unsigned char *) 0),
-};
diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-5.c b/gcc/testsuite/gcc.c-torture/compile/920928-5.c
deleted file mode 100644
index 8c975f0c051..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920928-5.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* REPRODUCED:CC1:SIGNAL MACHINE:m68k OPTIONS:-fpcc-struct-return */
-struct b{};
-f(struct b(*f)())
-{
-struct b d=f();
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-6.c b/gcc/testsuite/gcc.c-torture/compile/920928-6.c
deleted file mode 100644
index 692191b1245..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/920928-6.c
+++ /dev/null
@@ -1,2 +0,0 @@
-struct{int c;}v;
-static short i=((char*)&(v.c)-(char*)&v);
diff --git a/gcc/testsuite/gcc.c-torture/compile/921004-1.c b/gcc/testsuite/gcc.c-torture/compile/921004-1.c
deleted file mode 100644
index a947229089f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921004-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-/* REPRODUCED:CC1:SIGNAL MACHINE:i386 OPTIONS: */
-long long f()
-{
-long long*g,*s;
-return*g+*s;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921011-1.c b/gcc/testsuite/gcc.c-torture/compile/921011-1.c
deleted file mode 100644
index 6cc707dc74c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921011-1.c
+++ /dev/null
@@ -1,27 +0,0 @@
-void
-fun (nb)
- int nb;
-{
- int th, h, em, nlwm, nlwS, nlw, sy;
-
- while (nb--)
- while (h--)
- {
- nlw = nlwm;
- while (nlw)
- {
- if (nlwS == 1)
- {
- }
- else
- if (nlwS == 1)
- {
- }
- nlwS--; nlw--;
- }
- if (em)
- nlwS--;
- if (++sy == th)
- sy = 0;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921011-2.c b/gcc/testsuite/gcc.c-torture/compile/921011-2.c
deleted file mode 100644
index bf11dad979f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921011-2.c
+++ /dev/null
@@ -1,65 +0,0 @@
-extern int foobar1 ();
-
-typedef struct
- {
- unsigned long colormap;
- unsigned long red_max;
- unsigned long red_mult;
- unsigned long green_max;
- unsigned long green_mult;
- unsigned long blue_max;
- unsigned long blue_mult;
- unsigned long base_pixel;
- unsigned long visualid;
- unsigned long killid;
- }
-frotz;
-
-int
-foobar (stdcmap, count)
- frotz **stdcmap;
- int *count;
-{
- register int i;
- frotz *data = ((void *) 0);
-
- unsigned long nitems;
- int ncmaps;
- int old_style = 0;
- unsigned long def_visual = 0L;
- frotz *cmaps;
-
-
- if ( foobar1 (&data) != 0)
- return 0;
- if (nitems < 10)
- {
- ncmaps = 1;
- if (nitems < 9)
- {
- }
- }
- else
- ncmaps = (nitems / 10);
-
- {
- register frotz *map;
- register frotz *prop;
-
- for (i = ncmaps, map = cmaps, prop = data; i > 0; i--, map++, prop++)
- {
- map->colormap = prop->colormap;
- map->red_max = prop->red_max;
- map->red_mult = prop->red_mult;
- map->green_max = prop->green_max;
- map->green_mult = prop->green_mult;
- map->blue_max = prop->blue_max;
- map->blue_mult = prop->blue_mult;
- map->base_pixel = prop->base_pixel;
- map->visualid = (def_visual ? def_visual : prop->visualid);
- map->killid = (old_style ? 0L : prop->killid);
- }
- }
- *stdcmap = cmaps;
- *count = ncmaps;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921012-1.c b/gcc/testsuite/gcc.c-torture/compile/921012-1.c
deleted file mode 100644
index 7b5cb6b9f17..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921012-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f()
-{
-g(({int x;0;}));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921012-2.c b/gcc/testsuite/gcc.c-torture/compile/921012-2.c
deleted file mode 100644
index 6f4de779549..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921012-2.c
+++ /dev/null
@@ -1,7 +0,0 @@
-struct foo {
-int a,b,c;
-};
-f(struct foo*a,struct foo*b)
-{
-*a=*b;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921013-1.c b/gcc/testsuite/gcc.c-torture/compile/921013-1.c
deleted file mode 100644
index 0d14cbc6bb6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921013-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f(int x,short y)
-{
-long z=y<0?x>0?x:0:y;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921019-1.c b/gcc/testsuite/gcc.c-torture/compile/921019-1.c
deleted file mode 100644
index 227bdc276fa..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921019-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-struct
-{
-int n:1,c:1;
-}p;
-
-f()
-{
-p.c=p.n=0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921021-1.c b/gcc/testsuite/gcc.c-torture/compile/921021-1.c
deleted file mode 100644
index 18dffeb9dd3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921021-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-void g();
-
-f()
-{
-int x=1;
-while(x)
-{
-x=h();
-if(x)
-g();
-}
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921024-1.c b/gcc/testsuite/gcc.c-torture/compile/921024-1.c
deleted file mode 100644
index e723246d6b2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921024-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-long long f(s,r)
-{
- return *(long long*)(s+r);
-}
-
-g(s,r)
-{
- *(long long*)(s+r)=0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921026-1.c b/gcc/testsuite/gcc.c-torture/compile/921026-1.c
deleted file mode 100644
index 18238de8332..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921026-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f(unsigned short*a)
-{
-a[0]=65535;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921103-1.c b/gcc/testsuite/gcc.c-torture/compile/921103-1.c
deleted file mode 100644
index 578e91aaf83..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921103-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-struct {
- unsigned int f1, f2;
-} s;
-
-f()
-{
- unsigned x, y;
- x = y = 0;
- while (y % 4)
- y++;
- g(&s.f2, s.f1 + x, 4);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921109-1.c b/gcc/testsuite/gcc.c-torture/compile/921109-1.c
deleted file mode 100644
index eda43451f25..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921109-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-typedef struct { double x, y; } p;
-typedef struct { int s; float r; } t;
-t *e, i;
-int i1;
-
-f(t *op)
-{
-int i2 = e->r;
-p pt;
-int c = g();
-t p;
-
-if (c)
-{
-i = *e;
-e -= 3;
-return 8;
-}
-if (op > e)
-return 1;
-op->r = pt.x;
-op->r = pt.y;
-p = *e;
-++e;
-e->r = i1, e->s = i1;
-*++e = p;
-return 3;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921111-1.c b/gcc/testsuite/gcc.c-torture/compile/921111-1.c
deleted file mode 100644
index 11b467460b3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921111-1.c
+++ /dev/null
@@ -1,40 +0,0 @@
-int ps;
-struct vp {
- int wa;
-};
-typedef struct vp *vpt;
-typedef struct vc {
- int o;
- vpt py[8];
-} *vct;
-struct n {
- int a;
-};
-struct nh {
- int x;
-};
-typedef struct np *npt;
-struct np {
- vct d;
- int di;
-};
-struct nh xhp;
-struct n np[3];
-
-f(dp)
- npt dp;
-{
- vpt *py;
- int a, l, o = 0;
- a = dp->d->o;
- if (dp->di < 0)
- l = ps;
-
- if ((int)o & 3)
- g();
-
- xhp.x = a;
- py = &dp->d->py[dp->di];
- if (o + l > ps)
- np[2].a = (int)(py[1])->wa;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921116-2.c b/gcc/testsuite/gcc.c-torture/compile/921116-2.c
deleted file mode 100644
index 9eac91cb5c2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921116-2.c
+++ /dev/null
@@ -1,9 +0,0 @@
-typedef struct {
- long l[5];
-} t;
-
-f(size)
-{
- t event;
- g(&(event.l[2 + size]), (3 - size) * 4);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921118-1.c b/gcc/testsuite/gcc.c-torture/compile/921118-1.c
deleted file mode 100644
index 857c74e74f1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921118-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-inline f(i)
-{
- h((long long) i * 2);
-}
-g()
-{
- f(9);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921126-1.c b/gcc/testsuite/gcc.c-torture/compile/921126-1.c
deleted file mode 100644
index a7b908b2ef0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921126-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-f()
-{
- long long a0, a1, a0s, val;
- int width;
- float d;
- if (d)
- ;
- if (a0s & (1LL << width))
- ;
- return a0 / a1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921202-1.c b/gcc/testsuite/gcc.c-torture/compile/921202-1.c
deleted file mode 100644
index 1287edc57b8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921202-1.c
+++ /dev/null
@@ -1,22 +0,0 @@
-f ()
-{
- long dx[2055];
- long dy[2055];
- long s1[2055];
- int x, y;
- int i;
- long s;
-
- for (;;)
- {
- s = 2055;
- g (s1, s);
- for (i = 0; i < 1; i++);
- dy[s] = 0x12345;
- for (i = 0; i < 1; i++);
- if (x != y || h (dx, dy, s) || dx[s] != 0x12345)
- {
- j (y);k (dy);
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921202-2.c b/gcc/testsuite/gcc.c-torture/compile/921202-2.c
deleted file mode 100644
index 97d482b633c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921202-2.c
+++ /dev/null
@@ -1,8 +0,0 @@
-f(x, c)
-{
- for (;;)
- {
- if (x << c) break;
- x++;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921203-1.c b/gcc/testsuite/gcc.c-torture/compile/921203-1.c
deleted file mode 100644
index 50fe3eb0b6f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921203-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-char dispstr[];
-f()
-{
- strcpy(dispstr,"xxxxxxxxxxx");
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921203-2.c b/gcc/testsuite/gcc.c-torture/compile/921203-2.c
deleted file mode 100644
index 929afb1bdde..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921203-2.c
+++ /dev/null
@@ -1,13 +0,0 @@
-typedef struct
-{
- char x;
-} s1;
-
-s1 f (int arg0,...)
-{
- int args;
- s1 back;
- va_start (args, arg0);
- va_end (args);
- return back;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921206-1.c b/gcc/testsuite/gcc.c-torture/compile/921206-1.c
deleted file mode 100644
index 10fa5ea6479..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921206-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-double sqrt(double),fabs(double),sin(double);
-int sxs;
-int sys;
-f()
-{
- int l;
- int sm = -52, sx = 52;
- char *smap;
- for (l = 0; l < 9; l++)
- {
- double g;
- int cx, cy, gx, gy, x, y;
- gx = 2 > g / 3 ? 2 : g / 3;
- gy = 2 > g / 3 ? 2 : g / 3;
- for (y = 0 > cy - gy ? 0 : cy - gy; y <= (sys - 1 < cy + gy ? sys : cy + gy); y++)
- {
- int sx = 0 > cx - gx ? 0 : cx - gx;
- short *ax = (short *) (y * sxs + sx);
-
- for (x = sx; x <= (sxs - 1 < cx + gx ? sxs - 1 : cx + gx); x++)
- {
- double c=2.25, z=sqrt(fabs(1-c)), cz=(c>1?0.0:-10)>z?c>1?0:1:z;
- }
- }
- }
- for (l = sm; l <= sx; l++)
- smap[l] = l > 0 ? 1 + foo(sin(.1 * l / sx)) : 1 - foo(sin(.1 * l / sm));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/921227-1.c b/gcc/testsuite/gcc.c-torture/compile/921227-1.c
deleted file mode 100644
index a49750c81af..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/921227-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#define k(a) #a
-char *s = k(k(1,2));
-char *t = k(#) k(#undef k) k(x);
-
-f(){}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930109-1.c b/gcc/testsuite/gcc.c-torture/compile/930109-1.c
deleted file mode 100644
index dbd15a1bd0a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930109-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-f(x)
- unsigned x;
-{
- static short c;
- return x>>c;
-}
-g(x)
- unsigned x;
-{
- static char c;
- return x>>c;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930109-2.c b/gcc/testsuite/gcc.c-torture/compile/930109-2.c
deleted file mode 100644
index 61e3a4df99f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930109-2.c
+++ /dev/null
@@ -1,11 +0,0 @@
-f(r)
-{
- int i;
- for (i = 0; i < 2; i++)
- {
- r+= (4 >> i*2);
- r+= (2 >> i*2);
- r+= (1 >> i*2);
- }
- return r;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930111-1.c b/gcc/testsuite/gcc.c-torture/compile/930111-1.c
deleted file mode 100644
index 28574191d13..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930111-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* 2.3.3 crashes on 386 with -traditional */
-f(a)
- char *a;
-{
- int d = strcmp(a,"-");
-
- while (vfork() < 0)
- ;
- return d;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930117-1.c b/gcc/testsuite/gcc.c-torture/compile/930117-1.c
deleted file mode 100644
index 83317cdd07b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930117-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f(x)
-{
- (*(void (*)())&x)();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930118-1.c b/gcc/testsuite/gcc.c-torture/compile/930118-1.c
deleted file mode 100644
index b29543c529e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930118-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-f()
-{
-__label__ l;
-l:p();
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/930120-1.c b/gcc/testsuite/gcc.c-torture/compile/930120-1.c
deleted file mode 100644
index 95ac43c07ed..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930120-1.c
+++ /dev/null
@@ -1,138 +0,0 @@
-union {
- short I[2];
- long int L;
- char C[4];
-} itolws;
-char *errflg;
-long int dot;
-short dotinc;
-long int expvf;
-
-char *
-f(fcount,ifp,itype,ptype)
- short fcount;
- char *ifp;
-{
- unsigned w;
- long int savdot, wx;
- char *fp;
- char c, modifier, longpr;
- union {
- double dval;
- struct {
- int i1;
- int i2;
- } ival;
- } dw;
- union {
- float fval;
- int ival;
- } fw;
- int gotdot = 0;
- while (fcount > 0) {
- fp = ifp;
- c = *fp;
- longpr = ((c >= 'A') & (c <= 'Z') | (c == 'f') | (c == '4') | (c == 'p') | (c == 'i'));
- if ((itype == 0) || (*fp == 'a')) {
- wx = dot;
- w = dot;
- } else {
- gotdot = 1;
- wx = get((int)dot, itype);
- if (!longpr) {
- w = (itolws.L=(wx), itolws.I[((dot)&3)>>1]);
- }
- }
- if (c == 'F') {
- dw.ival.i1 = wx;
- if (itype == 0) {
- dw.ival.i2 = expvf;
- }
- }
-
- modifier = *fp++;
- switch(modifier) {
- case ' ' :
- case '\t' :
- break;
- case 't':
- case 'T':
- printf("%T",fcount);
- return(fp);
- case 'r':
- case 'R':
- printf("%M",fcount);
- return(fp);
- case 'k':
- printf("%k",w);
- break;
- case 'K':
- printf("%K",wx);
- break;
- case 'a':
- psymoff(dot,ptype,":%16t");
- dotinc = 0;
- break;
- case 'p':
- psymoff(0,ptype,"%16t");
- break;
- case 'u':
- printf("%-8u",w);
- break;
- case 'U':
- printf("%-16U",wx); break;
- case 'c':
- case 'C':
- if (modifier == 'C') {
- printesc((int)(itolws.L=(wx), itolws.C[(dot)&3]));
- } else {
- printc((char)(itolws.L=(wx), itolws.C[(dot)&3]));
- }
- dotinc = 1;
- break;
- case 'b':
- printf("%-8x", (itolws.L=(wx), itolws.C[(dot)&3]));
- dotinc = 1;
- break;
- case 'B':
- printf("%-8o", (itolws.L=(wx), itolws.C[(dot)&3]));
- dotinc = 1;
- break;
- case 's':
- case 'S':
- savdot = dot;
- dotinc = 1;
- while ((c = (itolws.L=(wx), itolws.C[(dot)&3])) && (errflg == 0)) {
- dot = inkdot(1);
- if (modifier == 'S') {
- printesc(c);
- } else {
- printc(c);
- }
- endline();
- if (!(dot & 3))
- wx = get((int)dot, itype);
- }
- dotinc = dot - savdot + 1;
- dot = savdot;
- break;
- case 'i':
- if (gotdot) {
- wx = get((int)(dot & ~3), itype);
- }
- iDasm((int)(wx), (unsigned int)0, (unsigned int)(dot&~3));
- printc('\n');
- break;
- case 'f':
- fw.ival = wx;
- printf("%-16.9f", fw.fval);
- dotinc = 4;
- break;
- case 'F':
- printf("%-32.18F", dw.dval);
- dotinc = 8;
- break;
- }
- }
- return(fp);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930126-1.c b/gcc/testsuite/gcc.c-torture/compile/930126-1.c
deleted file mode 100644
index 8313c5c450b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930126-1.c
+++ /dev/null
@@ -1,74 +0,0 @@
-typedef unsigned T;
-typedef char Tchar;
-T mt (long, char *);
-T ms (long, char *);
-T mv (long, T, char);
-T cons (T, T);
-T decl (T * (*) (T *), char *);
-
-T*L92(T*),*L15(T*),*L14(T*),*L13(T*),*L12(T*),*L11(T*),*L10(T*),*L9(T*),*L8(T*),*L7(T*),*L6(T*),*L5(T*),*L4(T*),*L3(T*),*L2(T*),*L1(T*);
-
-static T *
-Ldata (T * my_pc)
-{
-int cc = (((* ((T *) (my_pc))) >> 16) & 0xFF);
-T B92, B91, B90, B15, B14, B13, B12, B11, B10, B9, B8, B7, B6, B5, B4, B3, B2, B1, tO7, tO6, tO5, tO4, tO3, tO2, tO1, tO0;
-T object = mv (168, 0, ((Tchar) 1));
-T * cb = (T *) (((T) (object & 0x3FF)) | 0x400);
-tO0 = mv (92, 0, ((Tchar) 1));
-B92 = decl (L92, "");
-B15 = decl (L15, "");
-B14 = decl (L14, "");
-B13 = decl (L13, "");
-B12 = decl (L12, "");
-B11 = decl (L11, "");
-B10 = decl (L10, "");
-B9 = decl (L9, "");
-B8 = decl (L8, "");
-B7 = decl (L7, "");
-B6 = decl (L6, "");
-B5 = decl (L5, "");
-B4 = decl (L4, "");
-B3 = decl (L3, "");
-B2 = decl (L2, "");
-B1 = decl (L1, "");
-cb[19] = ((((cc) & 0xFF) << 16) | (9 & 0xFF));
-cb[21] = ((((cc) & 0xFF) << 16) | ((10) & 0xFF));
-cb[23] = ((((cc) & 0xFF) << 16) | (11 & 0xFF));
-cb[25] = ((((cc) & 0xFF) << 16) | (12 & 0xFF));
-cb[27] = ((((cc) & 0xFF) << 16) | (13 & 0xFF));
-cb[29] = ((((cc) & 0xFF) << 16) | (14 & 0xFF));
-cb[31] = ((((cc) & 0xFF) << 16) | (15 & 0xFF));
-cb[35] = ((((cc) & 0xFF) << 16) | (17 & 0xFF));
-cb[36] = ((0x1A) << 26) | (((0x39) << 26) | 1) & 0x3FF;
-cb[39] = ms (24, ((char *) ""));
-cb[41] = ((0x1A) << 26) | (((0x39) << 26) | 1) & 0x3FF;
-cb[44] = 3;
-cb[46] = 2;
-cb[48] = 3;
-cb[50] = 6;
-cb[52] = 4;
-cb[146] = tO0;
-((T *) (((tO0 & 0x3FF)) | 0x400))[92] = B1;
-((T *) (((tO0 & 0x3FF)) | 0x400))[91] = B2;
-((T *) (((tO0 & 0x3FF)) | 0x400))[2] = B90;
-((T *) (((tO0 & 0x3FF)) | 0x400))[2] = B91;
-((T *) (((tO0 & 0x3FF)) | 0x400))[1] = B92;
-cb[58] = 0x2800 | (T) ((T *) ((B6 & 0x3FF) | 0x400) + 3);
-cb[57] = 0x2800 | (T) ((T *) ((B7 & 0x3FF) | 0x400) + 3) & ~0xC00;
-cb[56] = 0x2800 | (T) ((T *) ((B8 & 0x3FF) | 0x400) + 3) & ~0xC00;
-cb[55] = 0x2800 | (T) ((T *) ((B9 & 0x3FF) | 0x400) + 3) & ~0xC00;
-tO7 = mv (8, 0, ((Tchar) 1));
-tO4 = ms (9, ((char *) ""));
-tO3 = mv (58, 0, ((Tchar) 1));
-tO6 = ms (4, ((char *) ""));
-tO2 = mv (4, 0, ((Tchar) 1));
-tO5 = ms (4, ((char *) ""));
-tO1 = mv (28, 0, ((Tchar) 1));
-cb[165] = tO1;
-cb[163] = cons (((ms (10, ((char *) "")))), (cons (tO5, 0)));
-cb[162] = cons (1, (cons (2, 0)));
-cb[150] = cons (1, (cons (2, (cons (3, (cons (4, (cons (5, (cons (6, 0)))))))))));
-cb[148] = tO7;
-return cb;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930210-1.c b/gcc/testsuite/gcc.c-torture/compile/930210-1.c
deleted file mode 100644
index 47d2da2aca5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930210-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-f()
-{
- char c1, c2;
- char *p1, *p2;
-
- do {
- c1 = c2 = *p1++;
- while (c1--)
- *p2++ = *p1++;
- } while (c2);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930217-1.c b/gcc/testsuite/gcc.c-torture/compile/930217-1.c
deleted file mode 100644
index 70f4a4897c4..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930217-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-double g ();
-typedef union {
- struct {
- unsigned s:1, e:8, f:23;
- } u;
- float f;
-} s;
-
-f(x, n)
- float x;
-{
- ((s *)&x)->u.e -= n;
- x = g((double)x, -n);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930222-1.c b/gcc/testsuite/gcc.c-torture/compile/930222-1.c
deleted file mode 100644
index c6d6aa3b47d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930222-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-typedef struct
- {
- long i;
- double f;
- } T;
-
-f (T *n1, T *n2)
-{
- if (g (n2))
- return n1->i - n2->i;
- else
- {
- double f = n1->f - n2->i;
- return f == 0.0 ? 0 : (f > 0.0 ? 1 : -1);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930325-1.c b/gcc/testsuite/gcc.c-torture/compile/930325-1.c
deleted file mode 100644
index 24cea5027ab..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930325-1.c
+++ /dev/null
@@ -1,23 +0,0 @@
-typedef unsigned uint;
-
-inline
-g (uint *s, uint *d, uint c)
-{
- while (c != 0)
- {
- *--d = *--s;
- c--;
- }
-}
-
-f (uint *p1, uint c, uint *p2)
-{
- while (c > 0 && *p1 == 0)
- {
- p1++;
- c--;
- }
- if (c == 0)
- return 1;
- g (p2, p1, c);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930326-1.c b/gcc/testsuite/gcc.c-torture/compile/930326-1.c
deleted file mode 100644
index 97313d86aa9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930326-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-struct
-{
- char a, b, f[3];
-} s;
-
-long i = s.f-&s.b;
diff --git a/gcc/testsuite/gcc.c-torture/compile/930411-1.c b/gcc/testsuite/gcc.c-torture/compile/930411-1.c
deleted file mode 100644
index bb03c13fa07..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930411-1.c
+++ /dev/null
@@ -1,36 +0,0 @@
-int heap;
-
-g(){}
-
-f(int i1, int i2)
-{
- i1 = *(int*)(i1 + 4);
- if (i1 == 0)
- goto L4;
- else
- goto L9;
- L3:
- i2 = heap - 8;
- *(int*)i2 = 3;
- *(int*)(i2 + 4) = i1;
- heap -= 8;
- return i2;
- L4:
- i1 = g(i2);
- goto L5;
- L5:
- i1 = *(int*)(i1 + 4);
- if (i1 == 0)
- goto L7;
- else
- goto L8;
- L7:
- i1 = 0;
- goto L3;
- L8:
- i1 = 1;
- goto L3;
- L9:
- i1 = 1;
- goto L3;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930421-1.c b/gcc/testsuite/gcc.c-torture/compile/930421-1.c
deleted file mode 100644
index 01b465f7fec..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930421-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-double q(double);
-
-f (int **x, int *r, int *s, int a, int b, int c, int d)
-{
- int i, j, k, m, e, f, g, z[1024], y[2];
-
- e = g = 0;
- for (i = 0; i < a; i++)
- for (j = 0; j < b; j++)
- if (x[i][j])
- for (k = 0; k < c; k++)
- {
- f = q(1.5) + q(2.5);
- if (g < y[f])
- g = e;
- }
- for (m = 0; m < 1; m++)
- z[0] = m*2*d/3.0 - d;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930427-2.c b/gcc/testsuite/gcc.c-torture/compile/930427-2.c
deleted file mode 100644
index 53b633785ae..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930427-2.c
+++ /dev/null
@@ -1,9 +0,0 @@
-struct s {
- int f;
-};
-
-f (w, v0, v1, v2, v3)
- struct s *w;
-{
- g (v0 ? 1 : w->f, v1 ? v3 : v2);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930503-1.c b/gcc/testsuite/gcc.c-torture/compile/930503-1.c
deleted file mode 100644
index 6889e8b7aed..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930503-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-f (const char *s, char *d, unsigned l)
-{
- if (0)
- while (1);
- else
- while (--l >= 0)
- *d++ = *s++;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930503-2.c b/gcc/testsuite/gcc.c-torture/compile/930503-2.c
deleted file mode 100644
index 1b0ea34f038..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930503-2.c
+++ /dev/null
@@ -1,5 +0,0 @@
-f()
-{
- struct { char x; } r;
- g(r);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930506-1.c b/gcc/testsuite/gcc.c-torture/compile/930506-1.c
deleted file mode 100644
index 8c26ea3670c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930506-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-long long
-f (a)
- double a;
-{
- double b;
- unsigned long long v;
-
- b = a / 2.0;
- v = (unsigned) b;
- a -= (double) v;
- return v;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930506-2.c b/gcc/testsuite/gcc.c-torture/compile/930506-2.c
deleted file mode 100644
index e11e62f026f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930506-2.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef NO_TRAMPOLINES
-int f1()
-{
- { int ___() { foo(1); } bar(___); }
- return( { int ___() { foo(2); } bar(___);} );
-}
-
-int f2(int j)
-{
- { int ___() { foo(j); } bar(___); }
- return( { int ___() { foo(j); } bar(___);} );
-}
-#else
-int x;
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/930510-1.c b/gcc/testsuite/gcc.c-torture/compile/930510-1.c
deleted file mode 100644
index 8c46282626c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930510-1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-typedef long time_t;
-static __const int mon_lengths[2][12] = {
- 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
- 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
-};
-static time_t
-f (janfirst, year, rulep, offset)
- __const time_t janfirst;
- __const int year;
- register __const struct rule * __const rulep;
- __const long offset;
-{
- register int leapyear;
- register time_t value;
- register int i;
-
- value += mon_lengths[leapyear][i] * ((long) (60 * 60) * 24);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930513-1.c b/gcc/testsuite/gcc.c-torture/compile/930513-1.c
deleted file mode 100644
index 2e106ae43a9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930513-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-struct s {
- int f1 : 26;
- int f2 : 8;
-};
-
-f (struct s *x)
-{
- return x->f2++ == 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930513-2.c b/gcc/testsuite/gcc.c-torture/compile/930513-2.c
deleted file mode 100644
index a7f508c8266..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930513-2.c
+++ /dev/null
@@ -1,9 +0,0 @@
-double g ();
-
-f (x)
- double x;
-{
- x = .85;
- while (g () < x)
- ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930513-3.c b/gcc/testsuite/gcc.c-torture/compile/930513-3.c
deleted file mode 100644
index f8d4e60341c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930513-3.c
+++ /dev/null
@@ -1,9 +0,0 @@
-test ()
-{
- short *p, q[3];
- int x;
-
- p = q;
- for (x = 0; x < 3; x++)
- *p++ = 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930523-1.c b/gcc/testsuite/gcc.c-torture/compile/930523-1.c
deleted file mode 100644
index 5f2b5b5d7e3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930523-1.c
+++ /dev/null
@@ -1,54 +0,0 @@
-int v;
-
-f ()
-{
- unsigned long *a1, *a2;
- int vertex2;
- int c, x1, x2, dx1, dx2, dy1, dy2, e1, e2, s2;
- unsigned long m, b;
- int n;
- unsigned long r;
- int aba;
-
- do
- {
- if (dx2 >= dy2)
- dx2 = dx2 % dy2;
-
- if (dx2 >= dy2)
- {
- s2 = - (dx2 / dy2);
- dx2 = dx2 % dy2;
- }
- }
- while (vertex2 / 65536);
-
- for (;;)
- {
- c = x2;
- a2 = a1;
- if (v)
- a2 = 0;
-
- if (c + n)
- {
- m = b << (c * 8);
- *a2 = (*a2 & ~m) | (r & m);
- n += c;
-
- while (--n)
- {
- {
- }
- }
- }
-
- a1 = 0;
- x1 += 0;
- if (e1 += dx1)
- e1 -= dy1;
- x2 += s2;
- if (e2 += dx2)
- e2 -= dy2;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930525-1.c b/gcc/testsuite/gcc.c-torture/compile/930525-1.c
deleted file mode 100644
index 00c2e263b82..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930525-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-typedef struct foo foo_t;
-foo_t x;
-struct foo {
- int i;
-};
-
-foo_t x = { 10 };
diff --git a/gcc/testsuite/gcc.c-torture/compile/930527-1.c b/gcc/testsuite/gcc.c-torture/compile/930527-1.c
deleted file mode 100644
index 53e00e65ed1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930527-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-enum {e0, e1};
-
-int x[] =
-{
- [e0] = 0
-};
-
-f ()
-{
- switch (1)
- {
- case e0:
- case e1:
- break;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930529-1.c b/gcc/testsuite/gcc.c-torture/compile/930529-1.c
deleted file mode 100644
index 70b2cb8f90c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930529-1.c
+++ /dev/null
@@ -1,83 +0,0 @@
-struct r
-{
- int d1, d2;
-};
-
-struct km
-{
- int d;
-};
-
-struct f1
-{
- char *fn;
- char *fd;
- char *fs;
- char *ic;
- void (*ff) ();
-};
-
-int g ();
-
-int y;
-struct r *bs;
-int bv;
-
-void b ();
-char *w ();
-
-struct km **q;
-char **mns;
-int nm;
-struct f1 **z;
-
-f (char *km, char *h)
-{
- struct f1 *t;
- int map = midn(km, strlen(km));
- int V;
- int c;
- struct r r;
- struct f1 *cm;
-
- if (!g(&V, &cm, h, strlen(h)))
- {
- c = (cm - z[V]);
- goto L;
- }
-
- for (c = 0; c < nm; c++)
- if (!strcmp (h, mns[c]))
- {
- V = -1;
- goto L;
- }
-
- for (c = 0; c < y; c++)
- {
- if (!memcmp (&bs[c], &r, 8))
- goto L;
- }
-
- h = w (&r);
- if (!bv)
- {
- bs = g (8);
- t = (struct f1 *)g (20);
- }
- else
- {
- bs = g (bs, y * 8);
- z[bv] = cr (z[bv], (1 + y) * 20);
- t = &z[bv][y - 1];
- }
- bs[y - 1] = r;
- t->fs[0] = sp (y - 1);
- t->fs[1] = 0;
- t->ic = 0;
- t->fd = 0;
- t->fn = cs (h);
- t->ff = b;
- L:
- g (q[map], V, c);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930530-1.c b/gcc/testsuite/gcc.c-torture/compile/930530-1.c
deleted file mode 100644
index 848e0400ece..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930530-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-f ()
-{
- struct { char a, b; } x;
- g (x, x, x, x);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930602-1.c b/gcc/testsuite/gcc.c-torture/compile/930602-1.c
deleted file mode 100644
index 5a0eb2189ba..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930602-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-typedef struct {
- int f[8];
-} T;
-
-f (w, l, r)
- T *w;
- unsigned short l, r;
-{
- int i;
-
- for (i = l; i < r; i++)
- g (w->f[i]);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930603-1.c b/gcc/testsuite/gcc.c-torture/compile/930603-1.c
deleted file mode 100644
index 643cc52d4c2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930603-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-union u { union u *a; double d; };
-union u *s, g();
-
-f()
-{
- union u x = g();
-
- s[0] = *x.a;
- s[1] = g();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930607-1.c b/gcc/testsuite/gcc.c-torture/compile/930607-1.c
deleted file mode 100644
index 97c94b25ec3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930607-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-typedef void f ();
-typedef f *pf;
-long long i;
-
-g ()
-{
- long long p = i;
- ((pf) (long) p) ();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930611-1.c b/gcc/testsuite/gcc.c-torture/compile/930611-1.c
deleted file mode 100644
index c216c096523..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930611-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-float
-f (float a1)
-{
- union { float f; int l; } fl1;
- fl1.f = a1;
- return fl1.l ? 1.0 : a1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930618-1.c b/gcc/testsuite/gcc.c-torture/compile/930618-1.c
deleted file mode 100644
index 74c21572550..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930618-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-f (s)
-{
- int r;
-
- r = (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s)) | (!g(s));
-
- return r;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930621-1.c b/gcc/testsuite/gcc.c-torture/compile/930621-1.c
deleted file mode 100644
index 4199bbe0870..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930621-1.c
+++ /dev/null
@@ -1,38 +0,0 @@
-#if defined(STACK_SIZE) && (STACK_SIZE < 65536)
-# define BYTEMEM_SIZE 10000L
-#endif
-
-#ifndef BYTEMEM_SIZE
-# define BYTEMEM_SIZE 45000L
-#endif
-
-int bytestart[5000 + 1];
-unsigned char modtext[400 + 1];
-unsigned char bytemem[2][BYTEMEM_SIZE + 1];
-
-long
-modlookup (int l)
-{
- signed char c;
- long j;
- long k;
- signed char w;
- long p;
- while (p != 0)
- {
- while ((k < bytestart[p + 2]) && (j <= l) && (modtext[j] == bytemem[w][k]))
- {
- k = k + 1;
- j = j + 1;
- }
- if (k == bytestart[p + 2])
- if (j > l)
- c = 1;
- else c = 4;
- else if (j > l)
- c = 3;
- else if (modtext[j] < bytemem[w][k])
- c = 0;
- else c = 2;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930623-1.c b/gcc/testsuite/gcc.c-torture/compile/930623-1.c
deleted file mode 100644
index 4b5b90bd848..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930623-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-g (a, b) {}
-
-f (xx)
- void* xx;
-{
- __builtin_apply ((void*)g, xx, 200);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930702-1.c b/gcc/testsuite/gcc.c-torture/compile/930702-1.c
deleted file mode 100644
index 9f51dd876ee..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930702-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-f ()
-{
- {({});}
- return 1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930926-1.c b/gcc/testsuite/gcc.c-torture/compile/930926-1.c
deleted file mode 100644
index fcfa4fbc499..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930926-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-int f () { return 0; }
-
-void
-test ()
-{
- int j = { f() };
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930927-1.c b/gcc/testsuite/gcc.c-torture/compile/930927-1.c
deleted file mode 100644
index 81a4979f482..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/930927-1.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#include <stddef.h>
-
-wchar_t s[5] = L"abcd";
diff --git a/gcc/testsuite/gcc.c-torture/compile/931003-1.c b/gcc/testsuite/gcc.c-torture/compile/931003-1.c
deleted file mode 100644
index 922b14379c9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931003-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-f (n, a)
- int n;
- double a[];
-{
- double b[51];
- int i, j;
-
- i = 0;
-
- for (j = n - 1; j > 0; j--)
- b[i++] = 0;
-
- if (b[0] > b[i - 1])
- a[i] = b[i - 1];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931004-1.c b/gcc/testsuite/gcc.c-torture/compile/931004-1.c
deleted file mode 100644
index 0e741fd4ac0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931004-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-#define A "This is a long test that tests the structure initialization"
-#define B A,A
-#define C B,B,B,B
-#define D C,C,C,C
-int main()
-{
- char *subs[]={ D, D, D, D, D, D, D, D, D, D, D, D, D, D, D};
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931013-1.c b/gcc/testsuite/gcc.c-torture/compile/931013-1.c
deleted file mode 100644
index c237c0b7341..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931013-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-g ();
-
-f ()
-{
- long ldata[2];
- int seed;
-
- seed = (ldata[0]) + (ldata[1] << 16);
- g (seed);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931013-2.c b/gcc/testsuite/gcc.c-torture/compile/931013-2.c
deleted file mode 100644
index 8fc0db492ab..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931013-2.c
+++ /dev/null
@@ -1,20 +0,0 @@
-f (unsigned short Z[48])
-{
- int j;
- unsigned short t1, t2, t3, T[48];
- unsigned short *p = T + 48;
-
- for (j = 1; j < 8; j++)
- {
- t1 = *Z++;
- *--p = *Z++;
- *--p = t1;
- t1 = inv(*Z++);
- t2 = -*Z++;
- t3 = -*Z++;
- *--p = inv(*Z++);
- *--p = t2;
- *--p = t3;
- *--p = t1;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931013-3.c b/gcc/testsuite/gcc.c-torture/compile/931013-3.c
deleted file mode 100644
index e663b9acc1c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931013-3.c
+++ /dev/null
@@ -1,11 +0,0 @@
-struct s
-{
- int f;
-};
-
-struct s
-f ()
-{
- int addr;
- return *(struct s *) &addr;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931018-1.c b/gcc/testsuite/gcc.c-torture/compile/931018-1.c
deleted file mode 100644
index 7efe40ec094..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931018-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-typedef struct
-{
- int a, b;
-} T;
-
-f (T *bs)
-{
- long long x;
- x = ({
- union { T s; long long l; } u;
- u.s = *bs;
- u.l;
- });
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931031-1.c b/gcc/testsuite/gcc.c-torture/compile/931031-1.c
deleted file mode 100644
index 9015f54f7bf..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931031-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-struct s
-{
- int pad:1, no:1;
-};
-
-f (struct s *b, int c)
-{
- char d = b->no && c;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931102-1.c b/gcc/testsuite/gcc.c-torture/compile/931102-1.c
deleted file mode 100644
index a039c26331c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931102-1.c
+++ /dev/null
@@ -1,111 +0,0 @@
-char *e ();
-
-#define SET \
- if (d > *b++) d |= a; \
- if (b) b = e(b);
-
-xxx()
-{
- int a, d;
- char *b, *c;
-
- while (1) {
- while (1) {
- while (1) {
- if (a) {
- switch (a) {
- case 1:
- while (1) {
- SET
- do {
- SET
- } while (1);
- }
- case 2:
- while (1) {
- if (d) {
- do {
- SET
- } while (1);
- }
- else {
- do {
- SET
- } while (1);
- }
- }
- case 3:
- while (1) {
- if (d) {
- do {
- SET
- } while (1);
- }
- else {
- do {
- SET
- } while (1);
- }
- }
- case 4:
- while (1) {
- if (d) {
- do {
- SET
- } while (1);
- }
- else {
- do {
- SET
- } while (1);
- }
- }
- }
- }
- else {
- switch (a) {
- case 2:
- while (1) {
- if (d) {
- do {
- SET
- } while (1);
- }
- else {
- do {
- SET
- } while (1);
- }
- }
- case 3:
- while (1) {
- if (d) {
- do {
- SET
- } while (1);
- }
- else {
- do {
- SET
- } while (1);
- }
- }
- case 4:
- while (1) {
- if (d) {
- do {
- SET
- } while (1);
- }
- else {
- do {
- SET
- } while (1);
- }
- }
- }
- }
- }
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931102-2.c b/gcc/testsuite/gcc.c-torture/compile/931102-2.c
deleted file mode 100644
index f39b271645d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931102-2.c
+++ /dev/null
@@ -1,21 +0,0 @@
-typedef struct {
- int a;
-} VCR;
-
-typedef struct {
- VCR vcr[8];
-} VCRC;
-
-typedef struct {
- char vcr;
-} OWN;
-
-OWN Own[16];
-
-f (x, own)
- VCRC *x;
- OWN *own;
-{
- x[own->vcr / 8].vcr[own->vcr % 8].a--;
- x[own->vcr / 8].vcr[own->vcr % 8].a = x[own->vcr / 8].vcr[own->vcr % 8].a;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/931203-1.c b/gcc/testsuite/gcc.c-torture/compile/931203-1.c
deleted file mode 100644
index 3007ff582e0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/931203-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-v (a, i)
- unsigned *a, i;
-{
- a++[i] = 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/940611-1.c b/gcc/testsuite/gcc.c-torture/compile/940611-1.c
deleted file mode 100644
index 90f72486ada..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/940611-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-f ()
-{
- do
-L:;
- while (0);
- do
- ;
- while (0);
- goto L;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/940712-1.c b/gcc/testsuite/gcc.c-torture/compile/940712-1.c
deleted file mode 100644
index 10a6961dcb7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/940712-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f ()
-{
- return (*(volatile unsigned int *)8000) / 3;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/940718-1.c b/gcc/testsuite/gcc.c-torture/compile/940718-1.c
deleted file mode 100644
index 505280fa91e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/940718-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-extern double log (double) __attribute__ ((const));
-
-f (double x)
-{
- for (;;)
- exp(log(x));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-1.c b/gcc/testsuite/gcc.c-torture/compile/941014-1.c
deleted file mode 100644
index d31701572fc..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/941014-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-f (to)
- char *to;
-{
- unsigned int wch;
- register length;
- unsigned char tmp;
- unsigned int mult = 10;
-
- tmp = (wch>>(unsigned int)(length * mult));
- *to++ = (unsigned char)tmp;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-2.c b/gcc/testsuite/gcc.c-torture/compile/941014-2.c
deleted file mode 100644
index 01e9a672e88..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/941014-2.c
+++ /dev/null
@@ -1,37 +0,0 @@
-void
-f (n, ppt, xrot)
-{
- int tileWidth;
- int nlwSrc;
- int srcx;
- int v3, v4;
- register unsigned long ca1, cx1, ca2, cx2;
- unsigned long *pSrcLine;
- register unsigned long *pDst;
- register unsigned long *pSrc;
- register unsigned long b, tmp;
- unsigned long tileEndMask;
- int v1, v2;
- int tileEndPart;
- int needFirst;
- tileEndPart = 0;
- v1 = tileEndPart << 5;
- v2 = 32 - v1;
- while (n--)
- {
- if ((srcx = (ppt - xrot) % tileWidth) < 0)
- if (needFirst)
- if (nlwSrc == 1)
- {
- tmp = b;
- if (tileEndPart)
- b = (*pSrc & tileEndMask) | (*pSrcLine >> v1);
- }
- if (tileEndPart)
- b = (tmp << v1) | (b >> v2);
- if (v4 != 32)
- *pDst = (*pDst & ((tmp << v3) | (b >> v4) & ca1 ^ cx1)
- ^ (((tmp << v3) | (b >> v4)) & ca2 ^ cx2));
- *pDst = *pDst & tmp;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-3.c b/gcc/testsuite/gcc.c-torture/compile/941014-3.c
deleted file mode 100644
index 6dcb89395e3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/941014-3.c
+++ /dev/null
@@ -1,72 +0,0 @@
-typedef unsigned char byte;
-typedef unsigned int uint;
-typedef unsigned long ulong;
-typedef ulong gs_char;
-typedef struct gs_show_enum_s gs_show_enum;
-typedef struct gs_font_s gs_font;
-typedef struct gx_font_stack_item_s {
- gs_font *font;
-} gx_font_stack_item;
-typedef struct gx_font_stack_s {
- gx_font_stack_item items[1 + 5 ];
-} gx_font_stack;
-struct gs_show_enum_s {
- gx_font_stack fstack;
-};
-typedef enum {
- ft_composite = 0,
-} font_type;
-struct gs_font_s {
- font_type FontType;
-};
-typedef enum {
- fmap_escape = 3,
- fmap_shift = 8
- } fmap_type;
-typedef struct gs_type0_data_s {
- fmap_type FMapType;
-} gs_type0_data;
-gs_type0_next_char(register gs_show_enum *penum)
-{
- const byte *p;
- int fdepth;
- gs_font *pfont;
- gs_type0_data *pdata;
- uint fidx;
- gs_char chr;
- for (; pfont->FontType == ft_composite; )
- {
- fmap_type fmt;
- switch ( fmt )
- {
- do {} while (0);
- rdown:
- continue;
- case fmap_shift:
- p++;
- do {} while (0);
- goto rdown;
- }
- break;
- }
- up:
- while ( fdepth > 0 )
- {
- switch ( pdata->FMapType )
- {
- default:
- continue;
- case fmap_escape:
- fidx = *++p;
- do {} while (0);
- if ( fidx == chr && fdepth > 1 )
- goto up;
- down:
- fdepth--;
- do {} while (0);
- }
- break;
- }
- while ( (pfont = penum->fstack.items[fdepth].font)->FontType == ft_composite )
- ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-4.c b/gcc/testsuite/gcc.c-torture/compile/941014-4.c
deleted file mode 100644
index 9e673f37833..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/941014-4.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef NO_LABEL_VALUES
-f (int *re)
-{
- int *loops = 0, *loope = 0;
- unsigned dat0 = 0;
- static void *debug = &&firstdebug;
-
- firstdebug:
- g (loops, loope);
-
- if (dat0 & 1)
- re[(dat0 >> 2) & 3] = 0;
-}
-#else
-int x;
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/941019-1.c b/gcc/testsuite/gcc.c-torture/compile/941019-1.c
deleted file mode 100644
index 257b594c1b6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/941019-1.c
+++ /dev/null
@@ -1 +0,0 @@
-__complex__ long double sub (__complex__ long double cld) { return cld; }
diff --git a/gcc/testsuite/gcc.c-torture/compile/941111-1.c b/gcc/testsuite/gcc.c-torture/compile/941111-1.c
deleted file mode 100644
index 3f0c28bef12..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/941111-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-main ()
-{
- struct S { int i; char c; } obj1, obj2;
-
- foo ();
- if (obj1.c != obj2.c)
- bar ();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/941113-1.c b/gcc/testsuite/gcc.c-torture/compile/941113-1.c
deleted file mode 100644
index 5c2e0b68c56..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/941113-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-typedef void foo (void);
-
-f (x)
-{
- if (x)
- {
- const foo* v;
- (*v)();
- }
- else
- g (0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950122-1.c b/gcc/testsuite/gcc.c-torture/compile/950122-1.c
deleted file mode 100644
index 8dea7905093..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950122-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-int
-foo (int i, unsigned short j)
-{
- return j *= i;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950124-1.c b/gcc/testsuite/gcc.c-torture/compile/950124-1.c
deleted file mode 100644
index e723954a0c1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950124-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-f ()
-{
- if (g ())
- h ();
- else
- {
- do
- {
- return 0;
- break;
- }
- while (1);
- }
- return 1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950221-1.c b/gcc/testsuite/gcc.c-torture/compile/950221-1.c
deleted file mode 100644
index 14147638668..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950221-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-short v = -1;
-
-typedef struct
-{
- short network;
-} atype;
-
-void f ()
-{
- static atype config;
- atype *cp;
- short net;
- cp = &config;
- cp->network = (v == -1) ? 100 : v;
- net = cp->network;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950329-1.c b/gcc/testsuite/gcc.c-torture/compile/950329-1.c
deleted file mode 100644
index 7c047f5a59c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950329-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-f ()
-{
- int i;
- for (i = 1;; i = 0)
- {
- if (h ())
- {
- if (i)
- g ();
- g (h ());
- g (h ());
- }
- else
- {
- g ();
- break;
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950512-1.c b/gcc/testsuite/gcc.c-torture/compile/950512-1.c
deleted file mode 100644
index e43ec48d165..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950512-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-typedef unsigned short uint16;
-f (unsigned char *w)
-{
- w[2] = (uint16) ((((g (0) % 10000 + 42) & 0xFF) << 8) | (((g (0) % 10000 + 42) >> 8) & 0xFF)) & 0xFF,
- w[3] = (uint16) ((((g (0) % 10000 + 42) & 0xFF) << 8) | (((g (0) % 10000 + 42) >> 8) & 0xFF)) >> 8;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950530-1.c b/gcc/testsuite/gcc.c-torture/compile/950530-1.c
deleted file mode 100644
index 2b714e059bc..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950530-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f (int *s, int *t)
-{
- return (t - s) / 2;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950607-1.c b/gcc/testsuite/gcc.c-torture/compile/950607-1.c
deleted file mode 100644
index 851defce34c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950607-1.c
+++ /dev/null
@@ -1,38 +0,0 @@
-typedef struct {
- int component_id;
- int component_index;
- int h_samp_factor;
- int v_samp_factor;
-} jpeg_component_info;
-struct jpeg_common_struct {
- struct jpeg_error_mgr * err;
-};
-typedef struct jpeg_common_struct * j_common_ptr;
-typedef struct jpeg_compress_struct * j_compress_ptr;
-struct jpeg_compress_struct {
- struct jpeg_error_mgr * err;
- int num_components;
- jpeg_component_info * comp_info;
- int max_h_samp_factor;
- int max_v_samp_factor;
-};
-struct jpeg_error_mgr {
- int msg_code;
-};
-
-void
-jinit_downsampler (j_compress_ptr cinfo)
-{
- int ci;
- jpeg_component_info * compptr;
-
- for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
- ci++, compptr++) {
- if (compptr->h_samp_factor == cinfo->max_h_samp_factor &&
- compptr->v_samp_factor == cinfo->max_v_samp_factor) {
- } else if ((cinfo->max_h_samp_factor % compptr->h_samp_factor) == 0 &&
- (cinfo->max_v_samp_factor % compptr->v_samp_factor) == 0) {
- } else
- cinfo->err->msg_code = 0;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950610-1.c b/gcc/testsuite/gcc.c-torture/compile/950610-1.c
deleted file mode 100644
index 16d0d0e60f5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950610-1.c
+++ /dev/null
@@ -1 +0,0 @@
-f (int n, int a[2][n]) {}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950612-1.c b/gcc/testsuite/gcc.c-torture/compile/950612-1.c
deleted file mode 100644
index cb3cb0a59d6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950612-1.c
+++ /dev/null
@@ -1,134 +0,0 @@
-typedef enum
-{
- LODI,
- STO,
- ADDI,
- ADD,
- SUBI,
- SUB,
- MULI,
- MUL,
- DIVI,
- DIV,
- INC,
- DEC
-} INSN;
-
-f (pc)
- short *pc;
-{
- long long stack[16], *sp = &stack[16], acc = 0;
-
- for (;;)
- {
- switch ((INSN)*pc++)
- {
- case LODI:
- *--sp = acc;
- acc = ((long long)*pc++) << 32;
- break;
- case STO:
- return (acc >> 32) + (((((unsigned long long) acc) & 0xffffffff) & (1 << 31)) != 0);
- break;
- case ADDI:
- acc += ((long long)*pc++) << 32;
- break;
- case ADD:
- acc = *sp++ + acc;
- break;
- case SUBI:
- acc -= ((long long)*pc++) << 32;
- break;
- case SUB:
- acc = *sp++ - acc;
- break;
- case MULI:
- acc *= *pc++;
- break;
- case MUL:
- {
- long long aux;
- unsigned char minus;
-
- minus = 0;
- aux = *sp++;
- if (aux < 0)
- {
- minus = ~minus;
- aux = -aux;
- }
- if (acc < 0)
- {
- minus = ~minus;
- acc = -acc;
- }
- acc = ((((((unsigned long long) acc) & 0xffffffff) * (((unsigned long long) aux) & 0xffffffff)) >> 32)
- + ((((unsigned long long) acc) >> 32) * (((unsigned long long) aux) & 0xffffffff) + (((unsigned long long) acc) & 0xffffffff) + (((unsigned long long) aux) >> 32))
- + (((((unsigned long long) acc) >> 32) * (((unsigned long long) aux) >> 32)) << 32));
- if (minus)
- acc = -acc;
- }
- break;
- case DIVI:
- {
- short aux;
-
- aux = *pc++;
- acc = (acc + aux / 2) / aux;
- }
- break;
- case DIV:
- {
- long long aux;
- unsigned char minus;
-
- minus = 0;
- aux = *sp++;
- if (aux < 0)
- {
- minus = ~minus;
- aux = -aux;
- }
- if (acc < 0)
- {
- minus = ~minus;
- acc = -acc;
- }
-
- if (((unsigned long long)acc) == 0)
- acc = (unsigned long long)-1 / 2;
- else if ((((unsigned long long) ((unsigned long long)acc)) & 0xffffffff) == 0)
- acc = ((unsigned long long)aux) / (((unsigned long long) ((unsigned long long)acc)) >> 32);
- else if ((((unsigned long long) ((unsigned long long)acc)) >> 32) == 0)
- acc = ((((unsigned long long)aux) / ((unsigned long long)acc)) << 32)
- + ((((unsigned long long)aux) % ((unsigned long long)acc)) << 32) / ((unsigned long long)acc);
- else
- {
- unsigned char shift;
- unsigned long hi;
-
- shift = 32;
- hi = (((unsigned long long) ((unsigned long long)acc)) >> 32);
- do {
- if (hi & ((unsigned long)1 << (shift - 1)))
- break;
- } while (--shift != 0);
- printf("shift = %d\n", shift);
- acc = ((((unsigned long long)aux) / ((unsigned long long)acc)) << 32)
- + (((((unsigned long long)aux) % ((unsigned long long)acc)) << (32 - shift)) + ((((unsigned long long)acc) >> shift) / 2)) / (((unsigned long long)acc) >> shift);
- }
-
- if (minus)
- acc = -acc;
- }
- break;
- case INC:
- acc += 1;
- break;
- case DEC:
- acc -= 1;
- break;
- }
- printf("%08lx.%08lx\n", (long)(((unsigned long long) acc) >> 32) , (long)(((unsigned long long) acc) & 0xffffffff));
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950613-1.c b/gcc/testsuite/gcc.c-torture/compile/950613-1.c
deleted file mode 100644
index 8aa757f476c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950613-1.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef NO_LABEL_VALUES
-f ()
-{
- long *sp;
- long *pc;
-
- static void *dummy[] =
- {
- &&L1,
- &&L2,
- };
-
- L1:
- {
- float val;
- val = *(float *) sp;
- val = -val;
- *(float *) sp = val;
- goto *pc++;
- }
-
- L2:
- {
- float from;
- *(long long *) sp = from;
- goto *pc++;
- }
-}
-#else
-int x;
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/950618-1.c b/gcc/testsuite/gcc.c-torture/compile/950618-1.c
deleted file mode 100644
index 4229da4e9bf..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950618-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-static __inline__ int f () { return g (); }
-int g () { return f (); }
diff --git a/gcc/testsuite/gcc.c-torture/compile/950719-1.c b/gcc/testsuite/gcc.c-torture/compile/950719-1.c
deleted file mode 100644
index d3277fada4e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950719-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-typedef struct
-{
- int Header;
- char data[4092];
-} t_node;
-
-f (unsigned short rid, unsigned short record_length)
-{
- t_node tnode;
- g (rid, tnode.data + rid * record_length);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950729-1.c b/gcc/testsuite/gcc.c-torture/compile/950729-1.c
deleted file mode 100644
index cfdbad9206f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950729-1.c
+++ /dev/null
@@ -1,39 +0,0 @@
-static const char * const lcset = "0123456789abcdef";
-static const char * const ucset = "0123456789ABCDEF";
-
-char *
-f (char *buffer, long long value, char type)
-{
- int base, i;
-
- i = 128 - 1;
- buffer[i--] = '\0';
-
- switch (type)
- {
- case 'u':
- case 'o':
- case 'x':
- case 'X':
- if (type == 'u')
- base = 10;
- else if (type == 'o')
- base = 8;
- else
- base = 16;
-
- while (i >= 0)
- {
- if (type == 'X')
- buffer[i--] = ucset[((unsigned long long) value) % base];
- else
- buffer[i--] = lcset[((unsigned long long) value) % base];
-
- if ((value = ((unsigned long long) value) / base) == 0)
- break;
- }
- break;
- }
-
- return &buffer[++i];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950816-1.c b/gcc/testsuite/gcc.c-torture/compile/950816-1.c
deleted file mode 100644
index da849bbad0a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950816-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-f ()
-{
- unsigned char b[2];
- float f;
- b[0] = (unsigned char) f / 256;
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950816-2.c b/gcc/testsuite/gcc.c-torture/compile/950816-2.c
deleted file mode 100644
index 41e770d177d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950816-2.c
+++ /dev/null
@@ -1,8 +0,0 @@
-f ()
-{
- int i;
- float a,b,c;
- unsigned char val[2];
- i = func (&c);
- val[0] = c < a ? a : c >= 1.0 ? b : c;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950816-3.c b/gcc/testsuite/gcc.c-torture/compile/950816-3.c
deleted file mode 100644
index b3cb0fca377..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950816-3.c
+++ /dev/null
@@ -1,8 +0,0 @@
-f ()
-{
- int i;
- short x, z;
- for (i = 0; i <= 1; i++)
- x = i;
- return x + z;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950910-1.c b/gcc/testsuite/gcc.c-torture/compile/950910-1.c
deleted file mode 100644
index 1be2aa55e68..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950910-1.c
+++ /dev/null
@@ -1,22 +0,0 @@
-f (char *p)
-{
- char c;
-
- c = *++p;
- if (c != ' ')
- return 0;
- for (;;)
- {
- c = *p;
- if (g (c))
- p++;
- else
- {
- if (c == ' ')
- break;
- else
- return 0;
- }
- }
- return 1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950919-1.c b/gcc/testsuite/gcc.c-torture/compile/950919-1.c
deleted file mode 100644
index 8320f6d025a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950919-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#define empty
-#if empty#cpu(m68k)
-#endif
-
-f (){}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950921-1.c b/gcc/testsuite/gcc.c-torture/compile/950921-1.c
deleted file mode 100644
index 371c7d569c5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950921-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-f ()
-{
- union
- {
- signed char c;
- double d;
- } u;
-
- u.c = 1;
- u.c = 1;
- return u.c;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/950922-1.c b/gcc/testsuite/gcc.c-torture/compile/950922-1.c
deleted file mode 100644
index 73574f33e68..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/950922-1.c
+++ /dev/null
@@ -1,68 +0,0 @@
-struct sw {
- const void *x;
- int r;
-};
-struct sq {
- struct sw *q_w;
- int t;
- int z;
-};
-
-int
-f (int ch, char *fp, char *ap)
-{
- register int n;
- register char *cp;
- register struct sw *p;
- register int f;
- int prec;
- double _double;
- int expt;
- int ndig;
- char expstr[7];
- unsigned long long _uquad;
- struct sq q;
- struct sw w[8];
- static char zeroes[16];
-
- for (;;) {
- switch (ch) {
- case 'd':
- _double = (double) (ap += 8, *((double *) (ap - 8)));
- break;
- case 'o':
- goto nosign;
- case 'u':
- _uquad = (f & 0x020 ? (ap += 8, *((long long *) (ap - 8))) : f & 0x010 ? (ap += 4, *((long *) (ap - 4))) : f & 0x040 ? (long)(short)(ap += 4, *((int *) (ap - 4))) : (long)(ap += 4, *((int *) (ap - 4))));
- goto nosign;
- case 'x':
- _uquad = (f & 0x020 ? (ap += 8, *((long long *) (ap - 8))) : f & 0x010 ? (ap += 4, *((long *) (ap - 4))) : f & 0x040 ? (long)(unsigned short)(ap += 4, *((int *) (ap - 4))) : (long)(ap += 4, *((int *) (ap - 4))));
- nosign:
- if (_uquad != 0 || prec != 0);
- break;
- default:
- }
- if ((f & 0x100) == 0) {
- } else {
- if (ch >= 'f') {
- if (_double == 0) {
- if (expt < ndig || (f & 0x001) != 0) {
- { if ((n = (ndig - 1)) > 0) { while (n > 16) {{ p->x = (zeroes); p->r = 16; q.z += 16; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }} n -= 16; }{ p->x = (zeroes); p->r = n; q.z += n; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }}}}
- }
- } else if (expt <= 0) {
- { p->x = ("0"); p->r = 1; q.z += 1; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }}
- { p->x = 0; p->r = 1; q.z += 1; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }}
- { if ((n = (-expt)) > 0) { while (n > 16) {{ p->x = (zeroes); p->r = 16; q.z += 16; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }} n -= 16; }{ p->x = (zeroes); p->r = n; q.z += n; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }} }}
- { p->x = cp; p->r = ndig; q.z += ndig; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }}
- } else {
- { p->x = cp; p->r = expt; q.z += expt; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }}
- cp += expt;
- { p->x = ("."); p->r = 1; q.z += 1; p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }}
- { p->x = cp; p->r = (ndig-expt); q.z += (ndig-expt); p++; if (++q.t >= 8) { if (g(fp, &q)) goto error; p = w; }}
- }
- }
- }
- }
-
- error:
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/951004-1.c b/gcc/testsuite/gcc.c-torture/compile/951004-1.c
deleted file mode 100644
index 1ca60819cdd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/951004-1.c
+++ /dev/null
@@ -1,23 +0,0 @@
-typedef struct
-{
- short v, h;
-} S;
-
-S a;
-
-f (S pnt)
-{
- S mpnt, mtp;
-
- (&pnt)->v -= 1;
- mpnt = pnt;
- mtp = a;
- if (mtp.v != mpnt.v)
- {
- S tpnt;
-
- tpnt = mtp;
- mtp = mpnt;
- mpnt = tpnt;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/951106-1.c b/gcc/testsuite/gcc.c-torture/compile/951106-1.c
deleted file mode 100644
index 09cba20c1d0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/951106-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f (double a, double b)
-{
- g (a, 0, b);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/951116-1.c b/gcc/testsuite/gcc.c-torture/compile/951116-1.c
deleted file mode 100644
index 100d6902a72..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/951116-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-f ()
-{
- long long i;
- int j;
- long long k = i = j;
-
- int inner () {return j + i;}
- return k;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/951128-1.c b/gcc/testsuite/gcc.c-torture/compile/951128-1.c
deleted file mode 100644
index 5e4dc7093c8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/951128-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-char a[];
-f (const int i)
-{
- a[i] = 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/951220-1.c b/gcc/testsuite/gcc.c-torture/compile/951220-1.c
deleted file mode 100644
index 33e98f6221e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/951220-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f (char *x)
-{
- return (*x & 2) || (*x & 3);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/951222-1.c b/gcc/testsuite/gcc.c-torture/compile/951222-1.c
deleted file mode 100644
index b8246f5fe81..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/951222-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-extern long long foo ();
-
-long long
-sub1 ()
-{
- char junk[10000];
- register long long a, b, c;
-
- b = foo ();
-
- setjmp ();
- a = foo ();
- c = a - b;
- return c;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/960106-1.c b/gcc/testsuite/gcc.c-torture/compile/960106-1.c
deleted file mode 100644
index c8228aab587..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960106-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f (a)
-{
- return (a & 1) && !(a & 2 & 4);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/960130-1.c b/gcc/testsuite/gcc.c-torture/compile/960130-1.c
deleted file mode 100644
index ed8dab45988..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960130-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-int a[1];
-
-int
-main()
-{
- extern int a[];
- return *a;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/960201-1.c b/gcc/testsuite/gcc.c-torture/compile/960201-1.c
deleted file mode 100644
index adc462389d2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960201-1.c
+++ /dev/null
@@ -1,5 +0,0 @@
-union foo
-{
- char a;
- int x[2];
-} __attribute__ ((transparent_union));
diff --git a/gcc/testsuite/gcc.c-torture/compile/960218-1.c b/gcc/testsuite/gcc.c-torture/compile/960218-1.c
deleted file mode 100644
index 46fbf778524..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960218-1.c
+++ /dev/null
@@ -1,2 +0,0 @@
-#define X(x) x
-int main() { return X(0/* *//* */); }
diff --git a/gcc/testsuite/gcc.c-torture/compile/960220-1.c b/gcc/testsuite/gcc.c-torture/compile/960220-1.c
deleted file mode 100644
index 766a066c449..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960220-1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-f ()
-{
- unsigned long long int a = 0, b;
- while (b > a)
- ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/960221-1.c b/gcc/testsuite/gcc.c-torture/compile/960221-1.c
deleted file mode 100644
index 0e02496c104..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960221-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-struct s1 { int f1; };
-
-struct s2 {
- struct s1 a;
- int f2;
-};
-
-foo (struct s2 *ptr)
-{
- *ptr = (struct s2) {{}, 0};
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/960319-1.c b/gcc/testsuite/gcc.c-torture/compile/960319-1.c
deleted file mode 100644
index f3d95ab6e8e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960319-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-static void
-f()
-{
- long long a[2];
- int i;
- if (g())
- if (h())
- ;
- *a |= (long long)i << 65 ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/960514-1.c b/gcc/testsuite/gcc.c-torture/compile/960514-1.c
deleted file mode 100644
index 1d38cfd1a0b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960514-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-struct s {
- unsigned long long t[5];
-};
-
-void
-f (struct s *d, unsigned long long *l)
-{
- int i;
-
- for (i = 0; i < 5; i++)
- d->t[i] += l[i];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/960704-1.c b/gcc/testsuite/gcc.c-torture/compile/960704-1.c
deleted file mode 100644
index 5a9d35cfd9a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960704-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-struct A {
- double d;
-};
-
-struct A f ();
-
-main ()
-{
- struct A a = f();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/960829-1.c b/gcc/testsuite/gcc.c-torture/compile/960829-1.c
deleted file mode 100644
index 8c6163dfaf0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/960829-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-f ()
-{
- g (0, 0.0, 0.0, 0.0, 0.0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/961004-1.c b/gcc/testsuite/gcc.c-torture/compile/961004-1.c
deleted file mode 100644
index 6407b625d66..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/961004-1.c
+++ /dev/null
@@ -1,37 +0,0 @@
-void
-f1 (o1, o2, o3, i, j, k)
- long long *o1, *o2, *o3;
- int i, j, k;
-{
- while (--i)
- o1[i] = o2[j >>= 1] + o3[k >>= 1];
-}
-
-void
-f2 (o1, o2, o3, i, j, k)
- long long *o1, *o2, *o3;
- int i, j, k;
-{
- while (--i)
- o1[i] = o2[j >>= 1] - o3[k >>= 1];
-}
-
-void
-f3 (o1, o2, o3, i, j, k)
- long long *o1, *o3;
- unsigned *o2;
- int i, j, k;
-{
- while (--i)
- o1[i] = o2[j >>= 1] + o3[k >>= 1];
-}
-
-void
-f4 (o1, o2, o3, i, j, k)
- long long *o1, *o2;
- unsigned *o3;
- int i, j, k;
-{
- while (--i)
- o1[i] = o2[j >>= 1] - o3[k >>= 1];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/961010-1.c b/gcc/testsuite/gcc.c-torture/compile/961010-1.c
deleted file mode 100644
index d6145bc4233..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/961010-1.c
+++ /dev/null
@@ -1 +0,0 @@
-double f (double x) { return x == 0 ? x : 0.0; }
diff --git a/gcc/testsuite/gcc.c-torture/compile/961019-1.c b/gcc/testsuite/gcc.c-torture/compile/961019-1.c
deleted file mode 100644
index 0ea6ec6e280..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/961019-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-char _hex_value[256];
-
-void
-hex_init ()
-{
- int i;
- for (i = 0; i < 256; i++)
- _hex_value[i] = 99;
- for (i = 0; i < 10; i++)
- _hex_value['0' + i] = i;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/961031-1.c b/gcc/testsuite/gcc.c-torture/compile/961031-1.c
deleted file mode 100644
index ea8718f763b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/961031-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-struct s {
- double d;
-} sd;
-
-struct s g () __attribute__ ((const));
-
-struct s
-g ()
-{
- return sd;
-}
-
-f ()
-{
- g ();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/961126-1.c b/gcc/testsuite/gcc.c-torture/compile/961126-1.c
deleted file mode 100644
index f3b6af55595..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/961126-1.c
+++ /dev/null
@@ -1,107 +0,0 @@
-int *p;
-
-main()
-{
- int i = sub ();
-
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
- i = -i;
- if (*p != i)
- goto quit;
-
- i = -i;
-quit:
- sub2 (i);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/961203-1.c b/gcc/testsuite/gcc.c-torture/compile/961203-1.c
deleted file mode 100644
index 0f066ace617..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/961203-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-struct s {
- char a[0x32100000];
- int x:30, y:30;
-};
-
-int
-main ()
-{
- struct s* p;
-
- p = (struct s*) 0;
- if (p->x == p->y)
- exit (1);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/961203-1.x b/gcc/testsuite/gcc.c-torture/compile/961203-1.x
deleted file mode 100644
index e705ffe167a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/961203-1.x
+++ /dev/null
@@ -1,17 +0,0 @@
-# The structure is too large for the xstormy16 - won't fit in 16 bits.
-
-if { [istarget "xstormy16-*-*"] } {
- return 1;
-}
-
-if { [istarget "h8300-*-*"] } {
- return 1
-}
-
-# Array 'a' in this test is too large to fit in 64K.
-
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
- return 1
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/970206-1.c b/gcc/testsuite/gcc.c-torture/compile/970206-1.c
deleted file mode 100644
index 95196cd6a54..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/970206-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-struct Rect
-{
- int iA;
- int iB;
- int iC;
- int iD;
-};
-
-void
-f (int * const this, struct Rect arect)
-{
- g (*this, arect);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/970214-1.c b/gcc/testsuite/gcc.c-torture/compile/970214-1.c
deleted file mode 100644
index 508ea9e92b6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/970214-1.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#include <stddef.h>
-#define L 264
-wchar_t c = L'X';
diff --git a/gcc/testsuite/gcc.c-torture/compile/980329-1.c b/gcc/testsuite/gcc.c-torture/compile/980329-1.c
deleted file mode 100644
index d11b49b01c7..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980329-1.c
+++ /dev/null
@@ -1,72 +0,0 @@
-typedef unsigned long int size_t;
-struct re_pattern_buffer
- {
- unsigned char *buffer;
- unsigned long int used;
- };
-struct re_registers
- {
- int *start;
- };
-
-static const char **regstart, **regend;
-static const char **old_regend;
-
-static int
-re_match_2_internal (struct re_pattern_buffer *bufp,
- struct re_registers *regs)
-{
- unsigned char *p = bufp->buffer;
- unsigned char *pend = p + bufp->used;
-
- for (;;)
- {
- int highest_active_reg = 1;
- if (bufp)
- {
- int i;
- for (i = 1;; i++)
- regs->start[i] = 0;
- }
-
- switch ((unsigned int) *p++)
- {
- case 1:
- {
- unsigned char r = *p;
- if (r)
- highest_active_reg = r;
- }
- if (p + 2 == pend)
- {
- char is_a_jump_n = 0;
- int mcnt = 0;
- unsigned char *p1;
-
- p1 = p + 2;
- switch (*p1++)
- {
- case 2:
- is_a_jump_n = 1;
- case 1:
- do { do { mcnt = *p1; } while (0); p1 += 2; } while (0);
- if (is_a_jump_n)
- p1 = 0;
- }
-
- if (mcnt && *p1 == 0)
- {
- unsigned r;
- for (r = 0; r < (unsigned) *p + (unsigned) *(p + 1); r++)
- {
- if (regend[0] >= regstart[r])
- regend[r] = old_regend[r];
- }
- do { while (0 < highest_active_reg + 1) { } } while (0);
- }
- }
- }
- }
-
- return -1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/980408-1.c b/gcc/testsuite/gcc.c-torture/compile/980408-1.c
deleted file mode 100644
index 09bf430406e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980408-1.c
+++ /dev/null
@@ -1,129 +0,0 @@
-typedef struct _RunlengthPacket
-{
- unsigned short
- red,
- green,
- blue,
- length;
- unsigned short
- index;
-} RunlengthPacket;
-typedef struct _Image
-{
- int
- status,
- temporary;
- char
- filename[1664 ];
- long int
- filesize;
- int
- pipe;
- char
- magick[1664 ],
- *comments,
- *label,
- *text;
- unsigned int
- matte;
- unsigned int
- columns,
- rows,
- depth;
- unsigned int
- scene,
- number_scenes;
- char
- *montage,
- *directory;
- unsigned int
- colors;
- double
- gamma;
- float
- x_resolution,
- y_resolution;
- unsigned int
- mean_error_per_pixel;
- double
- normalized_mean_error,
- normalized_maximum_error;
- unsigned long
- total_colors;
- char
- *signature;
- unsigned int
- packets,
- runlength,
- packet_size;
- unsigned char
- *packed_pixels;
- long int
- magick_time;
- char
- magick_filename[1664 ];
- unsigned int
- magick_columns,
- magick_rows;
- char
- *geometry,
- *page;
- unsigned int
- dispose,
- delay,
- iterations;
- unsigned int
- orphan;
- struct _Image
- *previous,
- *list,
- *next;
-} Image;
- Image *MinifyImage(Image *image)
-{
- Image
- *minified_image;
- register RunlengthPacket
- *q,
- *s,
- *s0,
- *s1,
- *s2,
- *s3;
- register unsigned int
- x;
- unsigned int
- blue,
- green,
- red;
- unsigned long
- total_matte,
- total_blue,
- total_green,
- total_red;
- unsigned short
- index;
- for (x=0; x < (image->columns-1); x+=2)
- {
- total_red=0;
- total_green=0;
- total_blue=0;
- total_matte=0;
- s=s0;
- total_red+=( 3 )*(s->red); total_green+=( 3 )*(s->green); total_blue+=( 3 )*(s->blue); total_matte+=( 3 )*(s->index); s++; ; total_red+=( 7 )*(s->red); total_green+=( 7 )*(s->green); total_blue+=( 7 )*(s->blue); total_matte+=( 7 )*(s->index); s++; ; total_red+=( 7 )*(s->red); total_green+=( 7 )*(s->green); total_blue+=( 7 )*(s->blue); total_matte+=( 7 )*(s->index); s++; ; total_red+=( 3 )*(s->red); total_green+=( 3 )*(s->green); total_blue+=( 3 )*(s->blue); total_matte+=( 3 )*(s->index); s++; ;
- s=s1;
- total_red+=( 7 )*(s->red); total_green+=( 7 )*(s->green); total_blue+=( 7 )*(s->blue); total_matte+=( 7 )*(s->index); s++; ; total_red+=( 15 )*(s->red); total_green+=( 15 )*(s->green); total_blue+=( 15 )*(s->blue); total_matte+=( 15 )*(s->index); s++; ; total_red+=( 15 )*(s->red); total_green+=( 15 )*(s->green); total_blue+=( 15 )*(s->blue); total_matte+=( 15 )*(s->index); s++; ; total_red+=( 7 )*(s->red); total_green+=( 7 )*(s->green); total_blue+=( 7 )*(s->blue); total_matte+=( 7 )*(s->index); s++; ;
- s=s2;
- total_red+=( 7 )*(s->red); total_green+=( 7 )*(s->green); total_blue+=( 7 )*(s->blue); total_matte+=( 7 )*(s->index); s++; ; total_red+=( 15 )*(s->red); total_green+=( 15 )*(s->green); total_blue+=( 15 )*(s->blue); total_matte+=( 15 )*(s->index); s++; ; total_red+=( 15 )*(s->red); total_green+=( 15 )*(s->green); total_blue+=( 15 )*(s->blue); total_matte+=( 15 )*(s->index); s++; ; total_red+=( 7 )*(s->red); total_green+=( 7 )*(s->green); total_blue+=( 7 )*(s->blue); total_matte+=( 7 )*(s->index); s++; ;
- s=s3;
- total_red+=( 3 )*(s->red); total_green+=( 3 )*(s->green); total_blue+=( 3 )*(s->blue); total_matte+=( 3 )*(s->index); s++; ; total_red+=( 7 )*(s->red); total_green+=( 7 )*(s->green); total_blue+=( 7 )*(s->blue); total_matte+=( 7 )*(s->index); s++; ; total_red+=( 7 )*(s->red); total_green+=( 7 )*(s->green); total_blue+=( 7 )*(s->blue); total_matte+=( 7 )*(s->index); s++; ; total_red+=( 3 )*(s->red); total_green+=( 3 )*(s->green); total_blue+=( 3 )*(s->blue); total_matte+=( 3 )*(s->index); s++; ;
- red=(unsigned short) ((total_red+63) >> 7);
- green=(unsigned short) ((total_green+63) >> 7);
- blue=(unsigned short) ((total_blue+63) >> 7);
- index=(unsigned short) ((total_matte+63) >> 7);
- if ((red == q->red) && (green == q->green) && (blue == q->blue) &&
- (index == q->index) && ((int) q->length < 65535L ))
- q->length++;
- }
- return(minified_image);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/980504-1.c b/gcc/testsuite/gcc.c-torture/compile/980504-1.c
deleted file mode 100644
index 7b757ccd2e8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980504-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-typedef struct _geom_elem {
- double coeffs[6];
-} pGeomDefRec, *pGeomDefPtr;
-typedef struct _mpgeombanddef {
- int yOut;
- int in_width;
-} mpGeometryBandRec, *mpGeometryBandPtr;
-typedef void *pointer;
-typedef unsigned char CARD8;
-typedef CARD8 BytePixel;
-void BiGL_B (OUTP,srcimg,width,sline,pedpvt,pvtband) pointer OUTP;
-pointer *srcimg;
-register int width;
-int sline;
-pGeomDefPtr pedpvt; mpGeometryBandPtr pvtband;
-{
- register float s, t, st;
- register int isrcline,isrcpix;
- register int srcwidth = pvtband->in_width - 1;
- register BytePixel val;
- register BytePixel *ptrIn, *ptrJn;
- register double a = pedpvt->coeffs[0];
- register double c = pedpvt->coeffs[2];
- register double srcpix = a * ((double)(0.0000)) + pedpvt->coeffs[1] * (pvtband->yOut + ((double)(0.0000)) ) + pedpvt->coeffs[4];
- register double srcline = c * ((double)(0.0000)) + pedpvt->coeffs[3] * (pvtband->yOut + ((double)(0.0000)) ) + pedpvt->coeffs[5];
- if ( (isrcpix >= 0) && (isrcpix < srcwidth) )
- val = ptrIn[isrcpix] * ((float)1. - s - t + st) + ptrIn[isrcpix+1] * (s - st) + ptrJn[isrcpix] * (t - st) + ptrJn[isrcpix+1] * (st) + (float)0.5 ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/980506-1.c b/gcc/testsuite/gcc.c-torture/compile/980506-1.c
deleted file mode 100644
index 6ef7796261f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980506-1.c
+++ /dev/null
@@ -1,63 +0,0 @@
-unsigned char TIFFFax2DMode[20][256];
-unsigned char TIFFFax2DNextState[20][256];
-unsigned char TIFFFaxUncompAction[20][256];
-unsigned char TIFFFaxUncompNextState[20][256];
-unsigned char TIFFFax1DAction[230][256];
-unsigned char TIFFFax1DNextState[230][256];
-
-typedef struct tableentry {
- unsigned short length;
- unsigned short code;
- short runlen;
-} tableentry;
-
-extern tableentry TIFFFaxWhiteCodes[];
-extern tableentry TIFFFaxBlackCodes[];
-
-static short sp_data, sp_bit;
-
-static unsigned char
-fetchByte (inbuf)
-
-unsigned char **inbuf;
-
-{
- unsigned char byte = **inbuf;
- (*inbuf)++;
- return (byte);
-}
-
-static int
-decode_white_run (inbuf)
-
-unsigned char **inbuf;
-
-{
- short state = sp_bit;
- short action;
- int runlen = 0;
-
- for (;;)
- {
- if (sp_bit == 0)
- {
- nextbyte:
- sp_data = fetchByte (inbuf);
- }
-
- action = TIFFFax1DAction[state][sp_data];
- state = TIFFFax1DNextState[state][sp_data];
- if (action == 0 )
- goto nextbyte;
- if (action == 1 )
- return (-1 );
- if (action == 210 )
- return (-3 );
- sp_bit = state;
- action = (TIFFFaxWhiteCodes[ action - 2 ].runlen) ;
- runlen += action;
- if (action < 64)
- return (runlen);
- }
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/980506-1.x b/gcc/testsuite/gcc.c-torture/compile/980506-1.x
deleted file mode 100644
index 133ed24d944..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980506-1.x
+++ /dev/null
@@ -1,13 +0,0 @@
-# The arrays are too large for the xstormy16 - won't fit in 16 bits.
-if { [istarget "xstormy16-*-*"] } {
- return 1;
-}
-
-if { [istarget "h8300-*-*"] } {
- return 1;
-}
-
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
- return 1
-}
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/980506-2.c b/gcc/testsuite/gcc.c-torture/compile/980506-2.c
deleted file mode 100644
index 6f6fe19270c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980506-2.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * inspired by glibc-2.0.6/sysdeps/libm-ieee754/s_nextafterf.c
- *
- * gcc -O2 -S -DOP=+ gives faddp %st(1),%st
- * gcc -O2 -S -DOP=* gives fmulp %st(1),%st
- * gcc -O2 -S -DOP=- gives fsubrp %st(1),%st
- * gcc -O2 -S -DOP=/ gives fdivrp %st(1),%st
- */
-
-#ifndef OP
-#define OP *
-#endif
-
-typedef int int32_t __attribute__ ((__mode__ ( __SI__ ))) ;
-typedef unsigned int u_int32_t __attribute__ ((__mode__ ( __SI__ ))) ;
-
-typedef union
-{
- float value;
- u_int32_t word;
-} ieee_float_shape_type;
-
-float __nextafterf(float x, float y)
-{
- int32_t hx,hy,ix,iy;
-
- {
- ieee_float_shape_type gf_u;
- gf_u.value = x;
- hx = gf_u.word;
- }
- {
- ieee_float_shape_type gf_u;
- gf_u.value = y;
- hy = gf_u.word;
- }
- ix = hx&0x7fffffff;
- iy = hy&0x7fffffff;
-
- if ( ix > 0x7f800000 || iy > 0x7f800000 )
- return x+y;
- if (x == y) return x;
- if (ix == 0)
- {
- {
- ieee_float_shape_type sf_u;
- sf_u.word = (hy&0x80000000) | 1;
- x = sf_u.value;
- }
- y = x*x;
- if (y == x) return y; else return x;
- }
- if (hx >= 0)
- {
- if (hx > hy)
- hx -= 1;
- else
- hx += 1;
- }
- else
- {
- if (hy >= 0 || hx > hy)
- hx -= 1;
- else
- hx += 1;
- }
- hy = hx & 0x7f800000;
- if (hy >= 0x7f800000)
- return x+x;
- if (hy < 0x00800000)
- {
- y = x OP x;
- if (y != x)
- {
- ieee_float_shape_type sf_u;
- sf_u.word = hx;
- y = sf_u.value;
- return y;
- }
- }
- {
- ieee_float_shape_type sf_u;
- sf_u.word = hx;
- x = sf_u.value;
- }
- return x;
-}
-
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/980511-1.c b/gcc/testsuite/gcc.c-torture/compile/980511-1.c
deleted file mode 100644
index f1bac0c434a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980511-1.c
+++ /dev/null
@@ -1,20 +0,0 @@
-typedef unsigned int __kernel_dev_t;
-typedef __kernel_dev_t dev_t;
-struct ustat {
-};
-typedef unsigned int kdev_t;
-static inline kdev_t to_kdev_t(int dev)
-{
- int major, minor;
- major = (dev >> 8);
- minor = (dev & 0xff);
- return ((( major ) << 22 ) | ( minor )) ;
-}
-struct super_block {
-};
-struct super_block * get_super (kdev_t dev);
-int sys_ustat(dev_t dev, struct ustat * ubuf)
-{
- struct super_block *s;
- s = get_super(to_kdev_t(dev));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/980701-1.c b/gcc/testsuite/gcc.c-torture/compile/980701-1.c
deleted file mode 100644
index 82dd16d6be2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980701-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-
-short
-func(void)
-{
- unsigned char x, y;
-
- return y | x << 8;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/980706-1.c b/gcc/testsuite/gcc.c-torture/compile/980706-1.c
deleted file mode 100644
index 214f36d5311..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980706-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-void g(long long);
-
-long long f(long long v1, long long v2, long long v3, long long v4)
-{
- g(v1);
- g(v2);
- g(v3);
- g(v4);
- return v1 && v2;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/980726-1.c b/gcc/testsuite/gcc.c-torture/compile/980726-1.c
deleted file mode 100644
index 3d4daa203de..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980726-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-static __inline__ unsigned char BCD(unsigned char binval)
-{
- if (binval > 99) return 0x99;
- return (((binval/10) << 4) | (binval%10));
-}
-
-void int1a(unsigned char i)
-{
- (*((unsigned char *)1)) = BCD(i);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/980729-1.c b/gcc/testsuite/gcc.c-torture/compile/980729-1.c
deleted file mode 100644
index 973372b2ea3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980729-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-static int
-regex_compile ()
-{
- int c, c1;
- char str[6 + 1];
- c1 = 0;
- for (;;)
- {
- do { } while (0) ;
- if (c1 == 6 )
- break;
- str[c1++] = c;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/980816-1.c b/gcc/testsuite/gcc.c-torture/compile/980816-1.c
deleted file mode 100644
index c56b6c9b92c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980816-1.c
+++ /dev/null
@@ -1,51 +0,0 @@
-typedef unsigned int size_t;
-typedef void *XtPointer;
-
-typedef struct _WidgetRec *Widget;
-typedef struct _WidgetClassRec *WidgetClass;
-
-extern WidgetClass commandWidgetClass;
-
-typedef void (*XtCallbackProc)(
- Widget ,
- XtPointer ,
- XtPointer
-);
-
-extern const char XtStrings[];
-
-
-typedef struct
-{
- char *Name,
- *Label;
- XtCallbackProc Callback;
- XtPointer ClientData;
- Widget W;
-} DialogButtonType, *DialogButtonTypePtr;
-
-
-Widget AddButtons(Widget Parent, Widget Top,
- DialogButtonTypePtr Buttons, size_t Count)
-{
- int i;
-
- for (i = 0; i < Count; i++)
- {
- if (!Buttons[i].Label)
- continue;
- Buttons[i].W = XtVaCreateManagedWidget(Buttons[i].Name,
- commandWidgetClass,
- Parent,
- ((char*)&XtStrings[429]) , Buttons[i].Label,
- "fromHoriz" , i ? Buttons[i-1].W : ((void *)0) ,
- "fromVert" , Top,
- "resizable" , 1 ,
- ((void *)0) );
-
- XtAddCallback(((char*)&XtStrings[136]),
- Buttons[i].Callback, Buttons[i].ClientData);
- }
- return(Buttons[Count-1].W);
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/980821-1.c b/gcc/testsuite/gcc.c-torture/compile/980821-1.c
deleted file mode 100644
index 9eb1ac4ca1c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980821-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-typedef int __int32_t;
-int __kernel_rem_pio2(int prec)
-{
- __int32_t i, jz;
- double fw, fq[20];
- switch(prec) {
- case 2:
- fw = 0.0;
- case 3:
- for (i=jz;i>0;i--) {
- fw = fq[i-1] +fq[i];
- fq[i-1] = fw;
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/980825-1.c b/gcc/testsuite/gcc.c-torture/compile/980825-1.c
deleted file mode 100644
index 34e35bf83c4..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/980825-1.c
+++ /dev/null
@@ -1,30 +0,0 @@
-typedef enum { FALSE, TRUE } boolean;
-enum _errorTypes { FATAL = 1, WARNING = 2, PERROR = 4 };
-typedef struct _optionValues {
- struct _include {
- boolean classNames;
- boolean defines;
- boolean enumerators;
- } include;
-} optionValues;
-extern optionValues Option;
-static void applyTagInclusionList( list )
- const char *const list;
-{
- boolean mode = TRUE;
- const char *p;
- for (p = list ; *p != '\0' ; ++p)
- switch (*p)
- {
- case '=':
- clearTagList();
- mode = TRUE;
- break;
- case '+': mode = TRUE; break;
- case '-': mode = FALSE; break;
- case 'c': Option.include.classNames = mode; break;
- case 'd': Option.include.defines = mode; break;
- case 'e': Option.include.enumerators = mode; break;
- default: error(FATAL, "-i: Invalid tag option '%c'", *p); break;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981001-1.c b/gcc/testsuite/gcc.c-torture/compile/981001-1.c
deleted file mode 100644
index d7cf0dc64b0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981001-1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-unsigned short code = 0x0000;
-unsigned short low = 0x4000;
-unsigned short high = 0xb000;
-
-int main (void)
-{
- if (
- (high & 0x8000) != (low & 0x8000)
- && ( low & 0x4000) == 0x4000
- && (high & 0x4000) == 0
- )
- {
- code ^= 0x4000;
- low |= 0x4000;
- }
-
- exit (0);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981001-2.c b/gcc/testsuite/gcc.c-torture/compile/981001-2.c
deleted file mode 100644
index 9ade1d92aef..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981001-2.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#define weak_alias(func, aliasname) \
- extern __typeof (func) aliasname __attribute__ ((weak, alias (#func)));
-
-#define add3(d, m, c) ((d) + (m) + (c))
-
-int
-__add3(int d, int m, int c)
-{
- return d + m + c;
-}
-
-weak_alias (__add3, add3)
diff --git a/gcc/testsuite/gcc.c-torture/compile/981001-3.c b/gcc/testsuite/gcc.c-torture/compile/981001-3.c
deleted file mode 100644
index 5f6458757ac..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981001-3.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#define P(a, b) P1(a,b)
-#define P1(a,b) a##b
-
-#define FLT_MIN_EXP (-125)
-#define DBL_MIN_EXP (-1021)
-
-#define MIN_EXP P(FLT,_MIN_EXP)
-
-#define FLT FLT
-int f1 = MIN_EXP;
-
-#undef FLT
-#define FLT DBL
-int f2 = MIN_EXP;
diff --git a/gcc/testsuite/gcc.c-torture/compile/981001-4.c b/gcc/testsuite/gcc.c-torture/compile/981001-4.c
deleted file mode 100644
index dd3df9cce4b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981001-4.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#define P(a,b) P1(a,b)
-#define P1(a,b) a##b
-
-#define ONCE(x, y) (x ?: (x = y()))
-#define PREFIX
-
-extern int P(PREFIX, init) (void);
-
-int
-fun(void)
-{
- static int memo;
- return ONCE(memo, P(PREFIX, init));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981006-1.c b/gcc/testsuite/gcc.c-torture/compile/981006-1.c
deleted file mode 100644
index 6af6d9a8ea5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981006-1.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Test that tablejump insns are correctly handled. If the compiler
- loses track of the jump targets, it will report that x and y can be
- used uninitialized.
-
- This is broken in egcs 1998/10/06 for mips in pic mode. */
-/* { dg-do compile } */
-
-int foo (int a, int b)
-{
- __label__ z;
- int x; /* { dg-bogus "warning: `.' might be used uninitialized in this function" } */
- int y; /* { dg-bogus "warning: `.' might be used uninitialized in this function" } */
- static void *p;
-
- switch (a) {
- case 2:
- x = 4;
- break;
- case 4:
- x = 6;
- break;
- case 8: case 10: case 13: case 11: case 17: case 19:
- x = 7;
- break;
- default:
- x = -1;
- break;
- }
- switch (b) {
- case 2:
- y = 4;
- break;
- case 4:
- y = 6;
- break;
- case 8: case 10: case 13: case 11: case 17: case 19:
- y = 7;
- break;
- default:
- y = -1;
- break;
- }
- z:
- p = &&z;
- return x * y;
-}
-int main (int argc, char *argv[])
-{
- return 1 == foo (argc, argc + 1);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981006-1.x b/gcc/testsuite/gcc.c-torture/compile/981006-1.x
deleted file mode 100644
index a27a67bcaee..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981006-1.x
+++ /dev/null
@@ -1,20 +0,0 @@
-# For MIPS at least, pic is needed to trigger the problem.
-if { [istarget rs6000-*-aix*]
- || [istarget powerpc*-*-aix*]
- || [istarget arm*-*-*]
- || [istarget xscale-*-*]
- || [istarget strongarm*-*-*]
- || [istarget fr30-*-*]
- || [istarget sh-*-hms]
- || [istarget sh-*-coff]
- || [istarget h8300*-*-*]
- || [istarget mn10200*-*-*]
- || [istarget cris-*-elf*]
- || [istarget cris-*-aout*]
- || [istarget mmix-*-*]
-} {
- set options "-Wuninitialized -Werror"
-} else {
- set options "-Wuninitialized -Werror -fpic"
-}
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/981007-1.c b/gcc/testsuite/gcc.c-torture/compile/981007-1.c
deleted file mode 100644
index d41400b7832..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981007-1.c
+++ /dev/null
@@ -1,21 +0,0 @@
-extern double fabs (double);
-extern double sqrt (double);
-
-typedef struct complexm {
- double re,im;
-} complex;
-
-static complex
-setCom (double r, double i)
-{
- complex ct;
- ct.re=fabs(r)<1E-300?0.0:r;
- ct.im=fabs(i)<1E-300?0.0:i;
- return ct;
-}
-
-static complex
-csqrt_crash (double x)
-{
- return (x>=0) ? setCom(sqrt(x),0) : setCom(0,sqrt(-x));
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981022-1.c b/gcc/testsuite/gcc.c-torture/compile/981022-1.c
deleted file mode 100644
index 6256673804a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981022-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* This tests a combination of two gcc extensions. Omitting the middle
- operand of ?: and using ?: as an lvalue. */
-int x, y;
-
-int main ()
-{
- (x ?: y) = 0;
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981022-1.x b/gcc/testsuite/gcc.c-torture/compile/981022-1.x
deleted file mode 100644
index f41cdc29913..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981022-1.x
+++ /dev/null
@@ -1,2 +0,0 @@
-set torture_compile_xfail "*-*-*"
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/981107-1.c b/gcc/testsuite/gcc.c-torture/compile/981107-1.c
deleted file mode 100644
index 987ec180f9f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981107-1.c
+++ /dev/null
@@ -1,9 +0,0 @@
-unsigned long seed(void)
-{
- unsigned long u;
-
- call();
-
- u = 26107 * (unsigned long)&u;
- return u;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981223-1.c b/gcc/testsuite/gcc.c-torture/compile/981223-1.c
deleted file mode 100644
index d207ff10bb3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981223-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-__complex__ float
-func (__complex__ float x)
-{
- if (__real__ x == 0.0)
- return 1.0;
- else
- return 0.0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981223-1.x b/gcc/testsuite/gcc.c-torture/compile/981223-1.x
deleted file mode 100644
index f8d2aa6f938..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/981223-1.x
+++ /dev/null
@@ -1,20 +0,0 @@
-# The problem on IA-64 is that the assembler emits
-#
-# Warning: Additional NOP may be necessary to workaround Itanium
-# processor A/B step errata
-#
-# This can be fixed by adding "-mb-step" to the command line, which
-# does in fact add the extra nop, if someone can tell me how to do
-# that for a c-torture compile test.
-
-set torture_eval_before_compile {
-
- set compiler_conditional_xfail_data {
- "need -mb-step" \
- "ia64-*-*" \
- { "-O2" "-O3" "-Os" } \
- { "" }
- }
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/990107-1.c b/gcc/testsuite/gcc.c-torture/compile/990107-1.c
deleted file mode 100644
index a123ce9cbf3..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990107-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-static int
-java_double_finite (d)
- double d;
-{
- long long *ip = (long long *) &d;
- return (*ip & 0x7ff0000000000000LL ) != 0x7ff0000000000000LL ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990117-1.c b/gcc/testsuite/gcc.c-torture/compile/990117-1.c
deleted file mode 100644
index dda52205988..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990117-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-static void
-__bb_init_prg ()
-{
- const char *p;
-
- {
- unsigned long l;
-
- (__extension__ (__builtin_constant_p (p) && __builtin_constant_p (l)
- ? 5 : 2));
- }
-
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990203-1.c b/gcc/testsuite/gcc.c-torture/compile/990203-1.c
deleted file mode 100644
index 2c69a8fe086..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990203-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-int
-f (f)
- float f;
-{
- long long *ip = (long long *) &f;
- return (*ip & 0x7ff0000000000000LL ) != 0x7ff0000000000000LL ;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990517-1.c b/gcc/testsuite/gcc.c-torture/compile/990517-1.c
deleted file mode 100644
index c738d4be760..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990517-1.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Extracted from the sdm module in perl. */
-typedef struct {
- char *dptr;
- int dsize;
-} datum;
-extern long sdbm_hash (char *, int) ;
-extern void sdbm__putpair (char *, datum, datum) ;
-void
-sdbm__splpage (char *pag, char *New, long int sbit)
-{
- datum key;
- datum val;
- register int n;
- register int off = 1024 ;
- char cur[1024 ];
- register short *ino = (short *) cur;
- (void) memcpy(cur, pag, 1024 );
- (void) ({ void *__s = ( pag ); __builtin_memset ( __s , '\0', 1024 ) ; __s; });
- (void) ({ void *__s = ( New ); __builtin_memset ( __s , '\0', 1024 ) ; __s; });
- n = ino[0];
- for (ino++; n > 0; ino += 2) {
- key.dptr = cur + ino[0];
- key.dsize = off - ino[0];
- val.dptr = cur + ino[1];
- val.dsize = ino[0] - ino[1];
- (void) sdbm__putpair ((sdbm_hash(( key ).dptr, ( key ).dsize) & sbit) ? New : pag, key, val);
- off = ino[1];
- n -= 2;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990519-1.c b/gcc/testsuite/gcc.c-torture/compile/990519-1.c
deleted file mode 100644
index 9c116178230..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990519-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
- typedef int gboolean;
-
- typedef struct{
- gboolean names : 1;
- gboolean types : 1;
- } ParamOptions;
-
- int p_param(ParamOptions* o){
- return o->types && o->names;
- }
diff --git a/gcc/testsuite/gcc.c-torture/compile/990523-1.c b/gcc/testsuite/gcc.c-torture/compile/990523-1.c
deleted file mode 100644
index 5ab61f36c65..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990523-1.c
+++ /dev/null
@@ -1,30 +0,0 @@
-extern float decwin[512+32];
-
-int synth_1to1(float *bandPtr,int channel,unsigned char *out,int *pnt)
-{
- static const int step = 2;
- short *samples = (short *) (out+*pnt);
-
- float *b0;
- int clip = 0;
- int bo1;
-
- {
- register int j;
- float *window = decwin + 16 - bo1;
- for (j=15;j;j--,b0-=0x20,window-=0x10,samples+=step)
- {
- float sum;
- sum -= *(--window) * *b0++;
- sum -= *(--window) * *b0++;
- sum -= *(--window) * *b0++;
- sum -= *(--window) * *b0++;
- sum -= *(--window) * *b0++;
- sum -= *(--window) * *b0++;
- sum -= *(--window) * *b0++;
- sum -= *(--window) * *b0++;
-
- if( ( sum ) > 32767.0) *( samples ) = 0x7fff; ( clip )++; ;
- }
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990527-1.c b/gcc/testsuite/gcc.c-torture/compile/990527-1.c
deleted file mode 100644
index 4744030307a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990527-1.c
+++ /dev/null
@@ -1,37 +0,0 @@
-typedef struct {
- int dummy;
- int width, height;
-} XWindowAttributes;
-
-typedef struct {
- short x, y;
-} XPoint;
-
-extern unsigned int ya_random (void);
-extern int XDrawPoints(XPoint*, int);
-
-static int iterations, offset;
-static int xsym, ysym;
-
-static void
-hurm (void)
-{
- XWindowAttributes xgwa;
- int xlim, ylim, x, y, i;
- XPoint points [4];
-
-
- for (i = 0; i < iterations; i++)
- {
- int j = 0;
- j++;
- if (xsym)
- {
- points [j].x = xlim - x;
- j++;
- }
- points [j].x = x;
- j++;
- }
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/990617-1.c b/gcc/testsuite/gcc.c-torture/compile/990617-1.c
deleted file mode 100644
index 1404b793505..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990617-1.c
+++ /dev/null
@@ -1,17 +0,0 @@
-
-int main()
-{
- do {
- long l;
- long *p = &l;
-
- *p = 0x0000000070000000L;
- p += 2;
- {
- unsigned int *addr = (unsigned int *)0x70000000;
- printf("%d, %d\n", addr[1], addr[0]);
- }
-
- } while (1);
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/990617-1.x b/gcc/testsuite/gcc.c-torture/compile/990617-1.x
deleted file mode 100644
index b326395523b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990617-1.x
+++ /dev/null
@@ -1,7 +0,0 @@
-# 0x70000000 is too large a constant to become a pointer on xstormy16.
-
-if { [istarget "xstormy16-*-*"] } {
- return 1;
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/990625-1.c b/gcc/testsuite/gcc.c-torture/compile/990625-1.c
deleted file mode 100644
index 97a2331c7a5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990625-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#define __USE_STRING_INLINES
-#include <string.h>
-
-void test()
-{
- char *p, *a;
- const char *s;
-
- while ( (s = a) )
- p = strcpy(strcpy(p,"/"), s);
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/990625-2.c b/gcc/testsuite/gcc.c-torture/compile/990625-2.c
deleted file mode 100644
index 92c33742b85..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990625-2.c
+++ /dev/null
@@ -1,12 +0,0 @@
-void
-broken030599(int *n)
-{
- int i, x;
- for (i = 0; i < 32; i++) {
- x=0;
- x++;
- if (i & 4)
- x++;
- x++;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990801-1.c b/gcc/testsuite/gcc.c-torture/compile/990801-1.c
deleted file mode 100644
index d35ec87b948..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990801-1.c
+++ /dev/null
@@ -1,26 +0,0 @@
-extern int getch();
-extern int class();
-
-int
-token()
-{
- int state = 1;
-
- while (1) {
- int c=0;
- c = getch();
- switch (state) {
- case 1: break;
- case 4: break;
- case 5: break;
- case 6:
- {
- switch (class(c)) {
- default: break;
- }
- } break;
- case 7: break;
- }
- }
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/990801-2.c b/gcc/testsuite/gcc.c-torture/compile/990801-2.c
deleted file mode 100644
index 0a575ea17aa..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990801-2.c
+++ /dev/null
@@ -1,11 +0,0 @@
-void f()
-{
- extern char* p;
- int ch;
- while (!(ch = 0)) {
- if ((ch == 0) || (ch == 2)) {
- break;
- }
- *p = 0;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990829-1.c b/gcc/testsuite/gcc.c-torture/compile/990829-1.c
deleted file mode 100644
index 2252821938e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990829-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-struct x
-{
- int a:16;
- int b:16;
- int c;
-};
-
-bar()
-{
- struct x y;
- y.b = 1 < y.a;
- foo(&y);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990913-1.c b/gcc/testsuite/gcc.c-torture/compile/990913-1.c
deleted file mode 100644
index cad31a02203..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990913-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-
-int f()
-{
- unsigned char hrs, min;
-
- min = ((min / 10) << 4) + min % 10;
- hrs = ((hrs / 10) << 4) + hrs % 10;
-
- return hrs + min;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/990928-1.c b/gcc/testsuite/gcc.c-torture/compile/990928-1.c
deleted file mode 100644
index 5658e360567..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/990928-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Make sure that debug information can be generated
- for inline functions containing incomplete type
- declarations. */
-inline int foo (void)
-{
- struct imcomplete1 * ptr1;
- union incomplete2 * ptr2;
- enum incomplete3 * ptr3;
- return 1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991008-1.c b/gcc/testsuite/gcc.c-torture/compile/991008-1.c
deleted file mode 100644
index ba668fe25b2..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991008-1.c
+++ /dev/null
@@ -1,23 +0,0 @@
-typedef struct {
- int x;
-} FILE;
-extern void fputs (const char *, FILE *);
-
-int mView;
-void foo (FILE * out, int aIndent)
-{
- if (0 != mView) {
- aIndent++;
- aIndent--;
- {
- int __t = aIndent;
- while (--__t >= 0)
- fputs (" ", out);
- }
-
- } {
- int __t = aIndent;
- while (--__t >= 0)
- fputs (" ", out);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991026-1.c b/gcc/testsuite/gcc.c-torture/compile/991026-1.c
deleted file mode 100644
index 191742112bd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991026-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-void something_f(float);
-
-int foo(void)
-{
- union
- {
- float f;
- double d;
- } u, *pu = &u;
-
- u.f = 1.0;
- something_f(u.f);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991026-2.c b/gcc/testsuite/gcc.c-torture/compile/991026-2.c
deleted file mode 100644
index bb358f411ec..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991026-2.c
+++ /dev/null
@@ -1,33 +0,0 @@
-typedef int __pid_t;
-extern __pid_t fork (void) ;
-extern int printf (__const char *__restrict __format, ...) ;
-extern char *strerror (int __errnum) ;
-extern int errno;
-extern int *__errno_location (void) __attribute__ ((__const__));
-extern void _exit (int __status) __attribute__ ((__noreturn__));
-extern void exit (int __status) __attribute__ ((__noreturn__));
-extern int close (int __fd) ;
-extern int dup (int __fd) ;
-extern int open (__const char *__file, int __oflag, ...) ;
-
-
-char myname[]="foo";
-
-detach()
-{
- switch(fork()) {
- case -1:
- printf("%s: Error: fork - %s\n",myname, strerror((*__errno_location ()) ));
- exit(255);
- case 0:
-
- close(0);
- close(1);
- close(2);
- dup(dup(open("/dev/null", 02 )));
- return;
- default:
-
- _exit(0);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991127-1.c b/gcc/testsuite/gcc.c-torture/compile/991127-1.c
deleted file mode 100644
index 86098d883a5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991127-1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-
-extern void foo (int *);
-
-static void bar (char *buf)
-{
- int a;
- foo (&a);
- while (a > 0) {
- *buf++ = '0';
- a--;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991202-1.c b/gcc/testsuite/gcc.c-torture/compile/991202-1.c
deleted file mode 100644
index cc4f478f520..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991202-1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-extern float A[], B[];
-extern float MAXNUMF;
-float chbevlf(float, float *, int);
-float expf(float), i1f(float), logf(float), sqrtf(float);
-
-float k1f(float xx)
-{
- float x, y;
-
- x = xx;
- if( x <= 2.0 )
- {
- y = x * x - 2.0;
- y = logf( 0.5f * x ) * i1f(x) + chbevlf( y, A, 7 ) / x;
- return( y );
- }
- return( expf(-x) * chbevlf( (float)(8.0/x - 2.0), B, 10 ) / sqrtf(x) );
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991208-1.c b/gcc/testsuite/gcc.c-torture/compile/991208-1.c
deleted file mode 100644
index 1bee1e84b37..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991208-1.c
+++ /dev/null
@@ -1,4 +0,0 @@
-void fn (char *ptr)
-{
- void *p = ptr - 8 - 4;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991213-1.c b/gcc/testsuite/gcc.c-torture/compile/991213-1.c
deleted file mode 100644
index 4803d13915f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991213-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-typedef __complex__ double double_complex;
-
-
-
-void
-p (const double_complex *t, int n)
-{
- int i;
- double s = ({ typeof ( t[n/2] ) arg = ( t[n/2] ); (__imag__ arg); }) ;
- for (i = 1; i < n/2; i++)
- s += 2* ({ typeof ( t[i] ) arg = ( t[i] ); (__imag__ arg); }) ;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/991213-2.c b/gcc/testsuite/gcc.c-torture/compile/991213-2.c
deleted file mode 100644
index 98385d56263..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991213-2.c
+++ /dev/null
@@ -1,15 +0,0 @@
-typedef long __kernel_time_t;
-typedef __kernel_time_t time_t;
-time2(
- void (* const (funcp)(time_t)),
- const long offset, int * const okayp)
-{
- register int bits;
- time_t t;
- for (bits = 0, t = 1; t > 0; ++bits, t <<= 1)
- ;
- t = (t < 0) ? 0 : ((time_t) 1 << bits);
- for ( ; ; ) {
- (*funcp)((time_t)&t);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991213-3.c b/gcc/testsuite/gcc.c-torture/compile/991213-3.c
deleted file mode 100644
index ce8347f5ddf..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991213-3.c
+++ /dev/null
@@ -1,2 +0,0 @@
-int jump () { goto * (int (*) ()) 0xbabebec0; }
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/991214-1.c b/gcc/testsuite/gcc.c-torture/compile/991214-1.c
deleted file mode 100644
index 2748a15af84..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991214-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-void foo(double bar[], double *zp, int n)
-{
- int i, j;
-
- i = 0;
- for(j = 0; j < n; j++)
- {
- i += j+1;
- bar[i] *= (1.0 + *zp);
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991214-2.c b/gcc/testsuite/gcc.c-torture/compile/991214-2.c
deleted file mode 100644
index 3e18d215e13..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991214-2.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#if defined(STACK_SIZE) && (STACK_SIZE < 65536)
-# define HISTO_SIZE 9
-#else
-# define HISTO_SIZE 36
-#endif
-
-extern int N;
-extern int nrows;
-extern int or_num_angles;
-
-typedef struct
-{
- double value;
- int count;
-}Histo;
-
-Histo add_histo[10][2][HISTO_SIZE][HISTO_SIZE];
-
-void cmd_connection_statistics( )
-{
- int i,j,k,m;
-
- for(i=0; i<nrows; i++){
- for(j=0; j< 2; j++)
- for(k=0; k< or_num_angles; k++)
- ;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991229-1.c b/gcc/testsuite/gcc.c-torture/compile/991229-1.c
deleted file mode 100644
index d11fd91fcbd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991229-1.c
+++ /dev/null
@@ -1,23 +0,0 @@
-static int parse (int, int);
-static int parseStmt (int, int);
-
-ejEval()
-{
- int state;
- state = parse(8 , 0x1 );
-}
-static int parse(int state, int flags)
-{
- switch (state) {
- case 8 :
- case 18 :
- case 6 :
- case 2 :
- state = parseStmt(state, flags);
- break;
- }
-}
-static int parseStmt(int state, int flags)
-{
- parse (2, flags);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991229-2.c b/gcc/testsuite/gcc.c-torture/compile/991229-2.c
deleted file mode 100644
index 0c562199f68..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991229-2.c
+++ /dev/null
@@ -1,10 +0,0 @@
-void foo ();
-
-void update (double* r)
-{
- foo ();
- {
- register double y1;
- y1 = r[ 4] - r[11];
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/991229-3.c b/gcc/testsuite/gcc.c-torture/compile/991229-3.c
deleted file mode 100644
index 710e4c99593..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/991229-3.c
+++ /dev/null
@@ -1,17 +0,0 @@
-int m[8],b[8];
-
-int main(){
- int i;
-
- for(;;){
- m[0] = rand();
- if(m[0] == 0){
- for(i=0;i<8;i++){
- m[i] = b[i];
- }
- break;
- }
- }
-}
-
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/calls.c b/gcc/testsuite/gcc.c-torture/compile/calls.c
deleted file mode 100644
index 1582c0e92fa..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/calls.c
+++ /dev/null
@@ -1,22 +0,0 @@
-typedef void *(*T)(void);
-f1 ()
-{
- ((T) 0)();
-}
-f2 ()
-{
- ((T) 1000)();
-}
-f3 ()
-{
- ((T) 10000000)();
-}
-f4 (r)
-{
- ((T) r)();
-}
-f5 ()
-{
- int (*r)() = f3;
- ((T) r)();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/cmpdi-1.c b/gcc/testsuite/gcc.c-torture/compile/cmpdi-1.c
deleted file mode 100644
index 9e1b659c7cf..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/cmpdi-1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-f (long long d)
-{
- int i = 0;
- if (d == 1)
- i = 1;
- return i;
-}
-
-g (long long d)
-{
- int i = 0;
- if (d <= 0)
- i = 1;
- return i;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/combine-hang.c b/gcc/testsuite/gcc.c-torture/compile/combine-hang.c
deleted file mode 100644
index 7cc57afe603..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/combine-hang.c
+++ /dev/null
@@ -1,26 +0,0 @@
-typedef union
-{
- double value;
- struct
- {
- unsigned long msw;
- unsigned long lsw;
- } parts;
-} ieee_double_shape_type;
-
-double f (int iy)
-{
- double z, t;
- ieee_double_shape_type u, v;
-
- if (iy == 1)
- return 0;
-
- u.parts.msw = iy;
- u.parts.lsw = 0;
- z = u.value;
- v.parts.msw = iy;
- v.parts.lsw = 0;
- t = v.value;
- return 1.0+z+t+t;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/compile.exp b/gcc/testsuite/gcc.c-torture/compile/compile.exp
deleted file mode 100644
index 1b075a8b798..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/compile.exp
+++ /dev/null
@@ -1,35 +0,0 @@
-# Expect driver script for GCC Regression Tests
-# Copyright (C) 1993, 1995, 1997 Free Software Foundation
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# These tests come from Torbjorn Granlund's (tege@cygnus.com)
-# C torture test suite, and other contributors.
-
-if $tracelevel then {
- strace $tracelevel
-}
-
-# load support procs
-load_lib c-torture.exp
-
-foreach testcase [glob -nocomplain $srcdir/$subdir/*.c] {
- # If we're only testing specific files and this isn't one of them, skip it.
- if ![runtest_file_p $runtests $testcase] then {
- continue
- }
-
- c-torture $testcase
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/cpp-1.c b/gcc/testsuite/gcc.c-torture/compile/cpp-1.c
deleted file mode 100644
index 09d49bc61fd..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/cpp-1.c
+++ /dev/null
@@ -1,8 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation.
-
- by Alexandre Oliva <oliva@lsd.ic.unicamp.br> */
-
-#define foo/**/1
-#if foo != 1
-# error "foo not properly defined"
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/cpp-2.c b/gcc/testsuite/gcc.c-torture/compile/cpp-2.c
deleted file mode 100644
index ae9425f09f4..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/cpp-2.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation.
-
- by Alexandre Oliva <oliva@lsd.ic.unicamp.br> */
-
-#pragma /* the token after #pragma is optional. */
diff --git a/gcc/testsuite/gcc.c-torture/compile/dll.c b/gcc/testsuite/gcc.c-torture/compile/dll.c
deleted file mode 100644
index bf0d1544ad0..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/dll.c
+++ /dev/null
@@ -1,21 +0,0 @@
-__declspec (dllimport) int foo;
-extern int (* import) (void) __attribute__((dllimport));
-int func2 (void) __attribute__((dllexport));
-
-__declspec(dllexport) int
-func1 (int a)
-{
- return a + foo;
-}
-
-static int
-internal (void)
-{
- return 77;
-}
-
-int
-func2 (void)
-{
- return import ();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/dll.x b/gcc/testsuite/gcc.c-torture/compile/dll.x
deleted file mode 100644
index 63a1e180e2c..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/dll.x
+++ /dev/null
@@ -1,20 +0,0 @@
-# This test examines the attribute support for DLLs.
-# Only COFF/PE formats support DLLs, (plus, as a special case
-# the mcore-elf toolchain), so the code here tries to determine
-# the file format and decide whether the test should be marked
-# as unsupported.
-
-set torture_eval_before_compile {
-
- if ![istarget "mcore-*-elf"] {
-
- set objformat [gcc_target_object_format]
-
- if { $objformat != "pe" } {
- unsupported "dll.c"
- return 1
- }
- }
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/funcptr-1.c b/gcc/testsuite/gcc.c-torture/compile/funcptr-1.c
deleted file mode 100644
index 79687c9c005..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/funcptr-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-extern int (*gp)(const char*);
-
-int
-g (const char* d)
-{
- printf ("g");
- return 0;
-}
-
-f ()
-{
- int errcnt=0;
-
- if (gp != g)
- {
- printf ("f");
- errcnt++;
- }
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/goto-1.c b/gcc/testsuite/gcc.c-torture/compile/goto-1.c
deleted file mode 100644
index caeed3aa0ba..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/goto-1.c
+++ /dev/null
@@ -1,16 +0,0 @@
-f ()
-{
- do
- {
- if (0)
- {
- L1:;
- }
- else
- goto L2;
- L2:;
- }
- while (0);
-
- goto L1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/iftrap-1.c b/gcc/testsuite/gcc.c-torture/compile/iftrap-1.c
deleted file mode 100644
index a0adc78cf82..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/iftrap-1.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Verify that ifcvt doesn't crash under a number of interesting conditions. */
-
-void f1(int p)
-{
- if (p)
- __builtin_trap();
-}
-
-void f2(int p)
-{
- if (p)
- __builtin_trap();
- else
- bar();
-}
-
-void f3(int p)
-{
- if (p)
- bar();
- else
- __builtin_trap();
-}
-
-void f4(int p, int q)
-{
- if (p)
- {
- bar();
- if (q)
- bar();
- }
- else
- __builtin_trap();
-}
-
-void f5(int p)
-{
- if (p)
- __builtin_trap();
- else
- abort();
-}
-
-void f6(int p)
-{
- if (p)
- abort();
- else
- __builtin_trap();
-}
-
-void f7(int p)
-{
- if (p)
- __builtin_trap();
- else
- __builtin_trap();
-}
-
-void f8(int p)
-{
- if (p)
- __builtin_trap();
- else
- {
- bar();
- __builtin_trap();
- }
-}
-
-void f9(int p)
-{
- if (p)
- {
- bar();
- __builtin_trap();
- }
- else
- __builtin_trap();
-}
-
-void f10(int p)
-{
- if (p)
- __builtin_trap();
- while (1)
- bar();
-}
-
-void f11(int p)
-{
- if (p)
- __builtin_trap();
- else
- bar();
- while (1)
- baz();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/iftrap-2.c b/gcc/testsuite/gcc.c-torture/compile/iftrap-2.c
deleted file mode 100644
index bb7bb5726b1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/iftrap-2.c
+++ /dev/null
@@ -1,10 +0,0 @@
-void foo(int p, int q)
-{
- if (p)
- {
- if (q)
- __builtin_trap ();
- }
- else
- bar();
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/init-1.c b/gcc/testsuite/gcc.c-torture/compile/init-1.c
deleted file mode 100644
index 38db9ad87d9..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/init-1.c
+++ /dev/null
@@ -1,19 +0,0 @@
-typedef struct
-{
- char *key;
- char *value;
-} T1;
-
-typedef struct
-{
- long type;
- char *value;
-} T3;
-
-T1 a[] =
-{
- {
- "",
- ((char *)&((T3) {1, (char *) 1}))
- }
-};
diff --git a/gcc/testsuite/gcc.c-torture/compile/init-2.c b/gcc/testsuite/gcc.c-torture/compile/init-2.c
deleted file mode 100644
index 63a7f5849d6..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/init-2.c
+++ /dev/null
@@ -1,4 +0,0 @@
-struct
-{
- int e1, e2;
-} v = { e2: 0 };
diff --git a/gcc/testsuite/gcc.c-torture/compile/init-3.c b/gcc/testsuite/gcc.c-torture/compile/init-3.c
deleted file mode 100644
index be3d9b49679..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/init-3.c
+++ /dev/null
@@ -1,11 +0,0 @@
-struct empty { };
-struct something {
- int spacer;
- struct empty foo;
- int bar;
-};
-
-struct something X = {
- foo: { },
- bar: 1,
-};
diff --git a/gcc/testsuite/gcc.c-torture/compile/labels-1.c b/gcc/testsuite/gcc.c-torture/compile/labels-1.c
deleted file mode 100644
index fae6ab8f400..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/labels-1.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef NO_LABEL_VALUES
-f ()
-{
- void *x = &&L2;
- if (&&L3 - &&L1 > 1)
- abort();
- L1: return 1;
- L2: abort ();
- L3:;
-}
-#else
-int x;
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/labels-2.c b/gcc/testsuite/gcc.c-torture/compile/labels-2.c
deleted file mode 100644
index cf4f116e6a8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/labels-2.c
+++ /dev/null
@@ -1,10 +0,0 @@
-struct bp { void *v, *b, *e; };
-f ()
-{
- struct bp x = { &&L2 };
- if (&&L3 - &&L1 > 1)
- abort ();
-L1:return 1;
-L2:abort ();
-L3:;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/labels-3.c b/gcc/testsuite/gcc.c-torture/compile/labels-3.c
deleted file mode 100644
index 51ac88380b8..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/labels-3.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* Verify that we can narrow the storage associated with label diffs. */
-
-int foo (int a)
-{
- static const short ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
- void *p = &&l1 + ar[a];
- goto *p;
- l1:
- return 1;
- l2:
- return 2;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/labels-3.x b/gcc/testsuite/gcc.c-torture/compile/labels-3.x
deleted file mode 100644
index e9b4118ff44..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/labels-3.x
+++ /dev/null
@@ -1,7 +0,0 @@
-# This test does not compile on mips-irix6 using the native assembler,
-# though it does work with gas. See PR6200. Since we cannot (???)
-# distinguish which assembler is being used, always pass -S for irix.
-
-if { [istarget "mips*-*-irix*"] } { set options "-S" }
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c
deleted file mode 100644
index 13be5142d94..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-register unsigned int cp0count asm ("$c0r1");
-
-int
-main (int argc, char *argv[])
-{
- unsigned int d;
-
- d = cp0count + 3;
- printf ("%d\n", d);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-1.x b/gcc/testsuite/gcc.c-torture/compile/mipscop-1.x
deleted file mode 100644
index 66601ea91f1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-1.x
+++ /dev/null
@@ -1,10 +0,0 @@
-global target_triplet
-
-if { ![istarget "*mips*"] } {
- return 1
-} else {
- set torture_compile_xfail "$target_triplet"
-}
-
-return 0
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c
deleted file mode 100644
index 88e95db12cc..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c
+++ /dev/null
@@ -1,16 +0,0 @@
-register unsigned int c3r1 asm ("$c3r1");
-
-extern unsigned int b, c;
-
-void
-foo ()
-{
- unsigned int a, d;
-
- c3r1 = a;
- b = c3r1;
-
- c3r1 = c;
- d = c3r1;
- printf ("%d\n", d);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-2.x b/gcc/testsuite/gcc.c-torture/compile/mipscop-2.x
deleted file mode 100644
index 66601ea91f1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-2.x
+++ /dev/null
@@ -1,10 +0,0 @@
-global target_triplet
-
-if { ![istarget "*mips*"] } {
- return 1
-} else {
- set torture_compile_xfail "$target_triplet"
-}
-
-return 0
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c
deleted file mode 100644
index eb602c8a54f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c
+++ /dev/null
@@ -1,16 +0,0 @@
-register unsigned int c3r1 asm ("$c3r1"), c3r2 asm ("$c3r2");
-
-extern unsigned int b, c;
-
-void
-foo ()
-{
- unsigned int a, d;
-
- c3r1 = a;
- b = c3r1;
-
- c3r2 = c;
- d = c3r1;
- printf ("%d\n", d);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-3.x b/gcc/testsuite/gcc.c-torture/compile/mipscop-3.x
deleted file mode 100644
index 66601ea91f1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-3.x
+++ /dev/null
@@ -1,10 +0,0 @@
-global target_triplet
-
-if { ![istarget "*mips*"] } {
- return 1
-} else {
- set torture_compile_xfail "$target_triplet"
-}
-
-return 0
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c
deleted file mode 100644
index 368db5e90dc..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c
+++ /dev/null
@@ -1,16 +0,0 @@
-register unsigned long c3r1 asm ("$c3r1"), c3r2 asm ("$c3r2");
-
-extern unsigned long b, c;
-
-void
-foo ()
-{
- unsigned long a, d;
-
- c3r1 = a;
- b = c3r1;
-
- c3r2 = c;
- d = c3r1;
- printf ("%d\n", d);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-4.x b/gcc/testsuite/gcc.c-torture/compile/mipscop-4.x
deleted file mode 100644
index 66601ea91f1..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-4.x
+++ /dev/null
@@ -1,10 +0,0 @@
-global target_triplet
-
-if { ![istarget "*mips*"] } {
- return 1
-} else {
- set torture_compile_xfail "$target_triplet"
-}
-
-return 0
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/packed-1.c b/gcc/testsuite/gcc.c-torture/compile/packed-1.c
deleted file mode 100644
index 709fc3cb102..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/packed-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-struct s
-{
- int e;
-} x;
-
-struct rbuf
-{
- struct s *p __attribute__ ((packed));
-} *b;
-
-f ()
-{
- b->p = &x;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-1.c b/gcc/testsuite/gcc.c-torture/compile/simd-1.c
deleted file mode 100644
index c113bd4fa2d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/simd-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-typedef int v2si __attribute__ ((mode(V2SI)));
-typedef unsigned di __attribute__ ((mode(DI)));
-void foo(unsigned long);
-void bar() {
- v2si x = { 1, 2 };
- foo((di) x);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-2.c b/gcc/testsuite/gcc.c-torture/compile/simd-2.c
deleted file mode 100644
index 694e94f0105..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/simd-2.c
+++ /dev/null
@@ -1,17 +0,0 @@
-typedef float floatvect2 __attribute__((mode(V2SF)));
-
-typedef union
-{
- floatvect2 vector;
- float f[2];
-}resfloatvect2;
-
-void tempf(float *x, float *y)
-{
- floatvect2 temp={x[0],x[1]};
- floatvect2 temp1={y[0],y[1]};
- resfloatvect2 temp2;
- temp2.vector=temp+temp1;
- x[0]=temp2.f[0];
- x[1]=temp2.f[1];
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-3.c b/gcc/testsuite/gcc.c-torture/compile/simd-3.c
deleted file mode 100644
index f7dc54ebf8b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/simd-3.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <float.h>
-
-/* If double is not wider than float, we probably don't have DFmode,
- or at least it's not as wide as double. */
-#if DBL_MANT_DIG > FLT_MANT_DIG
-typedef float floatvect2 __attribute__((mode(V2DF)));
-
-typedef union
-{
- floatvect2 vector;
- double f[2];
-}resfloatvect2;
-
-void tempf(double *x, double *y)
-{
- floatvect2 temp={x[0],x[1]};
- floatvect2 temp1={y[0],y[1]};
- resfloatvect2 temp2;
- temp2.vector=temp+temp1;
- x[0]=temp2.f[0];
- x[1]=temp2.f[1];
-}
-#endif
diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-4.c b/gcc/testsuite/gcc.c-torture/compile/simd-4.c
deleted file mode 100644
index 6ede943c47d..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/simd-4.c
+++ /dev/null
@@ -1,15 +0,0 @@
-typedef float floatvect2 __attribute__((mode(V4SF)));
-
-typedef union
-{
- floatvect2 vector;
- float f[2];
-}resfloatvect2;
-
-void tempf(floatvect2 *x, floatvect2 *y)
-{
- floatvect2 temp= *x;
- floatvect2 temp1=*y;
- resfloatvect2 temp2;
- *x=temp+temp1;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-5.c b/gcc/testsuite/gcc.c-torture/compile/simd-5.c
deleted file mode 100644
index 016cccd1e9f..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/simd-5.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#define vector64 __attribute__((vector_size(8)))
-
-main(){
-
- vector64 int c;
-vector64 int a = {1, -1};
-vector64 int b = {2, -2};
-c = -a + b*b*(-1LL);
-/* c is now {5, 3} */
-
- printf("result is %llx\n", (long long)c);
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-5.x b/gcc/testsuite/gcc.c-torture/compile/simd-5.x
deleted file mode 100644
index 81c9ccaa2f5..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/simd-5.x
+++ /dev/null
@@ -1,16 +0,0 @@
-# h8300 does not have long long
-if { [istarget "h8300-*-*"] } {
- return 1;
-}
-
-# PowerPC-64 doesn't handle this; see PR target/9680
-set torture_eval_before_compile {
- set compiler_conditional_xfail_data {
- "PR target/9680" \
- "powerpc64-*-*" \
- { "*" } \
- { "" }
- }
-}
-
-return 0
diff --git a/gcc/testsuite/gcc.c-torture/compile/structs.c b/gcc/testsuite/gcc.c-torture/compile/structs.c
deleted file mode 100644
index 356f0729f1e..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/structs.c
+++ /dev/null
@@ -1,263 +0,0 @@
-/* Copyright 1996, 1999 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
- Please email any bugs, comments, and/or additions to this file to:
- bug-gdb@prep.ai.mit.edu */
-
-struct struct1 { char a;};
-struct struct2 { char a, b;};
-struct struct3 { char a, b, c; };
-struct struct4 { char a, b, c, d; };
-struct struct5 { char a, b, c, d, e; };
-struct struct6 { char a, b, c, d, e, f; };
-struct struct7 { char a, b, c, d, e, f, g; };
-struct struct8 { char a, b, c, d, e, f, g, h; };
-struct struct9 { char a, b, c, d, e, f, g, h, i; };
-struct struct10 { char a, b, c, d, e, f, g, h, i, j; };
-struct struct11 { char a, b, c, d, e, f, g, h, i, j, k; };
-struct struct12 { char a, b, c, d, e, f, g, h, i, j, k, l; };
-struct struct16 { char a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p; };
-
-struct struct1 foo1 = {'1'}, L1;
-struct struct2 foo2 = { 'a', 'b'}, L2;
-struct struct3 foo3 = { 'A', 'B', 'C'}, L3;
-struct struct4 foo4 = {'1', '2', '3', '4'}, L4;
-struct struct5 foo5 = {'a', 'b', 'c', 'd', 'e'}, L5;
-struct struct6 foo6 = {'A', 'B', 'C', 'D', 'E', 'F'}, L6;
-struct struct7 foo7 = {'1', '2', '3', '4', '5', '6', '7'}, L7;
-struct struct8 foo8 = {'1', '2', '3', '4', '5', '6', '7', '8'}, L8;
-struct struct9 foo9 = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'}, L9;
-struct struct10 foo10 = {
- 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'}, L10;
-struct struct11 foo11 = {
- '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B'}, L11;
-struct struct12 foo12 = {
- 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'}, L12;
-struct struct16 foo16 = {
- 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p'}, L16;
-
-struct struct1 fun1()
-{
- return foo1;
-}
-struct struct2 fun2()
-{
- return foo2;
-}
-struct struct3 fun3()
-{
- return foo3;
-}
-struct struct4 fun4()
-{
- return foo4;
-}
-struct struct5 fun5()
-{
- return foo5;
-}
-struct struct6 fun6()
-{
- return foo6;
-}
-struct struct7 fun7()
-{
- return foo7;
-}
-struct struct8 fun8()
-{
- return foo8;
-}
-struct struct9 fun9()
-{
- return foo9;
-}
-struct struct10 fun10()
-{
- return foo10;
-}
-struct struct11 fun11()
-{
- return foo11;
-}
-struct struct12 fun12()
-{
- return foo12;
-}
-struct struct16 fun16()
-{
- return foo16;
-}
-
-#ifdef PROTOTYPES
-void Fun1(struct struct1 foo1)
-#else
-void Fun1(foo1)
- struct struct1 foo1;
-#endif
-{
- L1 = foo1;
-}
-#ifdef PROTOTYPES
-void Fun2(struct struct2 foo2)
-#else
-void Fun2(foo2)
- struct struct2 foo2;
-#endif
-{
- L2 = foo2;
-}
-#ifdef PROTOTYPES
-void Fun3(struct struct3 foo3)
-#else
-void Fun3(foo3)
- struct struct3 foo3;
-#endif
-{
- L3 = foo3;
-}
-#ifdef PROTOTYPES
-void Fun4(struct struct4 foo4)
-#else
-void Fun4(foo4)
- struct struct4 foo4;
-#endif
-{
- L4 = foo4;
-}
-#ifdef PROTOTYPES
-void Fun5(struct struct5 foo5)
-#else
-void Fun5(foo5)
- struct struct5 foo5;
-#endif
-{
- L5 = foo5;
-}
-#ifdef PROTOTYPES
-void Fun6(struct struct6 foo6)
-#else
-void Fun6(foo6)
- struct struct6 foo6;
-#endif
-{
- L6 = foo6;
-}
-#ifdef PROTOTYPES
-void Fun7(struct struct7 foo7)
-#else
-void Fun7(foo7)
- struct struct7 foo7;
-#endif
-{
- L7 = foo7;
-}
-#ifdef PROTOTYPES
-void Fun8(struct struct8 foo8)
-#else
-void Fun8(foo8)
- struct struct8 foo8;
-#endif
-{
- L8 = foo8;
-}
-#ifdef PROTOTYPES
-void Fun9(struct struct9 foo9)
-#else
-void Fun9(foo9)
- struct struct9 foo9;
-#endif
-{
- L9 = foo9;
-}
-#ifdef PROTOTYPES
-void Fun10(struct struct10 foo10)
-#else
-void Fun10(foo10)
- struct struct10 foo10;
-#endif
-{
- L10 = foo10;
-}
-#ifdef PROTOTYPES
-void Fun11(struct struct11 foo11)
-#else
-void Fun11(foo11)
- struct struct11 foo11;
-#endif
-{
- L11 = foo11;
-}
-#ifdef PROTOTYPES
-void Fun12(struct struct12 foo12)
-#else
-void Fun12(foo12)
- struct struct12 foo12;
-#endif
-{
- L12 = foo12;
-}
-#ifdef PROTOTYPES
-void Fun16(struct struct16 foo16)
-#else
-void Fun16(foo16)
- struct struct16 foo16;
-#endif
-{
- L16 = foo16;
-}
-
-int main()
-{
-#ifdef usestubs
- set_debug_traps();
- breakpoint();
-#endif
-
- /* TEST C FUNCTIONS */
- L1 = fun1();
- L2 = fun2();
- L3 = fun3();
- L4 = fun4();
- L5 = fun5();
- L6 = fun6();
- L7 = fun7();
- L8 = fun8();
- L9 = fun9();
- L10 = fun10();
- L11 = fun11();
- L12 = fun12();
- L16 = fun16();
-
- foo1.a = foo2.a = foo3.a = foo4.a = foo5.a = foo6.a = foo7.a = foo8.a =
- foo9.a = foo10.a = foo11.a = foo12.a = foo16.a = '$';
-
- Fun1(foo1);
- Fun2(foo2);
- Fun3(foo3);
- Fun4(foo4);
- Fun5(foo5);
- Fun6(foo6);
- Fun7(foo7);
- Fun8(foo8);
- Fun9(foo9);
- Fun10(foo10);
- Fun11(foo11);
- Fun12(foo12);
- Fun16(foo16);
-
- return 0;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/trunctfdf.c b/gcc/testsuite/gcc.c-torture/compile/trunctfdf.c
deleted file mode 100644
index 29d6ed0dc9a..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/trunctfdf.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Sparc w/128-bit long double bombed on this because even though
- the trunctfdf libcall passed the long double by reference, the
- libcall was still marked as LCT_CONST instead of LCT_PURE. */
-
-double *copy(long double *first, long double *last, double *result)
-{
- int n;
- for (n = last - first; n > 0; --n) {
- *result = *first;
- ++first;
- ++result;
- }
- return result;
-}
diff --git a/gcc/testsuite/gcc.c-torture/compile/widechar-1.c b/gcc/testsuite/gcc.c-torture/compile/widechar-1.c
deleted file mode 100644
index 5d89f33a864..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/widechar-1.c
+++ /dev/null
@@ -1 +0,0 @@
-char *s = L"a" "b";
diff --git a/gcc/testsuite/gcc.c-torture/compile/zero-strct-1.c b/gcc/testsuite/gcc.c-torture/compile/zero-strct-1.c
deleted file mode 100644
index d3db812691b..00000000000
--- a/gcc/testsuite/gcc.c-torture/compile/zero-strct-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-typedef struct { } empty_t;
-
-f ()
-{
- empty_t i;
- bar (i);
-}
diff --git a/libjava/gnu/javax/rmi/CORBA/DelegateFactory.java b/libjava/gnu/javax/rmi/CORBA/DelegateFactory.java
deleted file mode 100644
index c98549b4059..00000000000
--- a/libjava/gnu/javax/rmi/CORBA/DelegateFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/* DelegateFactory.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package gnu.javax.rmi.CORBA;
-
-import java.util.HashMap;
-import javax.rmi.CORBA.Util;
-
-public class DelegateFactory
-{
- private static HashMap cache = new HashMap(4);
-
- public static synchronized Object getInstance(String type)
- throws GetDelegateInstanceException
- {
- Object r = cache.get(type);
- if (r != null)
- return r;
- String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class");
- if (dcname == null)
- {
- //throw new DelegateException
- // ("no javax.rmi.CORBA.XXXClass property sepcified.");
- dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl";
- }
- try
- {
- Class dclass = Class.forName(dcname);
- r = dclass.newInstance();
- cache.put(type, r);
- return r;
- }
- catch(Exception e)
- {
- throw new GetDelegateInstanceException
- ("Exception when trying to get delegate instance:" + dcname, e);
- }
- }
-}
diff --git a/libjava/gnu/javax/rmi/CORBA/GetDelegateInstanceException.java b/libjava/gnu/javax/rmi/CORBA/GetDelegateInstanceException.java
deleted file mode 100644
index 27b84f12239..00000000000
--- a/libjava/gnu/javax/rmi/CORBA/GetDelegateInstanceException.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/* GetDelegateInstanceException.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package gnu.javax.rmi.CORBA;
-
-import java.io.PrintStream;
-import java.io.PrintWriter;
-
-public class GetDelegateInstanceException
- extends Exception
-{
- private Throwable next;
-
- public GetDelegateInstanceException(String msg)
- {
- super(msg);
- }
-
- public GetDelegateInstanceException(String msg, Throwable next)
- {
- super(msg, next);
- }
-}
diff --git a/libjava/gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java b/libjava/gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java
deleted file mode 100644
index 973c4c4f89f..00000000000
--- a/libjava/gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/* PortableRemoteObjectDelegateImpl.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package gnu.javax.rmi.CORBA;
-
-import java.rmi.*;
-import java.rmi.server.*;
-import gnu.javax.rmi.*;
-import javax.rmi.CORBA.*;
-
-public class PortableRemoteObjectDelegateImpl
- implements PortableRemoteObjectDelegate
-{
-
- public PortableRemoteObjectDelegateImpl()
- {
- }
-
- public void connect(Remote remote, Remote remote1)
- throws RemoteException
- {
- throw new Error("Not implemented for PortableRemoteObjectDelegateImpl");
- }
-
- public void exportObject(Remote obj)
- throws RemoteException
- {
- PortableServer.exportObject(obj);
- }
-
- public Object narrow(Object narrowFrom, Class narrowTo)
- throws ClassCastException
- {
- if (narrowTo == null)
- throw new ClassCastException("Can't narrow to null class");
- if (narrowFrom == null)
- return null;
-
- Class fromClass = narrowFrom.getClass();
- Object result = null;
-
- try
- {
- if (narrowTo.isAssignableFrom(fromClass))
- result = narrowFrom;
- else
- {
- System.out.println("We still haven't implement this case: narrow "
- + narrowFrom + " of type " + fromClass + " to "
- + narrowTo);
- Class[] cs = fromClass.getInterfaces();
- for (int i = 0; i < cs.length; i++)
- System.out.println(cs[i]);
- Exception e1 = new Exception();
- try
- {
- throw e1;
- }
- catch(Exception ee)
- {
- ee.printStackTrace();
- }
- System.exit(2);
- //throw new Error("We still haven't implement this case: narrow "
- // + narrowFrom + " of type " + fromClass + " to "
- // + narrowTo);
- /*
- ObjectImpl objimpl = (ObjectImpl)narrowFrom;
- if(objimpl._is_a(PortableServer.getTypeName(narrowTo)))
- result = PortableServer.getStubFromObjectImpl(objimpl, narrowTo);
- */
- }
- }
- catch(Exception e)
- {
- result = null;
- }
-
- if (result == null)
- throw new ClassCastException("Can't narrow from "
- + fromClass + " to " + narrowTo);
-
- return result;
- }
-
- public Remote toStub(Remote obj)
- throws NoSuchObjectException
- {
- return PortableServer.toStub(obj);
- }
-
- public void unexportObject(Remote obj)
- throws NoSuchObjectException
- {
- PortableServer.unexportObject(obj);
- }
-
-}
diff --git a/libjava/gnu/javax/rmi/CORBA/StubDelegateImpl.java b/libjava/gnu/javax/rmi/CORBA/StubDelegateImpl.java
deleted file mode 100644
index 894e50236fd..00000000000
--- a/libjava/gnu/javax/rmi/CORBA/StubDelegateImpl.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/* StubDelegateImpl.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package gnu.javax.rmi.CORBA;
-
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-//import org.omg.CORBA.portable.Delegate;
-//import org.omg.CORBA.portable.InputStream;
-//import org.omg.CORBA.portable.OutputStream;
-//import org.omg.CORBA_2_3.portable.ObjectImpl;
-//import org.omg.CORBA.portable.ObjectImpl;
-//import org.omg.CORBA.BAD_OPERATION;
-//import org.omg.CORBA.ORB;
-import java.rmi.RemoteException;
-import javax.rmi.CORBA.Stub;
-import javax.rmi.CORBA.StubDelegate;
-import javax.rmi.CORBA.Tie;
-import javax.rmi.CORBA.StubDelegate;
-
-public class StubDelegateImpl
- implements StubDelegate
-{
-
- private int hashCode;
-
- public StubDelegateImpl(){
- hashCode = 0;
- }
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- public void connect(Stub self, javax.rmi.ORB orb)
- throws RemoteException
- {
- throw new Error("Not implemented for StubDelegate");
- }
-
- public boolean equals(Stub self, Object obj)
- {
- if(self == null || obj == null)
- return self == obj;
- if(!(obj instanceof Stub))
- return false;
- return self.hashCode() == ((Stub)obj).hashCode();
- }
-
- public int hashCode(Stub self)
- {
- //FIX ME
- return hashCode;
- }
-
- public String toString(Stub self)
- {
- try
- {
- return self._orb().object_to_string(self);
- }
- // XXX javax.rmi.BAD_OPERATION -> org.omg.CORBA.BAD_OPERATION
- catch(javax.rmi.BAD_OPERATION bad_operation)
- {
- return null;
- }
- }
-
- public void readObject(Stub self, ObjectInputStream s)
- throws IOException, ClassNotFoundException
- {
- throw new Error("Not implemented for StubDelegate");
- }
-
- public void writeObject(Stub self, ObjectOutputStream s)
- throws IOException
- {
- throw new Error("Not implemented for StubDelegate");
- }
-
-}
diff --git a/libjava/gnu/javax/rmi/CORBA/UtilDelegateImpl.java b/libjava/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
deleted file mode 100644
index 70b2e60c673..00000000000
--- a/libjava/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/* UtilDelegateImpl.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package gnu.javax.rmi.CORBA;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-import java.rmi.server.RMIClassLoader;
-import java.net.MalformedURLException;
-import java.io.*;
-//import org.omg.CORBA.ORB;
-//import org.omg.CORBA.SystemException;
-//import org.omg.CORBA.portable.InputStream;
-//import org.omg.CORBA.portable.OutputStream;
-import javax.rmi.CORBA.*;
-
-public class UtilDelegateImpl
- implements UtilDelegate
-{
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- public Object copyObject(Object obj, javax.rmi.ORB orb)
- throws RemoteException
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- public Object[] copyObjects(Object obj[], javax.rmi.ORB orb)
- throws RemoteException
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public ValueHandler createValueHandler()
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public String getCodebase(Class clz)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public Tie getTie(Remote target)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public boolean isLocal(Stub stub)
- throws RemoteException
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public Class loadClass(String className, String remoteCodebase,
- ClassLoader loader)
- throws ClassNotFoundException
- {
- try{
- if (remoteCodebase == null)
- return RMIClassLoader.loadClass(className);
- else
- return RMIClassLoader.loadClass(remoteCodebase, className);
- }
- catch (MalformedURLException e1)
- {
- throw new ClassNotFoundException(className, e1);
- }
- catch(ClassNotFoundException e2)
- {
- if(loader != null)
- return loader.loadClass(className);
- else
- return null;
- }
- }
-
- public RemoteException mapSystemException(SystemException ex)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public Object readAny(InputStream in)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public void registerTarget(Tie tie, Remote target)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public void unexportObject(Remote target)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public RemoteException wrapException(Throwable orig)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public void writeAbstractObject(OutputStream out, Object obj)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public void writeAny(OutputStream out, Object obj)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-
- public void writeRemoteObject(OutputStream out, Object obj)
- {
- throw new Error("Not implemented for UtilDelegate");
- }
-}
diff --git a/libjava/gnu/javax/rmi/CORBA/ValueHandlerImpl.java b/libjava/gnu/javax/rmi/CORBA/ValueHandlerImpl.java
deleted file mode 100644
index 6935aa68c4c..00000000000
--- a/libjava/gnu/javax/rmi/CORBA/ValueHandlerImpl.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/* ValueHandlerImpl.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package gnu.javax.rmi.CORBA;
-
-import java.io.*;
-//import org.omg.CORBA.portable.InputStream;
-//import org.omg.CORBA.portable.OutputStream;
-//import org.omg.SendingContext.RunTime;
-import javax.rmi.CORBA.ValueHandler;
-
-public class ValueHandlerImpl
- implements ValueHandler
-{
-
- public String getRMIRepositoryID(Class clz)
- {
- throw new Error("Not implemented for ValueHandler");
- }
-
- // XXX - Runtime -> RunTime
- public Runtime getRunTimeCodeBase()
- {
- throw new Error("Not implemented for ValueHandler");
- }
-
- public boolean isCustomMarshaled(Class clz)
- {
- throw new Error("Not implemented for ValueHandler");
- }
-
- // XXX - Runtime -> RunTime
- public Serializable readValue(InputStream in, int offset, Class clz, String repositoryID, Runtime sender)
- {
- throw new Error("Not implemented for ValueHandler");
- }
-
- public Serializable writeReplace(Serializable value)
- {
- throw new Error("Not implemented for ValueHandler");
- }
-
- public void writeValue(OutputStream out, Serializable value)
- {
- throw new Error("Not implemented for ValueHandler");
- }
-}
diff --git a/libjava/gnu/javax/rmi/PortableServer.java b/libjava/gnu/javax/rmi/PortableServer.java
deleted file mode 100644
index b5022cab7b3..00000000000
--- a/libjava/gnu/javax/rmi/PortableServer.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/* PortableServer.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package gnu.javax.rmi;
-
-import java.util.Hashtable;
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-import java.rmi.NoSuchObjectException;
-import java.rmi.server.ExportException;
-import java.rmi.server.UnicastRemoteObject;
-import java.rmi.server.RemoteStub;
-import javax.rmi.CORBA.*;
-//import org.omg.CORBA.portable.ObjectImpl;
-
-/**
- * The relationship of PortableRemoteObjectImpl with PortableServer
- * is like that of UnicastRemoteObject with UnicastServer
- */
-public class PortableServer
-{
- static private Hashtable tieCache = new Hashtable();
- static private Object NO_TIE = new Object();
-
- public static final synchronized void exportObject(Remote obj)
- throws RemoteException
- {
- if(Util.getTie(obj) != null)
- return;
-
- Tie tie = getTieFromRemote(obj);
- if (tie != null)
- Util.registerTarget(tie, obj);
- else
- UnicastRemoteObject.exportObject(obj);
- }
-
- public static final void unexportObject(Remote obj)
- {
- if (Util.getTie(obj) != null)
- Util.unexportObject(obj);
- if (tieCache.get(obj) != null) //??
- tieCache.remove(obj);
- }
-
- public static final Remote toStub(Remote obj)
- throws NoSuchObjectException
- {
- if (obj instanceof Stub || obj instanceof RemoteStub)
- return obj;
-
- Tie tie = Util.getTie(obj);
- Remote stub;
- if (tie != null)
- stub = getStubFromTie(tie);
- else
- throw new NoSuchObjectException("Can't toStub an unexported object");
- return stub;
- }
-
- static synchronized Tie getTieFromRemote(Remote obj)
- {
- Object tie = tieCache.get(obj);
- if (tie == null)
- {
- tie = getTieFromClass(obj.getClass());
- if(tie == null)
- tieCache.put(obj, NO_TIE);
- else
- tieCache.put(obj, tie);
- }
- else
- if(tie != NO_TIE)
- {
- try
- {
- tie = obj.getClass().newInstance();
- }
- catch(Exception _)
- {
- tie = null;
- }
- }
- else //NO_TIE
- tie = null;
-
- return (Tie)tie;
- }
-
- static synchronized Tie getTieFromClass(Class clz)
- {
- //FIX ME
- return null;
- }
-
- public static Remote getStubFromTie(Tie tie)
- {
- //FIX ME
- return null;
- }
-
- public static Remote getStubFromObjectImpl(ObjectImpl objimpl, Class toClass)
- {
- //FIX ME
- return null;
- }
-}
diff --git a/libjava/javax/print/attribute/Attribute.java b/libjava/javax/print/attribute/Attribute.java
deleted file mode 100644
index babf200651c..00000000000
--- a/libjava/javax/print/attribute/Attribute.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Attribute.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-package javax.print.attribute;
-
-import java.io.Serializable;
-
-/**
- * @author Michael Koch
- */
-public interface Attribute extends Serializable
-{
- public Class getCategory ();
-
- public String getName ();
-}
diff --git a/libjava/javax/print/attribute/AttributeSet.java b/libjava/javax/print/attribute/AttributeSet.java
deleted file mode 100644
index 325251a1dd7..00000000000
--- a/libjava/javax/print/attribute/AttributeSet.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/* AttributeSet.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-package javax.print.attribute;
-
-/**
- * @author Michael Koch
- */
-public interface AttributeSet
-{
- /**
- * Adds the specified attribute value to this attribute set
- * if it is not already present.
- */
- public boolean add (Attribute attribute);
-
- /**
- * Adds all of the elements in the specified set to this attribute.
- */
- public boolean addAll (AttributeSet attributes);
-
- public void clear ();
-
- public boolean containsKey (Class category);
-
- public boolean containsValue (Attribute attribute);
-
- public boolean equals (Object obj);
-
- public Attribute get (Class Category);
-
- public int hashCode ();
-
- public boolean isEmpty ();
-
- public boolean remove (Attribute attribute);
-
- public boolean remove (Class category);
-
- public int size ();
-
- public Attribute[] toArray ();
-}
diff --git a/libjava/javax/print/attribute/PrintRequestAttributeSet.java b/libjava/javax/print/attribute/PrintRequestAttributeSet.java
deleted file mode 100644
index f8f6dba2d49..00000000000
--- a/libjava/javax/print/attribute/PrintRequestAttributeSet.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/* PrintRequestAttributeSet.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-package javax.print.attribute;
-
-/**
- * @author Michael Koch
- */
-public interface PrintRequestAttributeSet extends AttributeSet
-{
- /**
- * Adds the specified attribute value to this attribute set
- * if it is not already present.
- */
- public boolean add (Attribute attribute);
-
- /**
- * Adds all of the elements in the specified set to this attribute.
- */
- public boolean addAll (AttributeSet attributes);
-}
diff --git a/libjava/javax/rmi/BAD_OPERATION.java b/libjava/javax/rmi/BAD_OPERATION.java
deleted file mode 100644
index 36081a47c57..00000000000
--- a/libjava/javax/rmi/BAD_OPERATION.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package javax.rmi;
-
-/** XXX - Stub till we have org.omg.CORBA */
-public class BAD_OPERATION extends Exception { }
diff --git a/libjava/javax/rmi/CORBA/ClassDesc.java b/libjava/javax/rmi/CORBA/ClassDesc.java
deleted file mode 100644
index 052046df926..00000000000
--- a/libjava/javax/rmi/CORBA/ClassDesc.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/* ClassDesc.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi.CORBA;
-
-import java.io.Serializable;
-
-public class ClassDesc
- implements Serializable
-{
- /*
- * The following is serialized form required by Java API Doc
- */
- private String repid;
- private String codebase;
-
- public ClassDesc()
- {
- }
-}
diff --git a/libjava/javax/rmi/CORBA/ObjectImpl.java b/libjava/javax/rmi/CORBA/ObjectImpl.java
deleted file mode 100644
index d76d673cede..00000000000
--- a/libjava/javax/rmi/CORBA/ObjectImpl.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package javax.rmi.CORBA;
-
-/** XXX - Stub till we have org.omg.CORBA */
-public class ObjectImpl
-{
- public ObjectImpl _orb() { return null; }
- public String object_to_string(ObjectImpl o)
- throws javax.rmi.BAD_OPERATION { return null; }
-}
diff --git a/libjava/javax/rmi/CORBA/PortableRemoteObjectDelegate.java b/libjava/javax/rmi/CORBA/PortableRemoteObjectDelegate.java
deleted file mode 100644
index a073cf4705c..00000000000
--- a/libjava/javax/rmi/CORBA/PortableRemoteObjectDelegate.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/* PortableRemoteObjectDelegate.java -- Interface supporting PortableRemoteObject
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi.CORBA;
-
-import java.rmi.*;
-
-/**
- * A delegate is a singleton class that support delegation for method
- * implementation in PortableRemoteObject.
- */
-public interface PortableRemoteObjectDelegate
-{
- void connect(Remote target, Remote source)
- throws RemoteException;
-
- void exportObject(Remote obj)
- throws RemoteException;
-
- Object narrow(Object narrowFrom, Class narrowTo)
- throws ClassCastException;
-
- Remote toStub(Remote obj)
- throws NoSuchObjectException;
-
- void unexportObject(Remote obj)
- throws NoSuchObjectException;
-}
diff --git a/libjava/javax/rmi/CORBA/Stub.java b/libjava/javax/rmi/CORBA/Stub.java
deleted file mode 100644
index c79b85cb46e..00000000000
--- a/libjava/javax/rmi/CORBA/Stub.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/* Stub.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi.CORBA;
-
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-import java.io.Serializable;
-import java.rmi.RemoteException;
-//import org.omg.CORBA.ORB;
-//import org.omg.CORBA_2_3.portable.ObjectImpl;
-//import org.omg.CORBA.portable.ObjectImpl;
-import gnu.javax.rmi.CORBA.DelegateFactory;
-import gnu.javax.rmi.CORBA.GetDelegateInstanceException;
-
-public abstract class Stub extends ObjectImpl
- implements Serializable
-{
- private transient StubDelegate delegate;
-
- protected Stub()
- {
- try
- {
- delegate = (StubDelegate)DelegateFactory.getInstance("Stub");
- }
- catch(GetDelegateInstanceException e)
- {
- delegate = null;
- }
- }
-
- public int hashCode()
- {
- if(delegate != null)
- return delegate.hashCode(this);
- else
- return 0;
- }
-
- public boolean equals(Object obj)
- {
- if(delegate != null)
- return delegate.equals(this, obj);
- else
- return false;
- }
-
- public String toString()
- {
- String s = null;
- if(delegate != null)
- s = delegate.toString(this);
- if(s == null)
- s = super.toString();
- return s;
- }
-
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- public void connect(javax.rmi.ORB orb)
- throws RemoteException
- {
- if(delegate != null)
- delegate.connect(this, orb);
- }
-
- /**
- * The following two routines are required by serialized form of Java API doc.
- */
- private void readObject(ObjectInputStream stream)
- throws IOException, ClassNotFoundException
- {
- if(delegate != null)
- delegate.readObject(this, stream);
- }
-
- private void writeObject(ObjectOutputStream stream)
- throws IOException
- {
- if(delegate != null)
- delegate.writeObject(this, stream);
- }
-
-}
diff --git a/libjava/javax/rmi/CORBA/StubDelegate.java b/libjava/javax/rmi/CORBA/StubDelegate.java
deleted file mode 100644
index 6c7f69fe7dc..00000000000
--- a/libjava/javax/rmi/CORBA/StubDelegate.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/* StubDelegate.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi.CORBA;
-
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-import java.rmi.RemoteException;
-//import org.omg.CORBA.ORB;
-
-public interface StubDelegate
-{
-
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- void connect(Stub self, javax.rmi.ORB orb)
- throws RemoteException;
-
- boolean equals(Stub self, Object obj);
-
- int hashCode(Stub self);
-
- void readObject(Stub self, ObjectInputStream s)
- throws IOException, ClassNotFoundException;
-
- String toString(Stub self);
-
- void writeObject(Stub self, ObjectOutputStream s)
- throws IOException;
-}
diff --git a/libjava/javax/rmi/CORBA/SystemException.java b/libjava/javax/rmi/CORBA/SystemException.java
deleted file mode 100644
index f8afdc35e35..00000000000
--- a/libjava/javax/rmi/CORBA/SystemException.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package javax.rmi.CORBA;
-
-/** XXX - Stub till we have org.omg.CORBA */
-public class SystemException extends Exception { }
diff --git a/libjava/javax/rmi/CORBA/Tie.java b/libjava/javax/rmi/CORBA/Tie.java
deleted file mode 100644
index ca14e3d4236..00000000000
--- a/libjava/javax/rmi/CORBA/Tie.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Tie.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi.CORBA;
-
-import java.rmi.Remote;
-//import org.omg.CORBA.ORB;
-//import org.omg.CORBA.portable.InvokeHandler;
-
-public interface Tie // XXX extends InvokeHandler
-{
-
- void deactivate();
-
- Remote getTarget();
-
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- javax.rmi.ORB orb();
-
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- void orb(javax.rmi.ORB orb);
-
- void setTarget(Remote target);
-
- // XXX Object -> org.omg.CORBA.Object
- Object thisObject();
-}
diff --git a/libjava/javax/rmi/CORBA/Util.java b/libjava/javax/rmi/CORBA/Util.java
deleted file mode 100644
index 45a189d97c5..00000000000
--- a/libjava/javax/rmi/CORBA/Util.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/* Util.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi.CORBA;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-import java.lang.Object;
-import java.io.*;
-//import org.omg.CORBA.*;
-//import org.omg.CORBA.portable.InputStream;
-//import org.omg.CORBA.portable.OutputStream;
-import gnu.javax.rmi.CORBA.DelegateFactory;
-import gnu.javax.rmi.CORBA.GetDelegateInstanceException;
-
-public class Util
-{
-
- private static UtilDelegate delegate;
- static
- {
- try
- {
- delegate = (UtilDelegate)DelegateFactory.getInstance("Util");
- }
- catch(GetDelegateInstanceException e)
- {
- delegate = null;
- }
- }
-
- private Util()
- {
- }
-
- // XXX - javax.rmi.ORB -> org.omg.CORBA.ORB
- public static Object copyObject(Object obj, javax.rmi.ORB orb)
- throws RemoteException
- {
- if(delegate != null)
- return delegate.copyObject(obj, orb);
- else
- return null;
- }
-
- // XXX - javax.rmi.ORB -> org.omg.CORBA.ORB
- public static Object[] copyObjects(Object obj[], javax.rmi.ORB orb)
- throws RemoteException
- {
- if(delegate != null)
- return delegate.copyObjects(obj, orb);
- else
- return null;
- }
-
- public static ValueHandler createValueHandler()
- {
- if(delegate != null)
- return delegate.createValueHandler();
- else
- return null;
- }
-
- public static String getCodebase(Class clz)
- {
- if(delegate != null)
- return delegate.getCodebase(clz);
- else
- return null;
- }
-
- public static Tie getTie(Remote target)
- {
- if(delegate != null)
- return delegate.getTie(target);
- else
- return null;
- }
-
- public static boolean isLocal(Stub stub)
- throws RemoteException
- {
- if(delegate != null)
- return delegate.isLocal(stub);
- else
- return false;
- }
-
- public static Class loadClass(String className, String remoteCodebase, ClassLoader loader)
- throws ClassNotFoundException
- {
- if(delegate != null)
- return delegate.loadClass(className, remoteCodebase, loader);
- else
- throw new ClassNotFoundException(className + ": delegate == null");
- }
-
- public static RemoteException mapSystemException(SystemException ex)
- {
- if(delegate != null)
- return delegate.mapSystemException(ex);
- else
- return null;
- }
-
- public static Object readAny(InputStream in)
- {
- if(delegate != null)
- return delegate.readAny(in);
- else
- return null;
- }
-
- public static void registerTarget(Tie tie, Remote target)
- {
- if(delegate != null)
- delegate.registerTarget(tie, target);
- }
-
- public static void unexportObject(Remote target)
- {
- if(delegate != null)
- delegate.unexportObject(target);
- }
-
- public static RemoteException wrapException(Throwable orig)
- {
- if(delegate != null)
- return delegate.wrapException(orig);
- else
- return null;
- }
-
- public static void writeAbstractObject(OutputStream out, Object obj)
- {
- if(delegate != null)
- delegate.writeAbstractObject(out, obj);
- }
-
- public static void writeAny(OutputStream out, Object obj)
- {
- if(delegate != null)
- delegate.writeAny(out, obj);
- }
-
- public static void writeRemoteObject(OutputStream out, Object obj)
- {
- if(delegate != null)
- delegate.writeRemoteObject(out, obj);
- }
-
-}
diff --git a/libjava/javax/rmi/CORBA/UtilDelegate.java b/libjava/javax/rmi/CORBA/UtilDelegate.java
deleted file mode 100644
index 4d611bc8bfb..00000000000
--- a/libjava/javax/rmi/CORBA/UtilDelegate.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/* UtilDelegate.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi.CORBA;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-import java.io.*;
-//import org.omg.CORBA.ORB;
-//import org.omg.CORBA.SystemException;
-//import org.omg.CORBA.portable.InputStream;
-//import org.omg.CORBA.portable.OutputStream;
-
-public interface UtilDelegate
-{
-
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException;
-
- // XXX javax.rmi.ORB -> org.omg.CORBA.ORB
- Object[] copyObjects(Object obj[], javax.rmi.ORB orb) throws RemoteException;
-
- ValueHandler createValueHandler();
-
- String getCodebase(Class clz);
-
- Tie getTie(Remote target);
-
- boolean isLocal(Stub stub) throws RemoteException;
-
- Class loadClass(String className, String remoteCodebase,
- ClassLoader loader) throws ClassNotFoundException;
-
- RemoteException mapSystemException(SystemException ex);
-
- Object readAny(InputStream in);
-
- void registerTarget(Tie tie, Remote target);
-
- void unexportObject(Remote target);
-
- RemoteException wrapException(Throwable orig);
-
- void writeAbstractObject(OutputStream out, Object obj);
-
- void writeAny(OutputStream out, Object obj);
-
- void writeRemoteObject(OutputStream out, Object obj);
-}
diff --git a/libjava/javax/rmi/CORBA/ValueHandler.java b/libjava/javax/rmi/CORBA/ValueHandler.java
deleted file mode 100644
index 3a008f18cca..00000000000
--- a/libjava/javax/rmi/CORBA/ValueHandler.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/* ValueHandler.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi.CORBA;
-
-import java.io.*;
-//import org.omg.CORBA.portable.InputStream;
-//import org.omg.CORBA.portable.OutputStream;
-//import org.omg.SendingContext.RunTime;
-
-public interface ValueHandler
-{
-
- String getRMIRepositoryID(Class clz);
-
- // XXX Runtime -> RunTime
- Runtime getRunTimeCodeBase();
-
- boolean isCustomMarshaled(Class clz);
-
- // XXX Runtime -> RunTime
- Serializable readValue(InputStream in, int offset, Class clz,
- String repositoryID, Runtime sender);
-
- Serializable writeReplace(Serializable value);
-
- void writeValue(OutputStream out, Serializable value);
-}
diff --git a/libjava/javax/rmi/ORB.java b/libjava/javax/rmi/ORB.java
deleted file mode 100644
index be7a894e65a..00000000000
--- a/libjava/javax/rmi/ORB.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package javax.rmi;
-
-/** XXX - Stub till we have org.omg.CORBA */
-public class ORB { }
diff --git a/libjava/javax/rmi/PortableRemoteObject.java b/libjava/javax/rmi/PortableRemoteObject.java
deleted file mode 100644
index ee40d9c9e74..00000000000
--- a/libjava/javax/rmi/PortableRemoteObject.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/* PortableRemoteObject.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package javax.rmi;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-import java.rmi.NoSuchObjectException;
-import gnu.javax.rmi.CORBA.DelegateFactory;
-import gnu.javax.rmi.CORBA.GetDelegateInstanceException;
-import javax.rmi.CORBA.PortableRemoteObjectDelegate;
-import javax.rmi.CORBA.Util;
-
-public class PortableRemoteObject
- implements Remote /* why doc doesn't say should implement Remote */
-{
-
- private static PortableRemoteObjectDelegate delegate;
- static
- {
- try
- {
- delegate = (PortableRemoteObjectDelegate)DelegateFactory.getInstance
- ("PortableRemoteObject");
- }
- catch(GetDelegateInstanceException e)
- {
- e.printStackTrace();
- delegate = null;
- }
- }
-
- protected PortableRemoteObject()
- throws RemoteException
- {
- if(delegate != null)
- exportObject((Remote)this);
- }
-
- public static void connect(Remote target, Remote source)
- throws RemoteException
- {
- if(delegate != null)
- delegate.connect(target, source);
- }
-
- public static void exportObject(Remote obj)
- throws RemoteException
- {
- if(delegate != null)
- delegate.exportObject(obj);
- }
-
- public static Object narrow(Object narrowFrom, Class narrowTo)
- throws ClassCastException
- {
- if(delegate != null)
- return delegate.narrow(narrowFrom, narrowTo);
- else
- return null;
- }
-
- public static Remote toStub(Remote obj)
- throws NoSuchObjectException
- {
- if(delegate != null)
- return delegate.toStub(obj);
- else
- return null;
- }
-
- public static void unexportObject(Remote obj)
- throws NoSuchObjectException
- {
- if(delegate != null)
- delegate.unexportObject(obj);
- }
-
-}
diff --git a/libjava/testsuite/libjava.cni/cni.exp b/libjava/testsuite/libjava.cni/cni.exp
deleted file mode 100644
index 22df1462c1d..00000000000
--- a/libjava/testsuite/libjava.cni/cni.exp
+++ /dev/null
@@ -1,119 +0,0 @@
-# Tests for CNI code.
-
-# Compile a single C++ file and produce a .o file. OPTIONS is a list
-# of options to pass to the compiler. Returns 0 on failure, 1 on
-# success.
-proc gcj_cni_compile_cxx_to_o {file {options {}}} {
- global srcdir
-
- set name [file rootname [file tail $file]]
- set oname ${name}.o
-
- # Find the generated header.
- lappend options "additional_flags=-I. -I.."
- # Find libgcj headers.
- lappend options "additional_flags=-I$srcdir/.."
-
- set x [libjava_prune_warnings \
- [target_compile $file $oname object $options]]
- if {$x != ""} {
- verbose "target_compile failed: $x" 2
- fail "[file tail $file] compilation"
- return 0
- }
-
- pass "[file tail $file] compilation"
- return 1
-}
-
-# Build header files given name of .java file. Return 0 on failure.
-proc gcj_cni_build_headers {file} {
- set gcjh [find_gcjh]
- set jvscan [find_jvscan]
-
- set class_out [string trim \
- [libjava_prune_warnings \
- [lindex [local_exec "$jvscan --encoding=UTF-8 $file --list-class" "" "" 300] 1]]]
- if {[string match "*parse error*" $class_out]} {
- fail "$file header generation"
- return 0
- }
-
- foreach file [split $class_out] {
- set x [string trim [libjava_prune_warnings \
- [lindex [local_exec "$gcjh $file" "" "" 300] 1]]]
- if {$x != ""} {
- verbose "local_exec failed: $x" 2
- fail "$file header generation"
- return 0
- }
- }
-
- pass "$file header generation"
- return 1
-}
-
-# Do all the work for a single CNI test. Return 0 on failure.
-proc gcj_cni_test_one {file} {
- global runtests
-
- # The base name. We use it for several purposes.
- set main [file rootname [file tail $file]]
- if {! [runtest_file_p $runtests $main]} {
- # Simply skip it.
- return 1
- }
-
- if {! [bytecompile_file $file [pwd]]} {
- fail "bytecompile $file"
- # FIXME - should use `untested' on all remaining tests.
- # But that is hard.
- return 0
- }
- pass "bytecompile $file"
-
- if {! [gcj_cni_build_headers $file]} {
- # FIXME
- return 0
- }
-
- set cfile [file join [file dirname $file] nat$main.cc]
- if {! [gcj_cni_compile_cxx_to_o $cfile]} {
- # FIXME
- return 0
- }
-
- if {! [gcj_link $main $main [list $file nat$main.o]]} {
- # FIXME
- return 0
- }
-
- if {! [gcj_invoke $main [file rootname $file].out {}]} {
- # FIXME
- return 0
- }
-
- # When we succeed we remove all our clutter.
- eval gcj_cleanup [glob -nocomplain -- ${main}.*] [list $main nat$main.o]
-
- return 1
-}
-
-# Run the CNI tests.
-proc gcj_cni_run {} {
- global srcdir subdir
- global build_triplet host_triplet
-
- # For now we only test CNI on native builds.
- if {$build_triplet == $host_triplet} {
- catch { lsort [glob -nocomplain ${srcdir}/${subdir}/*.java] } srcfiles
-
- foreach x $srcfiles {
- gcj_cni_test_one $x
- }
- } else {
- verbose "CNI tests not run in cross-compilation environment"
- }
-}
-
-gcj_cni_run
diff --git a/libjava/testsuite/libjava.cni/longfield.java b/libjava/testsuite/libjava.cni/longfield.java
deleted file mode 100644
index 917bf953a05..00000000000
--- a/libjava/testsuite/libjava.cni/longfield.java
+++ /dev/null
@@ -1,22 +0,0 @@
-public class longfield
-{
- long lval = 232300;
- boolean bval = true;
- String sval = "maude";
-
- public native void doitc ();
-
- public void doitj()
- {
- System.out.println(lval);
- System.out.println(bval);
- System.out.println(sval);
- }
-
- public static void main(String[] args)
- {
- longfield f = new longfield();
- f.doitc();
- f.doitj();
- }
-}
diff --git a/libjava/testsuite/libjava.cni/longfield.out b/libjava/testsuite/libjava.cni/longfield.out
deleted file mode 100644
index d041bbbf7d0..00000000000
--- a/libjava/testsuite/libjava.cni/longfield.out
+++ /dev/null
@@ -1,6 +0,0 @@
-232300
-true
-maude
-232300
-true
-maude
diff --git a/libjava/testsuite/libjava.cni/natlongfield.cc b/libjava/testsuite/libjava.cni/natlongfield.cc
deleted file mode 100644
index c16a46c76ac..00000000000
--- a/libjava/testsuite/libjava.cni/natlongfield.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <gcj/cni.h>
-
-#include "longfield.h"
-#include <java/lang/System.h>
-#include <java/io/PrintStream.h>
-
-void
-longfield::doitc ()
-{
- java::io::PrintStream *ps = java::lang::System::out;
-
- ps->println(lval);
- ps->println(bval);
- ps->println(sval);
-}
diff --git a/libjava/testsuite/libjava.cni/natshortfield.cc b/libjava/testsuite/libjava.cni/natshortfield.cc
deleted file mode 100644
index 08a7d5c0507..00000000000
--- a/libjava/testsuite/libjava.cni/natshortfield.cc
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <stdio.h>
-#include "shortfield.h"
-
-void shortfield::ouch ()
-{
- printf ("list: %d %d 0x%x\n",
- modCount,
- size__,
- data);
-}
diff --git a/libjava/testsuite/libjava.cni/shortfield.java b/libjava/testsuite/libjava.cni/shortfield.java
deleted file mode 100644
index 68b6c5e22fb..00000000000
--- a/libjava/testsuite/libjava.cni/shortfield.java
+++ /dev/null
@@ -1,21 +0,0 @@
-class shortfieldbase
-{
- short modCount;
-}
-
-public class shortfield extends shortfieldbase
-{
- short size__;
- int data;
-
- native void ouch ();
-
- public static void main (String[] s)
- {
- shortfield f = new shortfield();
- f.modCount = 99;
- f.size__ = 2;
- f.data = 0x12345678;
- f.ouch();
- }
-}
diff --git a/libjava/testsuite/libjava.cni/shortfield.out b/libjava/testsuite/libjava.cni/shortfield.out
deleted file mode 100644
index 06485dbae49..00000000000
--- a/libjava/testsuite/libjava.cni/shortfield.out
+++ /dev/null
@@ -1 +0,0 @@
-list: 99 2 0x12345678
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/append/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/append/char/1.cc
deleted file mode 100644
index a7fc70e7a04..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/append/char/1.cc
+++ /dev/null
@@ -1,164 +0,0 @@
-// 1999-07-08 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.3 basic_string::assign
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::const_reference cref;
- typedef std::string::reference ref;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const char str_lit01[] = "point bolivar, texas";
- const std::string str01(str_lit01);
- const std::string str02("corpus, ");
- const std::string str03;
- std::string str05;
-
-
- // string& append(const string&)
- str05 = str02;
- str05.append(str05);
- VERIFY( str05 == "corpus, corpus, " );
- str05.append(str01);
- VERIFY( str05 == "corpus, corpus, point bolivar, texas" );
- str05.append(str03);
- VERIFY( str05 == "corpus, corpus, point bolivar, texas" );
- std::string str06;
- str06.append(str05);
- VERIFY( str06 == str05 );
-
-
- // string& append(const string&, size_type pos, size_type n)
- str05.erase();
- str06.erase();
- csz01 = str03.size();
- try {
- str06.append(str03, csz01 + 1, 0);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- csz01 = str01.size();
- try {
- str06.append(str01, csz01 + 1, 0);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- str05 = str02;
- str05.append(str01, 0, std::string::npos);
- VERIFY( str05 == "corpus, point bolivar, texas" );
- VERIFY( str05 != str02 );
-
- str06 = str02;
- str06.append(str01, 15, std::string::npos);
- VERIFY( str06 == "corpus, texas" );
- VERIFY( str02 != str06 );
-
-
- // string& append(const char* s)
- str05.erase();
- str06.erase();
- str05.append("");
- VERIFY( str05 == str03 );
-
- str05.append(str_lit01);
- VERIFY( str05 == str01 );
-
- str06 = str02;
- str06.append("corpus, ");
- VERIFY( str06 == "corpus, corpus, " );
-
-
- // string& append(const char* s, size_type n)
- str05.erase();
- str06.erase();
- str05.append("", 0);
- VERIFY( str05.size() == 0 );
- VERIFY( str05 == str03 );
-
- str05.append(str_lit01, sizeof(str_lit01) - 1);
- VERIFY( str05 == str01 );
-
- str06 = str02;
- str06.append("corpus, ", 6);
- VERIFY( str06 == "corpus, corpus" );
-
- str06 = str02;
- str06.append("corpus, ", 12);
- VERIFY( str06 != "corpus, corpus, " );
-
-
- // string& append(size_type n, char c)
- str05.erase();
- str06.erase();
- str05.append(0, 'a');
- VERIFY( str05 == str03 );
- str06.append(8, '.');
- VERIFY( str06 == "........" );
-
-
- // template<typename InputIter>
- // string& append(InputIter first, InputIter last)
- str05.erase();
- str06.erase();
- str05.append(str03.begin(), str03.end());
- VERIFY( str05 == str03 );
-
- str06 = str02;
- str06.append(str01.begin(), str01.begin() + str01.find('r'));
- VERIFY( str06 == "corpus, point boliva" );
- VERIFY( str06 != str01 );
- VERIFY( str06 != str02 );
-
- str05 = str01;
- str05.append(str05.begin(), str05.begin() + str05.find('r'));
- VERIFY( str05 == "point bolivar, texaspoint boliva" );
- VERIFY( str05 != str01 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/append/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/append/wchar_t/1.cc
deleted file mode 100644
index d69d9b6bdfa..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/append/wchar_t/1.cc
+++ /dev/null
@@ -1,164 +0,0 @@
-// 1999-07-08 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.3 basic_string::assign
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::const_reference cref;
- typedef std::wstring::reference ref;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const wchar_t str_lit01[] = L"point bolivar, texas";
- const std::wstring str01(str_lit01);
- const std::wstring str02(L"corpus, ");
- const std::wstring str03;
- std::wstring str05;
-
-
- // wstring& append(const wstring&)
- str05 = str02;
- str05.append(str05);
- VERIFY( str05 == L"corpus, corpus, " );
- str05.append(str01);
- VERIFY( str05 == L"corpus, corpus, point bolivar, texas" );
- str05.append(str03);
- VERIFY( str05 == L"corpus, corpus, point bolivar, texas" );
- std::wstring str06;
- str06.append(str05);
- VERIFY( str06 == str05 );
-
-
- // wstring& append(const wstring&, size_type pos, size_type n)
- str05.erase();
- str06.erase();
- csz01 = str03.size();
- try {
- str06.append(str03, csz01 + 1, 0);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- csz01 = str01.size();
- try {
- str06.append(str01, csz01 + 1, 0);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- str05 = str02;
- str05.append(str01, 0, std::wstring::npos);
- VERIFY( str05 == L"corpus, point bolivar, texas" );
- VERIFY( str05 != str02 );
-
- str06 = str02;
- str06.append(str01, 15, std::wstring::npos);
- VERIFY( str06 == L"corpus, texas" );
- VERIFY( str02 != str06 );
-
-
- // wstring& append(const wchar_t* s)
- str05.erase();
- str06.erase();
- str05.append(L"");
- VERIFY( str05 == str03 );
-
- str05.append(str_lit01);
- VERIFY( str05 == str01 );
-
- str06 = str02;
- str06.append(L"corpus, ");
- VERIFY( str06 == L"corpus, corpus, " );
-
-
- // wstring& append(const wchar_t* s, size_type n)
- str05.erase();
- str06.erase();
- str05.append(L"", 0);
- VERIFY( str05.size() == 0 );
- VERIFY( str05 == str03 );
-
- str05.append(str_lit01, sizeof(str_lit01) / sizeof(wchar_t) - 1);
- VERIFY( str05 == str01 );
-
- str06 = str02;
- str06.append(L"corpus, ", 6);
- VERIFY( str06 == L"corpus, corpus" );
-
- str06 = str02;
- str06.append(L"corpus, ", 12);
- VERIFY( str06 != L"corpus, corpus, " );
-
-
- // wstring& append(size_type n, char c)
- str05.erase();
- str06.erase();
- str05.append(0, L'a');
- VERIFY( str05 == str03 );
- str06.append(8, L'.');
- VERIFY( str06 == L"........" );
-
-
- // template<typename InputIter>
- // wstring& append(InputIter first, InputIter last)
- str05.erase();
- str06.erase();
- str05.append(str03.begin(), str03.end());
- VERIFY( str05 == str03 );
-
- str06 = str02;
- str06.append(str01.begin(), str01.begin() + str01.find(L'r'));
- VERIFY( str06 == L"corpus, point boliva" );
- VERIFY( str06 != str01 );
- VERIFY( str06 != str02 );
-
- str05 = str01;
- str05.append(str05.begin(), str05.begin() + str05.find(L'r'));
- VERIFY( str05 == L"point bolivar, texaspoint boliva" );
- VERIFY( str05 != str01 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/1.cc
deleted file mode 100644
index 735c61c86e0..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/1.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 2001-10-30 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5 string modifiers
-
-#include <string>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
- bool test = true;
-
- using namespace std;
-
- const char* strlit = "../the long pier/Hanalei Bay/Kauai/Hawaii";
- string aux = strlit;
- string::size_type i = aux.rfind("/");
- if (i != string::npos)
- aux.assign(aux, i + 1, string::npos);
- VERIFY(aux == "Hawaii");
-
- aux = strlit;
- i = aux.rfind("r/");
- if (i != string::npos)
- aux.assign(aux, i + 1, string::npos);
- VERIFY(aux.c_str()[9] == 'B');
- VERIFY(aux == "/Hanalei Bay/Kauai/Hawaii");
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/2.cc
deleted file mode 100644
index 9783c45202c..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/2.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 2001-10-30 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5 string modifiers
-
-#include <string>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-// assign(const basic_string& __str, size_type __pos, size_type __n)
-void
-test02()
-{
- bool test = true;
-
- using namespace std;
-
- string one = "Selling England by the pound";
- string two = one;
- string three = "Brilliant trees";
-
- one.assign(one, 8, 100);
- VERIFY( one == "England by the pound" );
-
- one.assign(one, 8, 0);
- VERIFY( one == "" );
-
- one.assign(two, 8, 7);
- VERIFY( one == "England" );
-
- one.assign(three, 10, 100);
- VERIFY( one == "trees" );
-
- three.assign(one, 0, 3);
- VERIFY( three == "tre" );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/3.cc
deleted file mode 100644
index cfc35545da4..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/assign/char/3.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 2001-10-30 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5 string modifiers
-
-#include <string>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-// assign(const _CharT* __s, size_type __n)
-// assign(const _CharT* __s)
-void
-test03()
-{
- bool test = true;
-
- using namespace std;
-
- string one;
- string two;
- string three = two;
- const char * source = "Selling England by the pound";
-
- one.assign(source);
- VERIFY( one == "Selling England by the pound" );
-
- one.assign(source, 28);
- VERIFY( one == "Selling England by the pound" );
-
- two.assign(source, 7);
- VERIFY( two == "Selling" );
-
- one.assign(one.c_str() + 8, 20);
- VERIFY( one == "England by the pound" );
-
- one.assign(one.c_str() + 8, 6);
- VERIFY( one == "by the" );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/1.cc
deleted file mode 100644
index 5f110598bb9..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/1.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 2001-10-30 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5 string modifiers
-
-#include <string>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
- bool test = true;
-
- using namespace std;
-
- const wchar_t* strlit = L"../the long pier/Hanalei Bay/Kauai/Hawaii";
- wstring aux = strlit;
- wstring::size_type i = aux.rfind(L"/");
- if (i != wstring::npos)
- aux.assign(aux, i + 1, wstring::npos);
- VERIFY(aux == L"Hawaii");
-
- aux = strlit;
- i = aux.rfind(L"r/");
- if (i != wstring::npos)
- aux.assign(aux, i + 1, wstring::npos);
- VERIFY(aux.c_str()[9] == L'B');
- VERIFY(aux == L"/Hanalei Bay/Kauai/Hawaii");
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/2.cc
deleted file mode 100644
index 458204c522e..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/2.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 2001-10-30 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5 string modifiers
-
-#include <string>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-// assign(const basic_string& __str, size_type __pos, size_type __n)
-void
-test02()
-{
- bool test = true;
-
- using namespace std;
-
- wstring one = L"Selling England by the pound";
- wstring two = one;
- wstring three = L"Brilliant trees";
-
- one.assign(one, 8, 100);
- VERIFY( one == L"England by the pound" );
-
- one.assign(one, 8, 0);
- VERIFY( one == L"" );
-
- one.assign(two, 8, 7);
- VERIFY( one == L"England" );
-
- one.assign(three, 10, 100);
- VERIFY( one == L"trees" );
-
- three.assign(one, 0, 3);
- VERIFY( three == L"tre" );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/3.cc
deleted file mode 100644
index fc9b5a21eea..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/assign/wchar_t/3.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 2001-10-30 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5 string modifiers
-
-#include <string>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-// assign(const _CharT* __s, size_type __n)
-// assign(const _CharT* __s)
-void
-test03()
-{
- bool test = true;
-
- using namespace std;
-
- wstring one;
- wstring two;
- wstring three = two;
- const wchar_t* source = L"Selling England by the pound";
-
- one.assign(source);
- VERIFY( one == L"Selling England by the pound" );
-
- one.assign(source, 28);
- VERIFY( one == L"Selling England by the pound" );
-
- two.assign(source, 7);
- VERIFY( two == L"Selling" );
-
- one.assign(one.c_str() + 8, 20);
- VERIFY( one == L"England by the pound" );
-
- one.assign(one.c_str() + 8, 6);
- VERIFY( one == L"by the" );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/capacity/1.cc
deleted file mode 100644
index 0a50ee7d9ed..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/1.cc
+++ /dev/null
@@ -1,199 +0,0 @@
-// 1999-05-11 bkoz
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.3 string capacity
-
-#include <string>
-#include <testsuite_hooks.h>
-
-template<typename T>
- struct A { };
-
-template<typename T>
- bool
- operator==(const A<T>& a, const A<T>& b) { return true; }
-
-template<typename T>
- bool
- operator<(const A<T>& a, const A<T>& b) { return true; }
-
-struct B { };
-
-// char_traits specialization
-namespace std
-{
- template<>
- struct char_traits<A<B> >
- {
- typedef A<B> char_type;
- // Unsigned as wint_t in unsigned.
- typedef unsigned long int_type;
- typedef streampos pos_type;
- typedef streamoff off_type;
- typedef mbstate_t state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2)
- { __c1 = __c2; }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2)
- { return __c1 == __c2; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2)
- { return __c1 < __c2; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- {
- for (size_t __i = 0; __i < __n; ++__i)
- if (!eq(__s1[__i], __s2[__i]))
- return lt(__s1[__i], __s2[__i]) ? -1 : 1;
- return 0;
- }
-
- static size_t
- length(const char_type* __s)
- {
- const char_type* __p = __s;
- while (__p)
- ++__p;
- return (__p - __s);
- }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- {
- for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p)
- if (*__p == __a) return __p;
- return 0;
- }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- {
- for (char_type* __p = __s; __p < __s + __n; ++__p)
- assign(*__p, __a);
- return __s;
- }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c) { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return __c1 == __c2; }
-
- static int_type
- eof() { return static_cast<int_type>(-1); }
-
- static int_type
- not_eof(const int_type& __c)
- { return eq_int_type(__c, eof()) ? int_type(0) : __c; }
- };
-} // namespace std
-
-void test01()
-{
- bool test = true;
-
- // non POD types : resize, capacity, reserve
- std::basic_string< A<B> > str02;
- typedef std::basic_string< A<B> >::size_type size_type_o;
- size_type_o sz03;
- size_type_o sz04;
-
- sz03 = str02.capacity();
- str02.reserve(100);
- sz04 = str02.capacity();
- VERIFY( sz04 >= sz03 );
- VERIFY( sz04 >= 100 );
- str02.reserve();
- sz03 = str02.capacity();
- VERIFY( sz03 >= 0 );
-
- sz03 = str02.size() + 5;
- str02.resize(sz03);
- sz04 = str02.size();
- VERIFY( sz03 == sz04 );
-
- sz03 = str02.size() - 5;
- str02.resize(sz03);
- sz04 = str02.size();
- VERIFY( sz03 == sz04 );
-
- A<B> inst_obj;
- std::basic_string<A<B> > str07(30, inst_obj);
- std::basic_string<A<B> > str08 = str07;
- str07 = str08 + str07;
- VERIFY( str07.capacity() >= str07.size() );
- VERIFY( str08.capacity() >= str08.size() );
-
- // non-POD types: size, length, max_size, clear(), empty()
- bool b01 = str02.empty();
- VERIFY( b01 == true );
- sz03 = str02.size();
- sz04 = str02.length();
- VERIFY( sz03 == sz04 );
- str02.c_str();
- sz03 = str02.size();
- sz04 = str02.length();
- VERIFY( sz03 == sz04 );
-
- sz03 = str02.max_size();
- VERIFY( sz03 >= sz04 );
-
- sz03 = str02.size();
- str02.clear();
- b01 = str02.empty();
- VERIFY( b01 == true );
- sz04 = str02.size();
- VERIFY( sz03 >= sz04 );
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_string< A<B> >::size_type
- std::basic_string< A<B> >::_Rep::_S_max_size;
-
-template
- A<B>
- std::basic_string< A<B> >::_Rep::_S_terminal;
-#endif
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/1.cc
deleted file mode 100644
index 6072898318a..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/1.cc
+++ /dev/null
@@ -1,102 +0,0 @@
-// 1999-05-11 bkoz
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.3 string capacity
-
-#include <string>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- // POD types : resize, capacity, reserve
- bool test = true;
- std::string str01;
- typedef std::string::size_type size_type_s;
-
- size_type_s sz01 = str01.capacity();
- str01.reserve(100);
- size_type_s sz02 = str01.capacity();
- VERIFY( sz02 >= sz01 );
- VERIFY( sz02 >= 100 );
- str01.reserve();
- sz01 = str01.capacity();
- VERIFY( sz01 >= 0 );
-
- sz01 = str01.size() + 5;
- str01.resize(sz01);
- sz02 = str01.size();
- VERIFY( sz01 == sz02 );
-
- sz01 = str01.size() - 5;
- str01.resize(sz01);
- sz02 = str01.size();
- VERIFY( sz01 == sz02 );
-
- std::string str05(30, 'q');
- std::string str06 = str05;
- str05 = str06 + str05;
- VERIFY( str05.capacity() >= str05.size() );
- VERIFY( str06.capacity() >= str06.size() );
-
- // POD types: size, length, max_size, clear(), empty()
- bool b01;
- std::string str011;
- b01 = str01.empty();
- VERIFY( b01 == true );
- sz01 = str01.size();
- sz02 = str01.length();
- VERIFY( sz01 == sz02 );
- str01.c_str();
- sz01 = str01.size();
- sz02 = str01.length();
- VERIFY( sz01 == sz02 );
-
- sz01 = str01.length();
- str01.c_str();
- str011 = str01 + "_addendum_";
- str01.c_str();
- sz02 = str01.length();
- VERIFY( sz01 == sz02 );
- sz02 = str011.length();
- VERIFY( sz02 > sz01 );
-
- // trickster allocator issues involved with these:
- std::string str3 = "8-chars_8-chars_";
- const char* p3 = str3.c_str();
- std::string str4 = str3 + "7-chars";
- const char* p4 = str3.c_str();
-
- sz01 = str01.size();
- sz02 = str01.max_size();
- VERIFY( sz02 >= sz01 );
-
- sz01 = str01.size();
- str01.clear();
- b01 = str01.empty();
- VERIFY( b01 == true );
- sz02 = str01.size();
- VERIFY( sz01 >= sz02 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/2.cc
deleted file mode 100644
index 731a9187065..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/2.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 1999-05-11 bkoz
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.3 string capacity
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// libstdc++/4548
-// http://gcc.gnu.org/ml/libstdc++/2001-11/msg00150.html
-void test02()
-{
- bool test = true;
-
- std::string str01 = "twelve chars";
- // str01 becomes shared
- std::string str02 = str01;
- str01.reserve(1);
- VERIFY( str01.capacity() == 12 );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/1.cc
deleted file mode 100644
index 18af608d7d1..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/1.cc
+++ /dev/null
@@ -1,102 +0,0 @@
-// 1999-05-11 bkoz
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.3 string capacity
-
-#include <string>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- // POD types : resize, capacity, reserve
- bool test = true;
- std::wstring str01;
- typedef std::wstring::size_type size_type_s;
-
- size_type_s sz01 = str01.capacity();
- str01.reserve(100);
- size_type_s sz02 = str01.capacity();
- VERIFY( sz02 >= sz01 );
- VERIFY( sz02 >= 100 );
- str01.reserve();
- sz01 = str01.capacity();
- VERIFY( sz01 >= 0 );
-
- sz01 = str01.size() + 5;
- str01.resize(sz01);
- sz02 = str01.size();
- VERIFY( sz01 == sz02 );
-
- sz01 = str01.size() - 5;
- str01.resize(sz01);
- sz02 = str01.size();
- VERIFY( sz01 == sz02 );
-
- std::wstring str05(30, L'q');
- std::wstring str06 = str05;
- str05 = str06 + str05;
- VERIFY( str05.capacity() >= str05.size() );
- VERIFY( str06.capacity() >= str06.size() );
-
- // POD types: size, length, max_size, clear(), empty()
- bool b01;
- std::wstring str011;
- b01 = str01.empty();
- VERIFY( b01 == true );
- sz01 = str01.size();
- sz02 = str01.length();
- VERIFY( sz01 == sz02 );
- str01.c_str();
- sz01 = str01.size();
- sz02 = str01.length();
- VERIFY( sz01 == sz02 );
-
- sz01 = str01.length();
- str01.c_str();
- str011 = str01 + L"_addendum_";
- str01.c_str();
- sz02 = str01.length();
- VERIFY( sz01 == sz02 );
- sz02 = str011.length();
- VERIFY( sz02 > sz01 );
-
- // trickster allocator issues involved with these:
- std::wstring str3 = L"8-chars_8-chars_";
- const wchar_t* p3 = str3.c_str();
- std::wstring str4 = str3 + L"7-chars";
- const wchar_t* p4 = str3.c_str();
-
- sz01 = str01.size();
- sz02 = str01.max_size();
- VERIFY( sz02 >= sz01 );
-
- sz01 = str01.size();
- str01.clear();
- b01 = str01.empty();
- VERIFY( b01 == true );
- sz02 = str01.size();
- VERIFY( sz01 >= sz02 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/2.cc
deleted file mode 100644
index 08aa2294bfa..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/2.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 1999-05-11 bkoz
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.3 string capacity
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// libstdc++/4548
-// http://gcc.gnu.org/ml/libstdc++/2001-11/msg00150.html
-void test02()
-{
- bool test = true;
-
- std::wstring str01 = L"twelve chars";
- // str01 becomes shared
- std::wstring str02 = str01;
- str01.reserve(1);
- VERIFY( str01.capacity() == 12 );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/compare/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/compare/char/1.cc
deleted file mode 100644
index 02b6b79037b..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/compare/char/1.cc
+++ /dev/null
@@ -1,136 +0,0 @@
-// 980930 bkoz work with libstdc++v3
-
-// Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6.8 basic_string::compare
-// int compare(const basic_string& str) const;
-// int compare(size_type pos1, size_type n1, const basic_string& str) const;
-// int compare(size_type pos1, size_type n1, const basic_string& str,
-// size_type pos2, size_type n2) const;
-// int compare(const charT* s) const;
-// int compare(size_type pos1, size_type n1,
-// const charT* s, size_type n2 = npos) const;
-
-// NB compare should be thought of as a lexographical compare, ie how
-// things would be sorted in a dictionary.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-enum want_value {lt=0, z=1, gt=2};
-
-int
-test_value(int result, want_value expected);
-
-int
-test_value(int result, want_value expected)
-{
- bool pass = false;
-
- switch (expected) {
- case lt:
- if (result < 0)
- pass = true;
- break;
- case z:
- if (!result)
- pass = true;
- break;
- case gt:
- if (result > 0)
- pass = true;
- break;
- default:
- pass = false; //should not get here
- }
-
-#ifdef DEBUG_ASSERT
- assert(pass);
-#endif
-
- return 0;
-}
-
-
-int
-test01()
-{
- using namespace std;
-
- string str_0("costa rica");
- string str_1("costa marbella");
- string str_2;
-
- //sanity check
- test_value(strcmp("costa marbella", "costa rica"), lt);
- test_value(strcmp("costa rica", "costa rica"), z);
- test_value(strcmp(str_1.data(), str_0.data()), lt);
- test_value(strcmp(str_0.data(), str_1.data()), gt);
- test_value(strncmp(str_1.data(), str_0.data(), 6), z);
- test_value(strncmp(str_1.data(), str_0.data(), 14), lt);
- test_value(memcmp(str_1.data(), str_0.data(), 6), z);
- test_value(memcmp(str_1.data(), str_0.data(), 14), lt);
- test_value(memcmp("costa marbella", "costa rica", 14), lt);
-
- // int compare(const basic_string& str) const;
- test_value(str_0.compare(str_1), gt); //because r>m
- test_value(str_1.compare(str_0), lt); //because m<r
- str_2 = str_0;
- test_value(str_2.compare(str_0), z);
- str_2 = "cost";
- test_value(str_2.compare(str_0), lt);
- str_2 = "costa ricans";
- test_value(str_2.compare(str_0), gt);
-
- // int compare(size_type pos1, size_type n1, const basic_string& str) const;
- test_value(str_1.compare(0, 6, str_0), lt);
- str_2 = "cost";
- test_value(str_1.compare(0, 4, str_2), z);
- test_value(str_1.compare(0, 5, str_2), gt);
-
- // int compare(size_type pos1, size_type n1, const basic_string& str,
- // size_type pos2, size_type n2) const;
- test_value(str_1.compare(0, 6, str_0, 0, 6), z);
- test_value(str_1.compare(0, 7, str_0, 0, 7), lt);
- test_value(str_0.compare(0, 7, str_1, 0, 7), gt);
-
- // int compare(const charT* s) const;
- test_value(str_0.compare("costa marbella"), gt);
- test_value(str_1.compare("costa rica"), lt);
- str_2 = str_0;
- test_value(str_2.compare("costa rica"), z);
- test_value(str_2.compare("cost"), gt);
- test_value(str_2.compare("costa ricans"), lt);
-
- // int compare(size_type pos, size_type n1, const charT* str,
- // size_type n2 = npos) const;
- test_value(str_1.compare(0, 6, "costa rica", 0, 6), z);
- test_value(str_1.compare(0, 7, "costa rica", 0, 7), lt);
- test_value(str_0.compare(0, 7, "costa marbella", 0, 7), gt);
-
- return 0;
-}
-
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/compare/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/compare/wchar_t/1.cc
deleted file mode 100644
index 25f8abdab97..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/compare/wchar_t/1.cc
+++ /dev/null
@@ -1,136 +0,0 @@
-// 980930 bkoz work with libstdc++v3
-
-// Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6.8 basic_string::compare
-// int compare(const basic_string& str) const;
-// int compare(size_type pos1, size_type n1, const basic_string& str) const;
-// int compare(size_type pos1, size_type n1, const basic_string& str,
-// size_type pos2, size_type n2) const;
-// int compare(const charT* s) const;
-// int compare(size_type pos1, size_type n1,
-// const charT* s, size_type n2 = npos) const;
-
-// NB compare should be thought of as a lexographical compare, ie how
-// things would be sorted in a dictionary.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-enum want_value {lt=0, z=1, gt=2};
-
-int
-test_value(int result, want_value expected);
-
-int
-test_value(int result, want_value expected)
-{
- bool pass = false;
-
- switch (expected) {
- case lt:
- if (result < 0)
- pass = true;
- break;
- case z:
- if (!result)
- pass = true;
- break;
- case gt:
- if (result > 0)
- pass = true;
- break;
- default:
- pass = false; //should not get here
- }
-
-#ifdef DEBUG_ASSERT
- assert(pass);
-#endif
-
- return 0;
-}
-
-
-int
-test01()
-{
- using namespace std;
-
- wstring str_0(L"costa rica");
- wstring str_1(L"costa marbella");
- wstring str_2;
-
- //sanity check
- test_value(wcscmp(L"costa marbella", L"costa rica"), lt);
- test_value(wcscmp(L"costa rica", L"costa rica"), z);
- test_value(wcscmp(str_1.data(), str_0.data()), lt);
- test_value(wcscmp(str_0.data(), str_1.data()), gt);
- test_value(wcsncmp(str_1.data(), str_0.data(), 6), z);
- test_value(wcsncmp(str_1.data(), str_0.data(), 14), lt);
- test_value(wmemcmp(str_1.data(), str_0.data(), 6), z);
- test_value(wmemcmp(str_1.data(), str_0.data(), 14), lt);
- test_value(wmemcmp(L"costa marbella", L"costa rica", 14), lt);
-
- // int compare(const basic_string& str) const;
- test_value(str_0.compare(str_1), gt); //because r>m
- test_value(str_1.compare(str_0), lt); //because m<r
- str_2 = str_0;
- test_value(str_2.compare(str_0), z);
- str_2 = L"cost";
- test_value(str_2.compare(str_0), lt);
- str_2 = L"costa ricans";
- test_value(str_2.compare(str_0), gt);
-
- // int compare(size_type pos1, size_type n1, const basic_string& str) const;
- test_value(str_1.compare(0, 6, str_0), lt);
- str_2 = L"cost";
- test_value(str_1.compare(0, 4, str_2), z);
- test_value(str_1.compare(0, 5, str_2), gt);
-
- // int compare(size_type pos1, size_type n1, const basic_string& str,
- // size_type pos2, size_type n2) const;
- test_value(str_1.compare(0, 6, str_0, 0, 6), z);
- test_value(str_1.compare(0, 7, str_0, 0, 7), lt);
- test_value(str_0.compare(0, 7, str_1, 0, 7), gt);
-
- // int compare(const charT* s) const;
- test_value(str_0.compare(L"costa marbella"), gt);
- test_value(str_1.compare(L"costa rica"), lt);
- str_2 = str_0;
- test_value(str_2.compare(L"costa rica"), z);
- test_value(str_2.compare(L"cost"), gt);
- test_value(str_2.compare(L"costa ricans"), lt);
-
- // int compare(size_type pos, size_type n1, const charT* str,
- // size_type n2 = npos) const;
- test_value(str_1.compare(0, 6, L"costa rica", 0, 6), z);
- test_value(str_1.compare(0, 7, L"costa rica", 0, 7), lt);
- test_value(str_0.compare(0, 7, L"costa marbella", 0, 7), gt);
-
- return 0;
-}
-
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc
deleted file mode 100644
index 3c92910f312..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc
+++ /dev/null
@@ -1,161 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <new>
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-void test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::iterator citerator;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const char str_lit01[] = "rodeo beach, marin";
- const std::string str01(str_lit01);
- const std::string str02("baker beach, san francisco");
-
- // basic_string(const string&, size_type pos = 0, siz_type n = npos, alloc)
- csz01 = str01.size();
- try {
- std::string str03(str01, csz01 + 1);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- try {
- std::string str03(str01, csz01);
- VERIFY( str03.size() == 0 );
- VERIFY( str03.size() <= str03.capacity() );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // basic_string(const char* s, size_type n, alloc)
- csz01 = str01.max_size();
- // NB: As strlen(str_lit01) != csz01, this test is undefined. It
- // should not crash, but what gets constructed is a bit arbitrary.
- try {
- std::string str03(str_lit01, csz01 + 1);
- VERIFY( true );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // NB: As strlen(str_lit01) != csz01, this test is undefined. It
- // should not crash, but what gets constructed is a bit arbitrary.
- // The "maverick's" of all string objects.
- try {
- std::string str04(str_lit01, npos);
- VERIFY( true );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // Build a maxsize - 1 lengthed string consisting of all A's
- try {
- std::string str03(csz01 - 1, 'A');
- VERIFY( str03.size() == csz01 - 1 );
- VERIFY( str03.size() <= str03.capacity() );
- }
- // NB: bad_alloc is regrettable but entirely kosher for
- // out-of-memory situations.
- catch(std::bad_alloc& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // basic_string(const char* s, const allocator& a = allocator())
- std::string str04(str_lit01);
- VERIFY( str01 == str04 );
-
-
- // basic_string(size_type n, char c, const allocator& a = allocator())
- csz01 = str01.max_size();
- try {
- std::string str03(csz01 + 1, 'z');
- VERIFY( false );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- try {
- std::string str04(npos, 'b'); // the "maverick's" of all string objects.
- VERIFY( false );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- try {
- std::string str03(csz01 - 1, 'z');
- VERIFY( str03.size() != 0 );
- VERIFY( str03.size() <= str03.capacity() );
- }
- // NB: bad_alloc is regrettable but entirely kosher for
- // out-of-memory situations.
- catch(std::bad_alloc& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
-
- // template<typename _InputIter>
- // basic_string(_InputIter begin, _InputIter end, const allocator& a)
- std::string str06(str01.begin(), str01.end());
- VERIFY( str06 == str01 );
-}
-
-int main()
-{
- __gnu_cxx_test::set_memory_limits();
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc
deleted file mode 100644
index d6458a96712..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-void test02()
-{
- bool test = true;
-
- // template<typename _InputIter>
- // basic_string(_InputIter begin, _InputIter end, const allocator& a)
- // where _InputIter is integral [21.3.1 para 15]
- std::string s(10,0);
- VERIFY( s.size() == 10 );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc
deleted file mode 100644
index 6f40dda1833..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <new>
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-void test03()
-{
- bool test = true;
- const char* with_nulls = "This contains \0 a zero byte.";
-
- // These are tests to see how basic_string handles data with NUL
- // bytes. Obviously basic_string(char*) will halt at the first one, but
- // nothing else should.
- std::string s1 (with_nulls, 28);
- VERIFY( s1.size() == 28 );
- std::string s2 (s1);
- VERIFY( s2.size() == 28 );
-
- // Not defined, but libstdc++ throws an exception.
- const char* bogus = 0;
- try
- {
- std::string str1(bogus);
- VERIFY( false );
- }
- catch(std::exception& fail)
- {
- VERIFY( true );
- }
-
- // Not defined, but libstdc++ throws an exception.
- try
- {
- std::string str2(bogus, 5);
- VERIFY( false );
- }
- catch(std::exception& fail)
- {
- VERIFY( true );
- }
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc
deleted file mode 100644
index fe2f3213215..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// http://gcc.gnu.org/ml/libstdc++/2002-06/msg00025.html
-void test04()
-{
- bool test = true;
-
- std::string str01("portofino");
-
- std::string::reverse_iterator i1 = str01.rbegin();
- std::string::reverse_iterator i2 = str01.rend();
- std::string str02(i1, i2);
- VERIFY( str02 == "onifotrop" );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc
deleted file mode 100644
index 4b2f4015854..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <string>
-#include <vector>
-#include <testsuite_hooks.h>
-
-// libstdc++/8347
-void test05()
-{
- bool test = true;
-
- std::vector<char> empty;
- std::string empty2(empty.begin(), empty.end());
-
- // libstdc++/8716 (same underlying situation, same fix)
- char const * s = NULL;
- std::string zero_length_built_with_NULL(s,0);
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc
deleted file mode 100644
index eeb3516d236..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc
+++ /dev/null
@@ -1,161 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <new>
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-void test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::iterator citerator;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const wchar_t str_lit01[] = L"rodeo beach, marin";
- const std::wstring str01(str_lit01);
- const std::wstring str02(L"baker beach, san francisco");
-
- // basic_string(const wstring&, size_type pos = 0, siz_type n = npos, alloc)
- csz01 = str01.size();
- try {
- std::wstring str03(str01, csz01 + 1);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- try {
- std::wstring str03(str01, csz01);
- VERIFY( str03.size() == 0 );
- VERIFY( str03.size() <= str03.capacity() );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // basic_string(const wchar_t* s, size_type n, alloc)
- csz01 = str01.max_size();
- // NB: As strlen(str_lit01) != csz01, this test is undefined. It
- // should not crash, but what gets constructed is a bit arbitrary.
- try {
- std::wstring str03(str_lit01, csz01 + 1);
- VERIFY( true );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // NB: As strlen(str_lit01) != csz01, this test is undefined. It
- // should not crash, but what gets constructed is a bit arbitrary.
- // The "maverick's" of all string objects.
- try {
- std::wstring str04(str_lit01, npos);
- VERIFY( true );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // Build a maxsize - 1 lengthed string consisting of all A's
- try {
- std::wstring str03(csz01 - 1, 'A');
- VERIFY( str03.size() == csz01 - 1 );
- VERIFY( str03.size() <= str03.capacity() );
- }
- // NB: bad_alloc is regrettable but entirely kosher for
- // out-of-memory situations.
- catch(std::bad_alloc& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // basic_string(const wchar_t* s, const allocator& a = allocator())
- std::wstring str04(str_lit01);
- VERIFY( str01 == str04 );
-
-
- // basic_string(size_type n, char c, const allocator& a = allocator())
- csz01 = str01.max_size();
- try {
- std::wstring str03(csz01 + 1, L'z');
- VERIFY( false );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- try {
- std::wstring str04(npos, L'b'); // the "maverick's" of all string objects.
- VERIFY( false );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- try {
- std::wstring str03(csz01 - 1, L'z');
- VERIFY( str03.size() != 0 );
- VERIFY( str03.size() <= str03.capacity() );
- }
- // NB: bad_alloc is regrettable but entirely kosher for
- // out-of-memory situations.
- catch(std::bad_alloc& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
-
- // template<typename _InputIter>
- // basic_string(_InputIter begin, _InputIter end, const allocator& a)
- std::wstring str06(str01.begin(), str01.end());
- VERIFY( str06 == str01 );
-}
-
-int main()
-{
- __gnu_cxx_test::set_memory_limits();
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc
deleted file mode 100644
index 9eaf4ce2700..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-void test02()
-{
- bool test = true;
-
- // template<typename _InputIter>
- // basic_string(_InputIter begin, _InputIter end, const allocator& a)
- // where _InputIter is integral [21.3.1 para 15]
- std::wstring s(10, 0);
- VERIFY( s.size() == 10 );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc
deleted file mode 100644
index 46b7287b0e0..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <new>
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-void test03()
-{
- bool test = true;
- const wchar_t* with_nulls = L"This contains \0 a zero byte.";
-
- // These are tests to see how basic_string handles data with NUL
- // bytes. Obviously basic_string(char*) will halt at the first one, but
- // nothing else should.
- std::wstring s1 (with_nulls, 28);
- VERIFY( s1.size() == 28 );
- std::wstring s2 (s1);
- VERIFY( s2.size() == 28 );
-
- // Not defined, but libstdc++ throws an exception.
- const wchar_t* bogus = 0;
- try
- {
- std::wstring str1(bogus);
- VERIFY( false );
- }
- catch(std::exception& fail)
- {
- VERIFY( true );
- }
-
- // Not defined, but libstdc++ throws an exception.
- try
- {
- std::wstring str2(bogus, 5);
- VERIFY( false );
- }
- catch(std::exception& fail)
- {
- VERIFY( true );
- }
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc
deleted file mode 100644
index 87dab121eab..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// http://gcc.gnu.org/ml/libstdc++/2002-06/msg00025.html
-void test04()
-{
- bool test = true;
-
- std::wstring str01(L"portofino");
-
- std::wstring::reverse_iterator i1 = str01.rbegin();
- std::wstring::reverse_iterator i2 = str01.rend();
- std::wstring str02(i1, i2);
- VERIFY( str02 == L"onifotrop" );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc
deleted file mode 100644
index d02dc9c8f4b..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// 1999-06-04 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.1 basic_string constructors.
-
-#include <string>
-#include <vector>
-#include <testsuite_hooks.h>
-
-// libstdc++/8347
-void test05()
-{
- bool test = true;
-
- std::vector<wchar_t> empty;
- std::wstring empty2(empty.begin(), empty.end());
-
- // libstdc++/8716 (same underlying situation, same fix)
- wchar_t const * s = NULL;
- std::wstring zero_length_built_with_NULL(s,0);
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/1.cc
deleted file mode 100644
index 069aa278680..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/1.cc
+++ /dev/null
@@ -1,94 +0,0 @@
-// 1999-06-08 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.4 basic_string element access
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::const_reference cref;
- typedef std::string::reference ref;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const std::string str01("tamarindo, costa rica");
- std::string str02("41st street beach, capitola, california");
- std::string str03;
-
- // const_reference operator[] (size_type pos) const;
- csz01 = str01.size();
- cref cref1 = str01[csz01 - 1];
- VERIFY( cref1 == 'a' );
- cref cref2 = str01[csz01];
- VERIFY( cref2 == char() );
-
- // reference operator[] (size_type pos);
- csz02 = str02.size();
- ref ref1 = str02[csz02 - 1];
- VERIFY( ref1 == 'a' );
- ref ref2 = str02[1];
- VERIFY( ref2 == '1' );
-
- // const_reference at(size_type pos) const;
- csz01 = str01.size();
- cref cref3 = str01.at(csz01 - 1);
- VERIFY( cref3 == 'a' );
- try {
- cref cref4 = str01.at(csz01);
- VERIFY( false ); // Should not get here, as exception thrown.
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // reference at(size_type pos);
- csz01 = str02.size();
- ref ref3 = str02.at(csz02 - 1);
- VERIFY( ref3 == 'a' );
- try {
- ref ref4 = str02.at(csz02);
- VERIFY( false ); // Should not get here, as exception thrown.
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/2.cc
deleted file mode 100644
index fbfa0136b67..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/2.cc
+++ /dev/null
@@ -1,115 +0,0 @@
-// 1999-06-08 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3 template class basic_string
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-// Do a quick sanity check on known problems with element access and
-// ref-counted strings. These should all pass, regardless of the
-// underlying string implementation, of course.
-bool test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::iterator siterator;
- typedef std::string::reverse_iterator sriterator;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
- siterator it1;
- sriterator rit1;
-
- std::string str01("montara beach, half moon bay");
- const std::string str02("ocean beach, san francisco");
- std::string str03;
-
- // 21.3 p 5
-
- // References, pointers, and iterators referring to the elements of
- // a basic_string may be invalidated by the following uses of that
- // basic_string object:
-
- // ...
-
- // Susequent to any of the above uses except the forms of insert()
- // and erase() which return iterators, the first call to non-const
- // member functions operator[](), at(), begin(), rbegin(), end(), or
- // rend()
-
- str03 = str01;
- it1 = str01.begin();
- *it1 = 'x';
- VERIFY( str01[0] == 'x' );
- VERIFY( str03[0] == 'm' );
-
- str03 = str01;
- csz01 = str01.size();
- rit1 = str01.rbegin(); // NB: Pointing at one-past the end, so ...
- *rit1 = 'z'; // ... but it's taken care of here
- VERIFY( str01[csz01 - 1] == 'z' );
- VERIFY( str03[csz01 - 1] == 'y' );
-
- str03 = str01;
- csz01 = str01.size();
- std::string::reference r1 = str01.at(csz01 - 2);
- VERIFY( str03 == str01 );
- r1 = 'd';
- VERIFY( str01[csz01 - 2] == 'd' );
- VERIFY( str03[csz01 - 2] == 'a' );
-
- str03 = str01;
- csz01 = str01.size();
- std::string::reference r2 = str01[csz01 - 3];
- VERIFY( str03 == str01 );
- r2 = 'w';
- VERIFY( str01[csz01 - 3] == 'w' );
- VERIFY( str03[csz01 - 3] == 'b' );
-
- str03 = str01;
- csz02 = str01.size();
- it1 = str01.end();
- VERIFY( str03 == str01 );
- --it1;
- *it1 = 'q';
- VERIFY( str01[csz02 - 1] == 'q' );
- VERIFY( str03[csz02 - 1] == 'z' );
-
- str03 = str01;
- rit1 = str01.rend();
- VERIFY( str03 == str01 );
- --rit1;
- *rit1 = 'p';
- VERIFY( str01[0] == 'p' );
- VERIFY( str03[0] == 'x' );
-
- // need to also test for const begin/const end
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/3.cc
deleted file mode 100644
index 426d0e39638..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/3.cc
+++ /dev/null
@@ -1,90 +0,0 @@
-// 1999-06-08 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3 template class basic_string
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-// Do another sanity check, this time for member functions that return
-// iterators, namely insert and erase.
-bool test02(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::iterator siterator;
- typedef std::string::reverse_iterator sriterator;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
- siterator it1;
- sriterator rit1;
-
- const std::string str01("its beach, santa cruz");
-
- std::string str02 = str01;
- std::string str05 = str02; // optional, so that begin below causes a mutate
- std::string::iterator p = str02.insert(str02.begin(), ' ');
- std::string str03 = str02;
- VERIFY( str03 == str02 );
- *p = '!';
- VERIFY( *str03.c_str() == ' ' );
- str03[0] = '@';
- VERIFY( str02[0] == '!' );
- VERIFY( *p == '!' );
- VERIFY( str02 != str05 );
- VERIFY( str02 != str03 );
-
- std::string str10 = str01;
- std::string::iterator p2 = str10.insert(str10.begin(), 'a');
- std::string str11 = str10;
- *p2 = 'e';
- VERIFY( str11 != str10 );
-
- std::string str06 = str01;
- std::string str07 = str06; // optional, so that begin below causes a mutate
- p = str06.erase(str06.begin());
- std::string str08 = str06;
- VERIFY( str08 == str06 );
- *p = '!';
- VERIFY( *str08.c_str() == 't' );
- str08[0] = '@';
- VERIFY( str06[0] == '!' );
- VERIFY( *p == '!' );
- VERIFY( str06 != str07 );
- VERIFY( str06 != str08 );
-
- std::string str12 = str01;
- p2 = str12.erase(str12.begin(), str12.begin() + str12.size() - 1);
- std::string str13 = str12;
- *p2 = 'e';
- VERIFY( str12 != str13 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/1.cc
deleted file mode 100644
index 00394cf36c8..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/1.cc
+++ /dev/null
@@ -1,94 +0,0 @@
-// 1999-06-08 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.4 basic_string element access
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::const_reference cref;
- typedef std::wstring::reference ref;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const std::wstring str01(L"tamarindo, costa rica");
- std::wstring str02(L"41st street beach, capitola, california");
- std::wstring str03;
-
- // const_reference operator[] (size_type pos) const;
- csz01 = str01.size();
- cref cref1 = str01[csz01 - 1];
- VERIFY( cref1 == L'a' );
- cref cref2 = str01[csz01];
- VERIFY( cref2 == wchar_t() );
-
- // reference operator[] (size_type pos);
- csz02 = str02.size();
- ref ref1 = str02[csz02 - 1];
- VERIFY( ref1 == L'a' );
- ref ref2 = str02[1];
- VERIFY( ref2 == L'1' );
-
- // const_reference at(size_type pos) const;
- csz01 = str01.size();
- cref cref3 = str01.at(csz01 - 1);
- VERIFY( cref3 == L'a' );
- try {
- cref cref4 = str01.at(csz01);
- VERIFY( false ); // Should not get here, as exception thrown.
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- // reference at(size_type pos);
- csz01 = str02.size();
- ref ref3 = str02.at(csz02 - 1);
- VERIFY( ref3 == L'a' );
- try {
- ref ref4 = str02.at(csz02);
- VERIFY( false ); // Should not get here, as exception thrown.
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/2.cc
deleted file mode 100644
index 37aec1c93ce..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/2.cc
+++ /dev/null
@@ -1,115 +0,0 @@
-// 1999-06-08 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3 template class basic_string
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-// Do a quick sanity check on known problems with element access and
-// ref-counted strings. These should all pass, regardless of the
-// underlying string implementation, of course.
-bool test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::iterator siterator;
- typedef std::wstring::reverse_iterator sriterator;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
- siterator it1;
- sriterator rit1;
-
- std::wstring str01(L"montara beach, half moon bay");
- const std::wstring str02(L"ocean beach, san francisco");
- std::wstring str03;
-
- // 21.3 p 5
-
- // References, pointers, and iterators referring to the elements of
- // a basic_string may be invalidated by the following uses of that
- // basic_string object:
-
- // ...
-
- // Susequent to any of the above uses except the forms of insert()
- // and erase() which return iterators, the first call to non-const
- // member functions operator[](), at(), begin(), rbegin(), end(), or
- // rend()
-
- str03 = str01;
- it1 = str01.begin();
- *it1 = L'x';
- VERIFY( str01[0] == L'x' );
- VERIFY( str03[0] == L'm' );
-
- str03 = str01;
- csz01 = str01.size();
- rit1 = str01.rbegin(); // NB: Pointing at one-past the end, so ...
- *rit1 = L'z'; // ... but it's taken care of here
- VERIFY( str01[csz01 - 1] == L'z' );
- VERIFY( str03[csz01 - 1] == L'y' );
-
- str03 = str01;
- csz01 = str01.size();
- std::wstring::reference r1 = str01.at(csz01 - 2);
- VERIFY( str03 == str01 );
- r1 = L'd';
- VERIFY( str01[csz01 - 2] == L'd' );
- VERIFY( str03[csz01 - 2] == L'a' );
-
- str03 = str01;
- csz01 = str01.size();
- std::wstring::reference r2 = str01[csz01 - 3];
- VERIFY( str03 == str01 );
- r2 = L'w';
- VERIFY( str01[csz01 - 3] == L'w' );
- VERIFY( str03[csz01 - 3] == L'b' );
-
- str03 = str01;
- csz02 = str01.size();
- it1 = str01.end();
- VERIFY( str03 == str01 );
- --it1;
- *it1 = L'q';
- VERIFY( str01[csz02 - 1] == L'q' );
- VERIFY( str03[csz02 - 1] == L'z' );
-
- str03 = str01;
- rit1 = str01.rend();
- VERIFY( str03 == str01 );
- --rit1;
- *rit1 = L'p';
- VERIFY( str01[0] == L'p' );
- VERIFY( str03[0] == L'x' );
-
- // need to also test for const begin/const end
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/3.cc
deleted file mode 100644
index b7710382ca8..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/3.cc
+++ /dev/null
@@ -1,90 +0,0 @@
-// 1999-06-08 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3 template class basic_string
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-// Do another sanity check, this time for member functions that return
-// iterators, namely insert and erase.
-bool test02(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::iterator siterator;
- typedef std::wstring::reverse_iterator sriterator;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
- siterator it1;
- sriterator rit1;
-
- const std::wstring str01(L"its beach, santa cruz");
-
- std::wstring str02 = str01;
- std::wstring str05 = str02; // optional, so that begin below causes a mutate
- std::wstring::iterator p = str02.insert(str02.begin(), L' ');
- std::wstring str03 = str02;
- VERIFY( str03 == str02 );
- *p = L'!';
- VERIFY( *str03.c_str() == L' ' );
- str03[0] = L'@';
- VERIFY( str02[0] == L'!' );
- VERIFY( *p == L'!' );
- VERIFY( str02 != str05 );
- VERIFY( str02 != str03 );
-
- std::wstring str10 = str01;
- std::wstring::iterator p2 = str10.insert(str10.begin(), L'a');
- std::wstring str11 = str10;
- *p2 = L'e';
- VERIFY( str11 != str10 );
-
- std::wstring str06 = str01;
- std::wstring str07 = str06; // optional, so that begin below causes a mutate
- p = str06.erase(str06.begin());
- std::wstring str08 = str06;
- VERIFY( str08 == str06 );
- *p = L'!';
- VERIFY( *str08.c_str() == L't' );
- str08[0] = L'@';
- VERIFY( str06[0] == L'!' );
- VERIFY( *p == L'!' );
- VERIFY( str06 != str07 );
- VERIFY( str06 != str08 );
-
- std::wstring str12 = str01;
- p2 = str12.erase(str12.begin(), str12.begin() + str12.size() - 1);
- std::wstring str13 = str12;
- *p2 = L'e';
- VERIFY( str12 != str13 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/find/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/find/char/1.cc
deleted file mode 100644
index 561053cf666..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/find/char/1.cc
+++ /dev/null
@@ -1,98 +0,0 @@
-// 1999-06-09 bkoz
-
-// Copyright (C) 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6.1 basic_string find
-
-#include <string>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::const_reference cref;
- typedef std::string::reference ref;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const char str_lit01[] = "mave";
- const std::string str01("mavericks, santa cruz");
- std::string str02(str_lit01);
- std::string str03("s, s");
- std::string str04;
-
- // size_type find(const string&, size_type pos = 0) const;
- csz01 = str01.find(str01);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str01, 4);
- VERIFY( csz01 == npos );
- csz01 = str01.find(str02, 0);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str02, 3);
- VERIFY( csz01 == npos );
- csz01 = str01.find(str03, 0);
- VERIFY( csz01 == 8 );
- csz01 = str01.find(str03, 3);
- VERIFY( csz01 == 8 );
- csz01 = str01.find(str03, 12);
- VERIFY( csz01 == npos );
-
- // An empty string consists of no characters
- // therefore it should be found at every point in a string,
- // except beyond the end
- csz01 = str01.find(str04, 0);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str04, 5);
- VERIFY( csz01 == 5 );
- csz01 = str01.find(str04, str01.size());
- VERIFY( csz01 == str01.size() );
- csz01 = str01.find(str04, str01.size()+1);
- VERIFY( csz01 == npos );
-
- // size_type find(const char* s, size_type pos, size_type n) const;
- csz01 = str01.find(str_lit01, 0, 3);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str_lit01, 3, 0);
- VERIFY( csz01 == 3 );
-
- // size_type find(const char* s, size_type pos = 0) const;
- csz01 = str01.find(str_lit01);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str_lit01, 3);
- VERIFY( csz01 == npos );
-
- // size_type find(char c, size_type pos = 0) const;
- csz01 = str01.find('z');
- csz02 = str01.size() - 1;
- VERIFY( csz01 == csz02 );
- csz01 = str01.find('/');
- VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/find/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/find/char/2.cc
deleted file mode 100644
index abc35e27f1e..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/find/char/2.cc
+++ /dev/null
@@ -1,97 +0,0 @@
-// 1999-06-09 bkoz
-
-// Copyright (C) 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6.3 basic_string find_first_of
-
-#include <string>
-#include <testsuite_hooks.h>
-
-bool test02(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const char str_lit01[] = "mave";
- const std::string str01("mavericks, santa cruz");
- std::string str02(str_lit01);
- std::string str03("s, s");
- std::string str04;
-
- // size_type find_first_of(const string&, size_type pos = 0) const;
- std::string str05("xena rulez");
- csz01 = str01.find_first_of(str01);
- VERIFY( csz01 == 0 );
- csz01 = str01.find_first_of(str01, 4);
- VERIFY( csz01 == 4 );
- csz01 = str01.find_first_of(str02, 0);
- VERIFY( csz01 == 0 );
- csz01 = str01.find_first_of(str02, 3);
- VERIFY( csz01 == 3 );
- csz01 = str01.find_first_of(str03, 0);
- VERIFY( csz01 == 8 );
- csz01 = str01.find_first_of(str03, 3);
- VERIFY( csz01 == 8 );
- csz01 = str01.find_first_of(str03, 12);
- VERIFY( csz01 == 16 );
- csz01 = str01.find_first_of(str05, 0);
- VERIFY( csz01 == 1 );
- csz01 = str01.find_first_of(str05, 4);
- VERIFY( csz01 == 4 );
-
- // An empty string consists of no characters
- // therefore it should be found at every point in a string,
- // except beyond the end
- // However, str1.find_first_of(str2,pos) finds the first character in
- // str1 (starting at pos) that exists in str2, which is none for empty str2
- csz01 = str01.find_first_of(str04, 0);
- VERIFY( csz01 == npos );
- csz01 = str01.find_first_of(str04, 5);
- VERIFY( csz01 == npos );
-
- // size_type find_first_of(const char* s, size_type pos, size_type n) const;
- csz01 = str01.find_first_of(str_lit01, 0, 3);
- VERIFY( csz01 == 0 );
- csz01 = str01.find_first_of(str_lit01, 3, 0);
- VERIFY( csz01 == npos );
-
- // size_type find_first_of(const char* s, size_type pos = 0) const;
- csz01 = str01.find_first_of(str_lit01);
- VERIFY( csz01 == 0 );
- csz01 = str01.find_first_of(str_lit01, 3);
- VERIFY( csz01 == 3 );
-
- // size_type find_first_of(char c, size_type pos = 0) const;
- csz01 = str01.find_first_of('z');
- csz02 = str01.size() - 1;
- VERIFY( csz01 == csz02 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/1.cc
deleted file mode 100644
index ecf3182d66f..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/1.cc
+++ /dev/null
@@ -1,98 +0,0 @@
-// 1999-06-09 bkoz
-
-// Copyright (C) 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6.1 basic_string find
-
-#include <string>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::const_reference cref;
- typedef std::wstring::reference ref;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const wchar_t str_lit01[] = L"mave";
- const std::wstring str01(L"mavericks, santa cruz");
- std::wstring str02(str_lit01);
- std::wstring str03(L"s, s");
- std::wstring str04;
-
- // size_type find(const wstring&, size_type pos = 0) const;
- csz01 = str01.find(str01);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str01, 4);
- VERIFY( csz01 == npos );
- csz01 = str01.find(str02, 0);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str02, 3);
- VERIFY( csz01 == npos );
- csz01 = str01.find(str03, 0);
- VERIFY( csz01 == 8 );
- csz01 = str01.find(str03, 3);
- VERIFY( csz01 == 8 );
- csz01 = str01.find(str03, 12);
- VERIFY( csz01 == npos );
-
- // An empty string consists of no characters
- // therefore it should be found at every point in a string,
- // except beyond the end
- csz01 = str01.find(str04, 0);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str04, 5);
- VERIFY( csz01 == 5 );
- csz01 = str01.find(str04, str01.size());
- VERIFY( csz01 == str01.size() );
- csz01 = str01.find(str04, str01.size()+1);
- VERIFY( csz01 == npos );
-
- // size_type find(const wchar_t* s, size_type pos, size_type n) const;
- csz01 = str01.find(str_lit01, 0, 3);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str_lit01, 3, 0);
- VERIFY( csz01 == 3 );
-
- // size_type find(const wchar_t* s, size_type pos = 0) const;
- csz01 = str01.find(str_lit01);
- VERIFY( csz01 == 0 );
- csz01 = str01.find(str_lit01, 3);
- VERIFY( csz01 == npos );
-
- // size_type find(wchar_t c, size_type pos = 0) const;
- csz01 = str01.find(L'z');
- csz02 = str01.size() - 1;
- VERIFY( csz01 == csz02 );
- csz01 = str01.find(L'/');
- VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/2.cc
deleted file mode 100644
index 8ae592d4eb3..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/2.cc
+++ /dev/null
@@ -1,97 +0,0 @@
-// 1999-06-09 bkoz
-
-// Copyright (C) 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6.3 basic_string find_first_of
-
-#include <string>
-#include <testsuite_hooks.h>
-
-bool test02(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const wchar_t str_lit01[] = L"mave";
- const std::wstring str01(L"mavericks, santa cruz");
- std::wstring str02(str_lit01);
- std::wstring str03(L"s, s");
- std::wstring str04;
-
- // size_type find_first_of(const wstring&, size_type pos = 0) const;
- std::wstring str05(L"xena rulez");
- csz01 = str01.find_first_of(str01);
- VERIFY( csz01 == 0 );
- csz01 = str01.find_first_of(str01, 4);
- VERIFY( csz01 == 4 );
- csz01 = str01.find_first_of(str02, 0);
- VERIFY( csz01 == 0 );
- csz01 = str01.find_first_of(str02, 3);
- VERIFY( csz01 == 3 );
- csz01 = str01.find_first_of(str03, 0);
- VERIFY( csz01 == 8 );
- csz01 = str01.find_first_of(str03, 3);
- VERIFY( csz01 == 8 );
- csz01 = str01.find_first_of(str03, 12);
- VERIFY( csz01 == 16 );
- csz01 = str01.find_first_of(str05, 0);
- VERIFY( csz01 == 1 );
- csz01 = str01.find_first_of(str05, 4);
- VERIFY( csz01 == 4 );
-
- // An empty string consists of no characters
- // therefore it should be found at every point in a string,
- // except beyond the end
- // However, str1.find_first_of(str2,pos) finds the first character in
- // str1 (starting at pos) that exists in str2, which is none for empty str2
- csz01 = str01.find_first_of(str04, 0);
- VERIFY( csz01 == npos );
- csz01 = str01.find_first_of(str04, 5);
- VERIFY( csz01 == npos );
-
- // size_type find_first_of(const wchar_t* s, size_type pos, size_type n) const;
- csz01 = str01.find_first_of(str_lit01, 0, 3);
- VERIFY( csz01 == 0 );
- csz01 = str01.find_first_of(str_lit01, 3, 0);
- VERIFY( csz01 == npos );
-
- // size_type find_first_of(const wchar_t* s, size_type pos = 0) const;
- csz01 = str01.find_first_of(str_lit01);
- VERIFY( csz01 == 0 );
- csz01 = str01.find_first_of(str_lit01, 3);
- VERIFY( csz01 == 3 );
-
- // size_type find_first_of(wchar_t c, size_type pos = 0) const;
- csz01 = str01.find_first_of(L'z');
- csz02 = str01.size() - 1;
- VERIFY( csz01 == csz02 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/insert/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/insert/char/1.cc
deleted file mode 100644
index a6052e2170b..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/insert/char/1.cc
+++ /dev/null
@@ -1,195 +0,0 @@
-// 1999-06-03 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.4 basic_string::insert
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-int test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::iterator citerator;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const std::string str01("rodeo beach, marin");
- const std::string str02("baker beach, san francisco");
- std::string str03;
-
- // string& insert(size_type p1, const string& str, size_type p2, size_type n)
- // requires:
- // 1) p1 <= size()
- // 2) p2 <= str.size()
- // 3) rlen = min(n, str.size() - p2)
- // throws:
- // 1) out_of_range if p1 > size() || p2 > str.size()
- // 2) length_error if size() >= npos - rlen
- // effects:
- // replaces *this with new string of length size() + rlen such that
- // nstr[0] to nstr[p1] == thisstr[0] to thisstr[p1]
- // nstr[p1 + 1] to nstr[p1 + rlen] == str[p2] to str[p2 + rlen]
- // nstr[p1 + 1 + rlen] to nstr[...] == thisstr[p1 + 1] to thisstr[...]
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- try {
- str03.insert(csz01 + 1, str02, 0, 5);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- try {
- str03.insert(0, str02, csz02 + 1, 5);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- csz01 = str01.max_size();
- try {
- std::string str04(csz01, 'b');
- str03 = str04;
- csz02 = str02.size();
- try {
- str03.insert(0, str02, 0, 5);
- VERIFY( false );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
- }
- catch(std::bad_alloc& failure){
- VERIFY( true );
- }
- catch(std::exception& failure){
- VERIFY( false );
- }
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(13, str02, 0, 12);
- VERIFY( str03 == "rodeo beach, baker beach,marin" );
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(0, str02, 0, 12);
- VERIFY( str03 == "baker beach,rodeo beach, marin" );
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(csz01, str02, 0, csz02);
- VERIFY( str03 == "rodeo beach, marinbaker beach, san francisco" );
-
- // string& insert(size_type __p, const string& string);
- // insert(p1, str, 0, npos)
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(csz01, str02);
- VERIFY( str03 == "rodeo beach, marinbaker beach, san francisco" );
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(0, str02);
- VERIFY( str03 == "baker beach, san franciscorodeo beach, marin" );
-
- // string& insert(size_type __p, const char* s, size_type n);
- // insert(p1, string(s,n))
- str03 = str02;
- csz01 = str03.size();
- str03.insert(0, "-break at the bridge", 20);
- VERIFY( str03 == "-break at the bridgebaker beach, san francisco" );
-
- // string& insert(size_type __p, const char* s);
- // insert(p1, string(s))
- str03 = str02;
- str03.insert(0, "-break at the bridge");
- VERIFY( str03 == "-break at the bridgebaker beach, san francisco" );
-
- // string& insert(size_type __p, size_type n, char c)
- // insert(p1, string(n,c))
- str03 = str02;
- csz01 = str03.size();
- str03.insert(csz01, 5, 'z');
- VERIFY( str03 == "baker beach, san franciscozzzzz" );
-
- // iterator insert(iterator p, char c)
- // inserts a copy of c before the character referred to by p
- str03 = str02;
- citerator cit01 = str03.begin();
- str03.insert(cit01, 'u');
- VERIFY( str03 == "ubaker beach, san francisco" );
-
- // iterator insert(iterator p, size_type n, char c)
- // inserts n copies of c before the character referred to by p
- str03 = str02;
- cit01 = str03.begin();
- str03.insert(cit01, 5, 'u');
- VERIFY( str03 == "uuuuubaker beach, san francisco" );
-
- // template<inputit>
- // void
- // insert(iterator p, inputit first, inputit, last)
- // ISO-14882: defect #7 part 1 clarifies this member function to be:
- // insert(p - begin(), string(first,last))
- str03 = str02;
- csz01 = str03.size();
- str03.insert(str03.begin(), str01.begin(), str01.end());
- VERIFY( str03 == "rodeo beach, marinbaker beach, san francisco" );
-
- str03 = str02;
- csz01 = str03.size();
- str03.insert(str03.end(), str01.begin(), str01.end());
- VERIFY( str03 == "baker beach, san franciscorodeo beach, marin" );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- __gnu_cxx_test::set_memory_limits();
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/insert/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/insert/char/2.cc
deleted file mode 100644
index 80b0cee58b7..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/insert/char/2.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// 1999-06-03 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.4 basic_string::insert
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// More
-// string& insert(size_type __p, const char* s, size_type n);
-// string& insert(size_type __p, const char* s);
-// but now s points inside the _Rep
-int test02(void)
-{
- bool test = true;
-
- std::string str01;
- const char* title = "Everything was beautiful, and nothing hurt";
- // Increasing size: str01 is reallocated every time.
- str01 = title;
- str01.insert(0, str01.c_str() + str01.size() - 4, 4);
- VERIFY( str01 == "hurtEverything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(0, str01.c_str(), 5);
- VERIFY( str01 == "EveryEverything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(10, str01.c_str() + 4, 6);
- VERIFY( str01 == "Everythingything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(15, str01.c_str(), 10);
- VERIFY( str01 == "Everything was Everythingbeautiful, and nothing hurt" );
- str01 = title;
- str01.insert(15, str01.c_str() + 11, 13);
- VERIFY( str01 == "Everything was was beautifulbeautiful, and nothing hurt" );
- str01 = title;
- str01.insert(0, str01.c_str());
- VERIFY( str01 == "Everything was beautiful, and nothing hurt"
- "Everything was beautiful, and nothing hurt");
- // Again: no reallocations.
- str01 = title;
- str01.insert(0, str01.c_str() + str01.size() - 4, 4);
- VERIFY( str01 == "hurtEverything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(0, str01.c_str(), 5);
- VERIFY( str01 == "EveryEverything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(10, str01.c_str() + 4, 6);
- VERIFY( str01 == "Everythingything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(15, str01.c_str(), 10);
- VERIFY( str01 == "Everything was Everythingbeautiful, and nothing hurt" );
- str01 = title;
- str01.insert(15, str01.c_str() + 11, 13);
- VERIFY( str01 == "Everything was was beautifulbeautiful, and nothing hurt" );
- str01 = title;
- str01.insert(0, str01.c_str());
- VERIFY( str01 == "Everything was beautiful, and nothing hurt"
- "Everything was beautiful, and nothing hurt");
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/1.cc
deleted file mode 100644
index 96f71b0839e..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/1.cc
+++ /dev/null
@@ -1,195 +0,0 @@
-// 1999-06-03 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.4 basic_string::insert
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-int test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::iterator citerator;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const std::wstring str01(L"rodeo beach, marin");
- const std::wstring str02(L"baker beach, san francisco");
- std::wstring str03;
-
- // wstring& insert(size_type p1, const wstring& str, size_type p2, size_type n)
- // requires:
- // 1) p1 <= size()
- // 2) p2 <= str.size()
- // 3) rlen = min(n, str.size() - p2)
- // throws:
- // 1) out_of_range if p1 > size() || p2 > str.size()
- // 2) length_error if size() >= npos - rlen
- // effects:
- // replaces *this with new wstring of length size() + rlen such that
- // nstr[0] to nstr[p1] == thisstr[0] to thisstr[p1]
- // nstr[p1 + 1] to nstr[p1 + rlen] == str[p2] to str[p2 + rlen]
- // nstr[p1 + 1 + rlen] to nstr[...] == thisstr[p1 + 1] to thisstr[...]
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- try {
- str03.insert(csz01 + 1, str02, 0, 5);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- try {
- str03.insert(0, str02, csz02 + 1, 5);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- csz01 = str01.max_size();
- try {
- std::wstring str04(csz01, L'b');
- str03 = str04;
- csz02 = str02.size();
- try {
- str03.insert(0, str02, 0, 5);
- VERIFY( false );
- }
- catch(std::length_error& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
- }
- catch(std::bad_alloc& failure){
- VERIFY( true );
- }
- catch(std::exception& failure){
- VERIFY( false );
- }
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(13, str02, 0, 12);
- VERIFY( str03 == L"rodeo beach, baker beach,marin" );
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(0, str02, 0, 12);
- VERIFY( str03 == L"baker beach,rodeo beach, marin" );
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(csz01, str02, 0, csz02);
- VERIFY( str03 == L"rodeo beach, marinbaker beach, san francisco" );
-
- // wstring& insert(size_type __p, const wstring& wstr);
- // insert(p1, str, 0, npos)
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(csz01, str02);
- VERIFY( str03 == L"rodeo beach, marinbaker beach, san francisco" );
-
- str03 = str01;
- csz01 = str03.size();
- csz02 = str02.size();
- str03.insert(0, str02);
- VERIFY( str03 == L"baker beach, san franciscorodeo beach, marin" );
-
- // wstring& insert(size_type __p, const wchar_t* s, size_type n);
- // insert(p1, wstring(s,n))
- str03 = str02;
- csz01 = str03.size();
- str03.insert(0, L"-break at the bridge", 20);
- VERIFY( str03 == L"-break at the bridgebaker beach, san francisco" );
-
- // wstring& insert(size_type __p, const wchar_t* s);
- // insert(p1, wstring(s))
- str03 = str02;
- str03.insert(0, L"-break at the bridge");
- VERIFY( str03 == L"-break at the bridgebaker beach, san francisco" );
-
- // wstring& insert(size_type __p, size_type n, wchar_t c)
- // insert(p1, wstring(n,c))
- str03 = str02;
- csz01 = str03.size();
- str03.insert(csz01, 5, L'z');
- VERIFY( str03 == L"baker beach, san franciscozzzzz" );
-
- // iterator insert(iterator p, wchar_t c)
- // inserts a copy of c before the character referred to by p
- str03 = str02;
- citerator cit01 = str03.begin();
- str03.insert(cit01, L'u');
- VERIFY( str03 == L"ubaker beach, san francisco" );
-
- // iterator insert(iterator p, size_type n, wchar_t c)
- // inserts n copies of c before the character referred to by p
- str03 = str02;
- cit01 = str03.begin();
- str03.insert(cit01, 5, L'u');
- VERIFY( str03 == L"uuuuubaker beach, san francisco" );
-
- // template<inputit>
- // void
- // insert(iterator p, inputit first, inputit, last)
- // ISO-14882: defect #7 part 1 clarifies this member function to be:
- // insert(p - begin(), wstring(first,last))
- str03 = str02;
- csz01 = str03.size();
- str03.insert(str03.begin(), str01.begin(), str01.end());
- VERIFY( str03 == L"rodeo beach, marinbaker beach, san francisco" );
-
- str03 = str02;
- csz01 = str03.size();
- str03.insert(str03.end(), str01.begin(), str01.end());
- VERIFY( str03 == L"baker beach, san franciscorodeo beach, marin" );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- __gnu_cxx_test::set_memory_limits();
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/2.cc
deleted file mode 100644
index 04cc454e14b..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/2.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// 1999-06-03 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.4 basic_string::insert
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// More
-// wstring& insert(size_type __p, const wchar_t* s, size_type n);
-// wstring& insert(size_type __p, const wchar_t* s);
-// but now s points inside the _Rep
-int test02(void)
-{
- bool test = true;
-
- std::wstring str01;
- const wchar_t* title = L"Everything was beautiful, and nothing hurt";
- // Increasing size: str01 is reallocated every time.
- str01 = title;
- str01.insert(0, str01.c_str() + str01.size() - 4, 4);
- VERIFY( str01 == L"hurtEverything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(0, str01.c_str(), 5);
- VERIFY( str01 == L"EveryEverything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(10, str01.c_str() + 4, 6);
- VERIFY( str01 == L"Everythingything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(15, str01.c_str(), 10);
- VERIFY( str01 == L"Everything was Everythingbeautiful, and nothing hurt" );
- str01 = title;
- str01.insert(15, str01.c_str() + 11, 13);
- VERIFY( str01 == L"Everything was was beautifulbeautiful, and nothing hurt" );
- str01 = title;
- str01.insert(0, str01.c_str());
- VERIFY( str01 == L"Everything was beautiful, and nothing hurt"
- L"Everything was beautiful, and nothing hurt");
- // Again: no reallocations.
- str01 = title;
- str01.insert(0, str01.c_str() + str01.size() - 4, 4);
- VERIFY( str01 == L"hurtEverything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(0, str01.c_str(), 5);
- VERIFY( str01 == L"EveryEverything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(10, str01.c_str() + 4, 6);
- VERIFY( str01 == L"Everythingything was beautiful, and nothing hurt" );
- str01 = title;
- str01.insert(15, str01.c_str(), 10);
- VERIFY( str01 == L"Everything was Everythingbeautiful, and nothing hurt" );
- str01 = title;
- str01.insert(15, str01.c_str() + 11, 13);
- VERIFY( str01 == L"Everything was was beautifulbeautiful, and nothing hurt" );
- str01 = title;
- str01.insert(0, str01.c_str());
- VERIFY( str01 == L"Everything was beautiful, and nothing hurt"
- L"Everything was beautiful, and nothing hurt");
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/1.cc
deleted file mode 100644
index 4b862322653..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/1.cc
+++ /dev/null
@@ -1,171 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <stdexcept>
-#include <sstream>
-#include <fstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::const_reference cref;
- typedef std::string::reference ref;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const std::string str01("sailing grand traverse bay\n"
- "\t\t\t from Elk Rapids to the point reminds me of miles");
- const std::string str02("sailing");
- const std::string str03("grand");
- const std::string str04("traverse");
- const std::string str05;
- std::string str10;
-
- // istream& operator>>(istream&, string&)
- std::istringstream istrs01(str01);
- istrs01 >> str10;
- VERIFY( str10 == str02 );
- try
- {
- std::istringstream::int_type i01 = istrs01.peek(); //a-boo
- VERIFY( std::istringstream::traits_type::to_char_type(i01) == ' ' );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- istrs01.clear();
- istrs01 >> str10;
- VERIFY( str10 == str03 );
- istrs01.clear();
- istrs01 >> str10;
- VERIFY( str10 == str04 ); // sentry picks out the white spaces. .
-
- std::istringstream istrs02(str05); // empty
- istrs02 >> str10;
- VERIFY( str10 == str04 );
-
- // istream& getline(istream&, string&, char)
- // istream& getline(istream&, string&)
- try
- {
- istrs01.clear();
- getline(istrs01, str10);
- VERIFY( !istrs01.fail() );
- VERIFY( !istrs01.eof() );
- VERIFY( istrs01.good() );
- VERIFY( str10 == " bay" );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- try
- {
- istrs01.clear();
- getline(istrs01, str10,'\t');
- VERIFY( !istrs01.fail() );
- VERIFY( !istrs01.eof() );
- VERIFY( istrs01.good() );
- VERIFY( str10 == str05 );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- try
- {
- istrs01.clear();
- getline(istrs01, str10,'\t');
- VERIFY( !istrs01.fail() );
- VERIFY( !istrs01.eof() );
- VERIFY( istrs01.good() );
- VERIFY( str10 == str05 );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- try
- {
- istrs01.clear();
- getline(istrs01, str10, '.');
- VERIFY( !istrs01.fail() );
- VERIFY( istrs01.eof() );
- VERIFY( !istrs01.good() );
- VERIFY( str10 == "\t from Elk Rapids to the point reminds me of miles" );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- try
- {
- getline(istrs02, str10);
- VERIFY( istrs02.fail() );
- VERIFY( istrs02.eof() );
- VERIFY( str10 =="\t from Elk Rapids to the point reminds me of miles" );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- // ostream& operator<<(ostream&, const basic_string&)
- std::ostringstream ostrs01;
- try
- {
- ostrs01 << str01;
- VERIFY( ostrs01.str() == str01 );
- }
- catch(std::exception& fail)
- {
- VERIFY( false );
- }
-
- std::string hello_world;
- std::cout << hello_world;
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/4.cc
deleted file mode 100644
index 55eecc19a28..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/4.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// testing basic_stringbuf::xsputn via stress testing with large strings
-// based on a bug report libstdc++ 9
-void test04(int size)
-{
- bool test = true;
- std::string str(size, 's');
- int expected_size = 2 * (size + 1);
- std::ostringstream oss(str);
-
- // sanity checks
- VERIFY( str.size() == size );
- VERIFY( oss.good() );
-
- // stress test
- oss << str << std::endl;
- if (!oss.good())
- test = false;
-
- oss << str << std::endl;
- if (!oss.good())
- test = false;
-
- VERIFY( str.size() == size );
- VERIFY( oss.good() );
- std::string str_tmp = oss.str();
- VERIFY( str_tmp.size() == expected_size );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test04(1); // expected_size == 4
- test04(1000); // expected_size == 2002
- test04(10000); // expected_size == 20002
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/5.cc
deleted file mode 100644
index 8e24f5b55b7..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/5.cc
+++ /dev/null
@@ -1,90 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <fstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// testing basic_filebuf::xsputn via stress testing with large strings
-// based on a bug report libstdc++ 9
-// mode == out
-void test05(int size)
-{
- bool test = true;
- const char filename[] = "inserters_extractors-1.txt";
- const char fillc = 'f';
- std::ofstream ofs(filename);
- std::string str(size, fillc);
-
- // sanity checks
- VERIFY( str.size() == size );
- VERIFY( ofs.good() );
-
- // stress test
- ofs << str << std::endl;
- if (!ofs.good())
- test = false;
-
- ofs << str << std::endl;
- if (!ofs.good())
- test = false;
-
- VERIFY( str.size() == size );
- VERIFY( ofs.good() );
-
- ofs.close();
-
- // sanity check on the written file
- std::ifstream ifs(filename);
- int count = 0;
- char c;
- while (count <= (2 * size) + 4)
- {
- ifs >> c;
- if (ifs.good() && c == fillc)
- {
- ++count;
- c = '0';
- }
- else
- break;
- }
-
- VERIFY( count == 2 * size );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test05(1);
- test05(1000);
- test05(10000);
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/6.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/6.cc
deleted file mode 100644
index 5d426259752..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/6.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// istringstream/stringbuf extractor properly size buffer based on
-// actual, not allocated contents (string.size() vs. string.capacity()).
-// http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00049.html
-void test06(void)
-{
- bool test = true;
-
- typedef std::string::size_type size_type;
- std::string str01("@silent");
- size_type i01 = str01.size();
- size_type i02 = str01.capacity();
- str01.erase(0, 1);
- size_type i03 = str01.size();
- size_type i04 = str01.capacity();
- VERIFY( i01 - 1 == i03 );
- VERIFY( i02 >= i04 );
-
- std::istringstream is(str01);
- std::string str02;
- is >> str02 >> std::ws;
- size_type i05 = str02.size();
- size_type i06 = str02.capacity();
- VERIFY( i05 == i03 );
- VERIFY( i06 <= i04 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/7.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/7.cc
deleted file mode 100644
index 7e6116ec148..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/7.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00085.html
-// istream::operator>>(string)
-// sets failbit
-// NB: this is a defect in the standard.
-void test07(void)
-{
- bool test = true;
- const std::string name("z6.cc");
- std::istringstream iss (name);
- int i = 0;
- std::string s;
- while (iss >> s)
- ++i;
-
- VERIFY( i < 3 );
- VERIFY( static_cast<bool>(iss.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/8.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/8.cc
deleted file mode 100644
index bdc848e8055..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/8.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-// libstdc++/1019
-void test08()
-{
- using namespace std;
-
- bool test = true;
- istringstream istrm("enero:2001");
- int year;
- char sep;
- string month;
-
- istrm >> setw(5) >> month >> sep >> year;
- VERIFY( month.size() == 5 );
- VERIFY( sep == ':' );
- VERIFY( year == 2001 );
-}
-
-int main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/9.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/9.cc
deleted file mode 100644
index fb201c26929..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/9.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-// libstdc++/2830
-void test09()
-{
- bool test = true;
- std::string blanks( 3, '\0');
- std::string foo = "peace";
- foo += blanks;
- foo += "& love";
-
- std::ostringstream oss1;
- oss1 << foo;
- VERIFY( oss1.str() == foo );
-
- std::ostringstream oss2;
- oss2.width(20);
- oss2 << foo;
- VERIFY( oss2.str() != foo );
- VERIFY( oss2.str().size() == 20 );
-}
-
-int main()
-{
- test09();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc
deleted file mode 100644
index 5297958c453..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc
+++ /dev/null
@@ -1,171 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <stdexcept>
-#include <sstream>
-#include <fstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::const_reference cref;
- typedef std::wstring::reference ref;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const std::wstring str01(L"sailing grand traverse bay\n"
- L"\t\t\t from Elk Rapids to the point reminds me of miles");
- const std::wstring str02(L"sailing");
- const std::wstring str03(L"grand");
- const std::wstring str04(L"traverse");
- const std::wstring str05;
- std::wstring str10;
-
- // istream& operator>>(istream&, string&)
- std::wistringstream istrs01(str01);
- istrs01 >> str10;
- VERIFY( str10 == str02 );
- try
- {
- std::wistringstream::int_type i01 = istrs01.peek(); //a-boo
- VERIFY( std::wistringstream::traits_type::to_char_type(i01) == L' ' );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- istrs01.clear();
- istrs01 >> str10;
- VERIFY( str10 == str03 );
- istrs01.clear();
- istrs01 >> str10;
- VERIFY( str10 == str04 ); // sentry picks out the white spaces. .
-
- std::wistringstream istrs02(str05); // empty
- istrs02 >> str10;
- VERIFY( str10 == str04 );
-
- // istream& getline(istream&, string&, char)
- // istream& getline(istream&, string&)
- try
- {
- istrs01.clear();
- getline(istrs01, str10);
- VERIFY( !istrs01.fail() );
- VERIFY( !istrs01.eof() );
- VERIFY( istrs01.good() );
- VERIFY( str10 == L" bay" );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- try
- {
- istrs01.clear();
- getline(istrs01, str10, L'\t');
- VERIFY( !istrs01.fail() );
- VERIFY( !istrs01.eof() );
- VERIFY( istrs01.good() );
- VERIFY( str10 == str05 );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- try
- {
- istrs01.clear();
- getline(istrs01, str10, L'\t');
- VERIFY( !istrs01.fail() );
- VERIFY( !istrs01.eof() );
- VERIFY( istrs01.good() );
- VERIFY( str10 == str05 );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- try
- {
- istrs01.clear();
- getline(istrs01, str10, L'.');
- VERIFY( !istrs01.fail() );
- VERIFY( istrs01.eof() );
- VERIFY( !istrs01.good() );
- VERIFY( str10 == L"\t from Elk Rapids to the point reminds me of miles" );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- try
- {
- getline(istrs02, str10);
- VERIFY( istrs02.fail() );
- VERIFY( istrs02.eof() );
- VERIFY( str10 == L"\t from Elk Rapids to the point reminds me of miles" );
- }
- catch(std::exception& fail)
- {
- VERIFY( false ); // shouldn't throw
- }
-
- // ostream& operator<<(ostream&, const basic_string&)
- std::wostringstream ostrs01;
- try
- {
- ostrs01 << str01;
- VERIFY( ostrs01.str() == str01 );
- }
- catch(std::exception& fail)
- {
- VERIFY( false );
- }
-
- std::wstring hello_world;
- std::wcout << hello_world;
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc
deleted file mode 100644
index f47d8da43aa..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// testing basic_stringbuf::xsputn via stress testing with large strings
-// based on a bug report libstdc++ 9
-void test04(int size)
-{
- bool test = true;
- std::wstring str(size, L's');
- int expected_size = 2 * (size + 1);
- std::wostringstream oss(str);
-
- // sanity checks
- VERIFY( str.size() == size );
- VERIFY( oss.good() );
-
- // stress test
- oss << str << std::endl;
- if (!oss.good())
- test = false;
-
- oss << str << std::endl;
- if (!oss.good())
- test = false;
-
- VERIFY( str.size() == size );
- VERIFY( oss.good() );
- std::wstring str_tmp = oss.str();
- VERIFY( str_tmp.size() == expected_size );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test04(1); // expected_size == 4
- test04(1000); // expected_size == 2002
- test04(10000); // expected_size == 20002
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc
deleted file mode 100644
index e9a701e8c52..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc
+++ /dev/null
@@ -1,90 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <fstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// testing basic_filebuf::xsputn via stress testing with large strings
-// based on a bug report libstdc++ 9
-// mode == out
-void test05(int size)
-{
- bool test = true;
- const char filename[] = "inserters_extractors-1.txt";
- const wchar_t fillc = L'f';
- std::wofstream ofs(filename);
- std::wstring str(size, fillc);
-
- // sanity checks
- VERIFY( str.size() == size );
- VERIFY( ofs.good() );
-
- // stress test
- ofs << str << std::endl;
- if (!ofs.good())
- test = false;
-
- ofs << str << std::endl;
- if (!ofs.good())
- test = false;
-
- VERIFY( str.size() == size );
- VERIFY( ofs.good() );
-
- ofs.close();
-
- // sanity check on the written file
- std::wifstream ifs(filename);
- int count = 0;
- wchar_t c;
- while (count <= (2 * size) + 4)
- {
- ifs >> c;
- if (ifs.good() && c == fillc)
- {
- ++count;
- c = '0';
- }
- else
- break;
- }
-
- VERIFY( count == 2 * size );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test05(1);
- test05(1000);
- test05(10000);
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc
deleted file mode 100644
index aedcdb26391..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// istringstream/stringbuf extractor properly size buffer based on
-// actual, not allocated contents (string.size() vs. string.capacity()).
-// http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00049.html
-void test06(void)
-{
- bool test = true;
-
- typedef std::wstring::size_type size_type;
- std::wstring str01(L"@silent");
- size_type i01 = str01.size();
- size_type i02 = str01.capacity();
- str01.erase(0, 1);
- size_type i03 = str01.size();
- size_type i04 = str01.capacity();
- VERIFY( i01 - 1 == i03 );
- VERIFY( i02 >= i04 );
-
- std::wistringstream is(str01);
- std::wstring str02;
- is >> str02 >> std::ws;
- size_type i05 = str02.size();
- size_type i06 = str02.capacity();
- VERIFY( i05 == i03 );
- VERIFY( i06 <= i04 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc
deleted file mode 100644
index 4028924674b..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00085.html
-// istream::operator>>(string)
-// sets failbit
-// NB: this is a defect in the standard.
-void test07(void)
-{
- bool test = true;
- const std::wstring name(L"z6.cc");
- std::wistringstream iss(name);
- int i = 0;
- std::wstring s;
- while (iss >> s)
- ++i;
-
- VERIFY( i < 3 );
- VERIFY( static_cast<bool>(iss.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc
deleted file mode 100644
index d43d818633f..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-// libstdc++/1019
-void test08()
-{
- using namespace std;
-
- bool test = true;
- wistringstream istrm(L"enero:2001");
- int year;
- wchar_t sep;
- wstring month;
-
- istrm >> setw(5) >> month >> sep >> year;
- VERIFY( month.size() == 5 );
- VERIFY( sep == ':' );
- VERIFY( year == 2001 );
-}
-
-int main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc
deleted file mode 100644
index 726dacc9816..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// 1999-07-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.9 inserters and extractors
-
-// NB: This file is predicated on sstreams, istreams, and ostreams
-// working, not to mention other major details like char_traits, and
-// all of the string class.
-
-#include <string>
-#include <sstream>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-// libstdc++/2830
-void test09()
-{
- bool test = true;
- std::wstring blanks(3, L'\0');
- std::wstring foo = L"peace";
- foo += blanks;
- foo += L"& love";
-
- std::wostringstream oss1;
- oss1 << foo;
- VERIFY( oss1.str() == foo );
-
- std::wostringstream oss2;
- oss2.width(20);
- oss2 << foo;
- VERIFY( oss2.str() != foo );
- VERIFY( oss2.str().size() == 20 );
-}
-
-int main()
-{
- test09();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc
deleted file mode 100644
index da8b30638ff..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// 1999-05-07 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6 string operations
-
-#include <string>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-int test01(void)
-{
- bool test = true;
-
- std::string str1;
- std::string str2;
-
- // Should get this:
- // 1:8-chars_8-chars_
- // 2:8-chars_8-chars_
- str1 = std::string("8-chars_") + "8-chars_";
- const char* p1 = str1.c_str();
- // printf("1:%s\n", str1.c_str());
- str2 = str1 + "7-chars";
- // printf("2:%s\n", str1.c_str()); //str1 is gone
- const char* p2 = str1.c_str();
- return 0;
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/2.cc
deleted file mode 100644
index c41ac68ffe2..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/2.cc
+++ /dev/null
@@ -1,300 +0,0 @@
-// 1998-10-01, 1999-06-25 bkoz
-
-// Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.1 basic_string non-member functions
-
-// 21.3.7.2 operator==
-/*
-template<class charT, class traits, class Allocator>
- bool operator==(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator==(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator==(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-*/
-
-// 21.3.7.3 operator!=
-/*
-template<class charT, class traits, class Allocator>
- bool operator!=(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator!=(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator!=(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-*/
-
-// 21.3.7.4 operator<
-/*
-template<class charT, class traits, class Allocator>
- bool operator< (const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator< (const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator< (const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-*/
-
-// 21.3.7.5 operator>
-/*
-template<class charT, class traits, class Allocator>
- bool operator> (const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator> (const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator> (const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-*/
-
-//21.3.7.6 operator<=
-/*
-template<class charT, class traits, class Allocator>
- bool operator<=(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator<=(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator<=(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-*/
-
-// 21.3.7.7 operator>=
-/*
-template<class charT, class traits, class Allocator>
- bool operator>=(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator>=(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator>=(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-*/
-
-#include <string>
-#include <testsuite_hooks.h>
-
-int test01(void)
-{
- bool test = true;
- std::string str_0("costa rica");
- std::string str_1("costa marbella");
- std::string str_2("cost");
- std::string str_3("costa ricans");
- std::string str_4;
-
- str_4 = str_0;
- //comparisons between string objects
- VERIFY( !(str_0 == str_1) );
- VERIFY( !(str_0 == str_2) );
- VERIFY( !(str_0 == str_3) );
- VERIFY( !(str_1 == str_0) );
- VERIFY( !(str_2 == str_0) );
- VERIFY( !(str_3 == str_0) );
- VERIFY( str_4 == str_0 );
- VERIFY( str_0 == str_4 );
-
- VERIFY( str_0 != str_1 );
- VERIFY( str_0 != str_2 );
- VERIFY( str_0 != str_3 );
- VERIFY( str_1 != str_0 );
- VERIFY( str_2 != str_0 );
- VERIFY( str_3 != str_0 );
- VERIFY( !(str_0 != str_4) );
- VERIFY( !(str_4 != str_0) );
-
- VERIFY( str_0 > str_1 ); //true cuz r>m
- VERIFY( str_0 > str_2 );
- VERIFY( !(str_0 > str_3) );
- VERIFY( !(str_1 > str_0) ); //false cuz m<r
- VERIFY( !(str_2 > str_0) );
- VERIFY( str_3 > str_0 );
- VERIFY( !(str_0 > str_4) );
- VERIFY( !(str_4 > str_0) );
-
- VERIFY( !(str_0 < str_1) ); //false cuz r>m
- VERIFY( !(str_0 < str_2) );
- VERIFY( str_0 < str_3 );
- VERIFY( str_1 < str_0 ); //true cuz m<r
- VERIFY( str_2 < str_0 );
- VERIFY( !(str_3 < str_0) );
- VERIFY( !(str_0 < str_4) );
- VERIFY( !(str_4 < str_0) );
-
- VERIFY( str_0 >= str_1 ); //true cuz r>m
- VERIFY( str_0 >= str_2 );
- VERIFY( !(str_0 >= str_3) );
- VERIFY( !(str_1 >= str_0) );//false cuz m<r
- VERIFY( !(str_2 >= str_0) );
- VERIFY( str_3 >= str_0 );
- VERIFY( str_0 >= str_4 );
- VERIFY( str_4 >= str_0 );
-
- VERIFY( !(str_0 <= str_1) );//false cuz r>m
- VERIFY( !(str_0 <= str_2) );
- VERIFY( str_0 <= str_3 );
- VERIFY( str_1 <= str_0 );//true cuz m<r
- VERIFY( str_2 <= str_0 );
- VERIFY( !(str_3 <= str_0) );
- VERIFY( str_0 <= str_4 );
- VERIFY( str_4 <= str_0 );
-
- //comparisons between string object and string literal
- VERIFY( !(str_0 == "costa marbella") );
- VERIFY( !(str_0 == "cost") );
- VERIFY( !(str_0 == "costa ricans") );
- VERIFY( !("costa marbella" == str_0) );
- VERIFY( !("cost" == str_0) );
- VERIFY( !("costa ricans" == str_0) );
- VERIFY( "costa rica" == str_0 );
- VERIFY( str_0 == "costa rica" );
-
- VERIFY( str_0 != "costa marbella" );
- VERIFY( str_0 != "cost" );
- VERIFY( str_0 != "costa ricans" );
- VERIFY( "costa marbella" != str_0 );
- VERIFY( "cost" != str_0 );
- VERIFY( "costa ricans" != str_0 );
- VERIFY( !("costa rica" != str_0) );
- VERIFY( !(str_0 != "costa rica") );
-
- VERIFY( str_0 > "costa marbella" ); //true cuz r>m
- VERIFY( str_0 > "cost" );
- VERIFY( !(str_0 > "costa ricans") );
- VERIFY( !("costa marbella" > str_0) );//false cuz m<r
- VERIFY( !("cost" > str_0) );
- VERIFY( "costa ricans" > str_0 );
- VERIFY( !("costa rica" > str_0) );
- VERIFY( !(str_0 > "costa rica") );
-
- VERIFY( !(str_0 < "costa marbella") );//false cuz r>m
- VERIFY( !(str_0 < "cost") );
- VERIFY( str_0 < "costa ricans" );
- VERIFY( "costa marbella" < str_0 );//true cuz m<r
- VERIFY( "cost" < str_0 );
- VERIFY( !("costa ricans" < str_0) );
- VERIFY( !("costa rica" < str_0) );
- VERIFY( !(str_0 < "costa rica") );
-
- VERIFY( str_0 >= "costa marbella" );//true cuz r>m
- VERIFY( str_0 >= "cost" );
- VERIFY( !(str_0 >= "costa ricans") );
- VERIFY( !("costa marbella" >= str_0) );//false cuz m<r
- VERIFY( !("cost" >= str_0) );
- VERIFY( "costa ricans" >= str_0 );
- VERIFY( "costa rica" >= str_0 );
- VERIFY( str_0 >= "costa rica" );
-
- VERIFY( !(str_0 <= "costa marbella") );//false cuz r>m
- VERIFY( !(str_0 <= "cost") );
- VERIFY( str_0 <= "costa ricans" );
- VERIFY( "costa marbella" <= str_0 );//true cuz m<r
- VERIFY( "cost" <= str_0 );
- VERIFY( !("costa ricans" <= str_0) );
- VERIFY( "costa rica" <= str_0 );
- VERIFY( str_0 <= "costa rica" );
-
- // 21.3.7.1 operator+
-/*
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(charT lhs, const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(const basic_string<charT,traits,Allocator>& lhs, charT rhs);
-*/
-
- str_4 = str_0 + "ns";
- VERIFY( str_4 == str_3 );
-
- const std::string str_5(" marbella");
- str_4 = "costa" + str_5;
- VERIFY( str_4 == str_1 );
-
- std::string str_6("ns");
- str_4 = str_0 + str_6;
- VERIFY( str_4 == str_3 );
-
- str_4 = str_0 + 'n';
- str_4 = str_4 + 's';
- VERIFY( str_4 == str_3 );
-
- str_4 = 'a' + str_6;
- str_4 = 'c' + str_4;
- str_4 = 'i' + str_4;
- str_4 = 'r' + str_4;
- str_4 = ' ' + str_4;
- str_4 = 'a' + str_4;
- str_4 = 't' + str_4;
- str_4 = 's' + str_4;
- str_4 = 'o' + str_4;
- str_4 = 'c' + str_4;
- VERIFY( str_4 == str_3 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return 0;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/1.cc
deleted file mode 100644
index cd8f18bf663..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/1.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// 1999-05-07 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6 string operations
-
-#include <string>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-int test01(void)
-{
- bool test = true;
-
- std::wstring str1;
- std::wstring str2;
-
- // Should get this:
- // 1:8-chars_8-chars_
- // 2:8-chars_8-chars_
- str1 = std::wstring(L"8-chars_") + L"8-chars_";
- const wchar_t* p1 = str1.c_str();
- // wprintf("1:%s\n", str1.c_str());
- str2 = str1 + L"7-chars";
- // wprintf("2:%s\n", str1.c_str()); //str1 is gone
- const wchar_t* p2 = str1.c_str();
- return 0;
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/2.cc
deleted file mode 100644
index 11e63f70e93..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/2.cc
+++ /dev/null
@@ -1,300 +0,0 @@
-// 1998-10-01, 1999-06-25 bkoz
-
-// Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.7.1 basic_string non-member functions
-
-// 21.3.7.2 operator==
-/*
-template<class charT, class traits, class Allocator>
- bool operator==(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator==(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator==(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-*/
-
-// 21.3.7.3 operator!=
-/*
-template<class charT, class traits, class Allocator>
- bool operator!=(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator!=(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator!=(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-*/
-
-// 21.3.7.4 operator<
-/*
-template<class charT, class traits, class Allocator>
- bool operator< (const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator< (const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator< (const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-*/
-
-// 21.3.7.5 operator>
-/*
-template<class charT, class traits, class Allocator>
- bool operator> (const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator> (const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator> (const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-*/
-
-//21.3.7.6 operator<=
-/*
-template<class charT, class traits, class Allocator>
- bool operator<=(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator<=(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator<=(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-*/
-
-// 21.3.7.7 operator>=
-/*
-template<class charT, class traits, class Allocator>
- bool operator>=(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator>=(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- bool operator>=(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-*/
-
-#include <string>
-#include <testsuite_hooks.h>
-
-int test01(void)
-{
- bool test = true;
- std::wstring str_0(L"costa rica");
- std::wstring str_1(L"costa marbella");
- std::wstring str_2(L"cost");
- std::wstring str_3(L"costa ricans");
- std::wstring str_4;
-
- str_4 = str_0;
- //comparisons between string objects
- VERIFY( !(str_0 == str_1) );
- VERIFY( !(str_0 == str_2) );
- VERIFY( !(str_0 == str_3) );
- VERIFY( !(str_1 == str_0) );
- VERIFY( !(str_2 == str_0) );
- VERIFY( !(str_3 == str_0) );
- VERIFY( str_4 == str_0 );
- VERIFY( str_0 == str_4 );
-
- VERIFY( str_0 != str_1 );
- VERIFY( str_0 != str_2 );
- VERIFY( str_0 != str_3 );
- VERIFY( str_1 != str_0 );
- VERIFY( str_2 != str_0 );
- VERIFY( str_3 != str_0 );
- VERIFY( !(str_0 != str_4) );
- VERIFY( !(str_4 != str_0) );
-
- VERIFY( str_0 > str_1 ); //true cuz r>m
- VERIFY( str_0 > str_2 );
- VERIFY( !(str_0 > str_3) );
- VERIFY( !(str_1 > str_0) ); //false cuz m<r
- VERIFY( !(str_2 > str_0) );
- VERIFY( str_3 > str_0 );
- VERIFY( !(str_0 > str_4) );
- VERIFY( !(str_4 > str_0) );
-
- VERIFY( !(str_0 < str_1) ); //false cuz r>m
- VERIFY( !(str_0 < str_2) );
- VERIFY( str_0 < str_3 );
- VERIFY( str_1 < str_0 ); //true cuz m<r
- VERIFY( str_2 < str_0 );
- VERIFY( !(str_3 < str_0) );
- VERIFY( !(str_0 < str_4) );
- VERIFY( !(str_4 < str_0) );
-
- VERIFY( str_0 >= str_1 ); //true cuz r>m
- VERIFY( str_0 >= str_2 );
- VERIFY( !(str_0 >= str_3) );
- VERIFY( !(str_1 >= str_0) );//false cuz m<r
- VERIFY( !(str_2 >= str_0) );
- VERIFY( str_3 >= str_0 );
- VERIFY( str_0 >= str_4 );
- VERIFY( str_4 >= str_0 );
-
- VERIFY( !(str_0 <= str_1) );//false cuz r>m
- VERIFY( !(str_0 <= str_2) );
- VERIFY( str_0 <= str_3 );
- VERIFY( str_1 <= str_0 );//true cuz m<r
- VERIFY( str_2 <= str_0 );
- VERIFY( !(str_3 <= str_0) );
- VERIFY( str_0 <= str_4 );
- VERIFY( str_4 <= str_0 );
-
- //comparisons between string object and string literal
- VERIFY( !(str_0 == L"costa marbella") );
- VERIFY( !(str_0 == L"cost") );
- VERIFY( !(str_0 == L"costa ricans") );
- VERIFY( !(L"costa marbella" == str_0) );
- VERIFY( !(L"cost" == str_0) );
- VERIFY( !(L"costa ricans" == str_0) );
- VERIFY( L"costa rica" == str_0 );
- VERIFY( str_0 == L"costa rica" );
-
- VERIFY( str_0 != L"costa marbella" );
- VERIFY( str_0 != L"cost" );
- VERIFY( str_0 != L"costa ricans" );
- VERIFY( L"costa marbella" != str_0 );
- VERIFY( L"cost" != str_0 );
- VERIFY( L"costa ricans" != str_0 );
- VERIFY( !(L"costa rica" != str_0) );
- VERIFY( !(str_0 != L"costa rica") );
-
- VERIFY( str_0 > L"costa marbella" ); //true cuz r>m
- VERIFY( str_0 > L"cost" );
- VERIFY( !(str_0 > L"costa ricans") );
- VERIFY( !(L"costa marbella" > str_0) );//false cuz m<r
- VERIFY( !(L"cost" > str_0) );
- VERIFY( L"costa ricans" > str_0 );
- VERIFY( !(L"costa rica" > str_0) );
- VERIFY( !(str_0 > L"costa rica") );
-
- VERIFY( !(str_0 < L"costa marbella") );//false cuz r>m
- VERIFY( !(str_0 < L"cost") );
- VERIFY( str_0 < L"costa ricans" );
- VERIFY( L"costa marbella" < str_0 );//true cuz m<r
- VERIFY( L"cost" < str_0 );
- VERIFY( !(L"costa ricans" < str_0) );
- VERIFY( !(L"costa rica" < str_0) );
- VERIFY( !(str_0 < L"costa rica") );
-
- VERIFY( str_0 >= L"costa marbella" );//true cuz r>m
- VERIFY( str_0 >= L"cost" );
- VERIFY( !(str_0 >= L"costa ricans") );
- VERIFY( !(L"costa marbella" >= str_0) );//false cuz m<r
- VERIFY( !(L"cost" >= str_0) );
- VERIFY( L"costa ricans" >= str_0 );
- VERIFY( L"costa rica" >= str_0 );
- VERIFY( str_0 >= L"costa rica" );
-
- VERIFY( !(str_0 <= L"costa marbella") );//false cuz r>m
- VERIFY( !(str_0 <= L"cost") );
- VERIFY( str_0 <= L"costa ricans" );
- VERIFY( L"costa marbella" <= str_0 );//true cuz m<r
- VERIFY( L"cost" <= str_0 );
- VERIFY( !(L"costa ricans" <= str_0) );
- VERIFY( L"costa rica" <= str_0 );
- VERIFY( str_0 <= L"costa rica" );
-
- // 21.3.7.1 operator+
-/*
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(const basic_string<charT,traits,Allocator>& lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(const charT* lhs,
- const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(const basic_string<charT,traits,Allocator>& lhs,
- const charT* rhs);
-
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(charT lhs, const basic_string<charT,traits,Allocator>& rhs);
-
-template<class charT, class traits, class Allocator>
- basic_string<charT,traits,Allocator>
- operator+(const basic_string<charT,traits,Allocator>& lhs, charT rhs);
-*/
-
- str_4 = str_0 + L"ns";
- VERIFY( str_4 == str_3 );
-
- const std::wstring str_5(L" marbella");
- str_4 = L"costa" + str_5;
- VERIFY( str_4 == str_1 );
-
- std::wstring str_6(L"ns");
- str_4 = str_0 + str_6;
- VERIFY( str_4 == str_3 );
-
- str_4 = str_0 + L'n';
- str_4 = str_4 + L's';
- VERIFY( str_4 == str_3 );
-
- str_4 = L'a' + str_6;
- str_4 = L'c' + str_4;
- str_4 = L'i' + str_4;
- str_4 = L'r' + str_4;
- str_4 = L' ' + str_4;
- str_4 = L'a' + str_4;
- str_4 = L't' + str_4;
- str_4 = L's' + str_4;
- str_4 = L'o' + str_4;
- str_4 = L'c' + str_4;
- VERIFY( str_4 == str_3 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return 0;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/1.cc
deleted file mode 100644
index 7145d4c7840..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/1.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::const_reference cref;
- typedef std::string::reference ref;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const char str_lit01[] = "ventura, california";
- const std::string str01(str_lit01);
- std::string str02("del mar, california");
- std::string str03(" and ");
- std::string str05;
-
- // string& replace(size_type pos, size_type n, const string& string)
- // string& replace(size_type pos1, size_type n1, const string& string,
- // size_type pos2, size_type n2)
- // string& replace(size_type pos, size_type n1, const char* s, size_type n2)
- // string& replace(size_type pos, size_type n1, const char* s)
- // string& replace(size_type pos, size_type n1, size_type n2, char c)
- // string& replace(iterator it1, iterator it2, const string& str)
- // string& replace(iterator it1, iterator it2, const chat* s, size_type n)
- // string& replace(iterator it1, iterator it2, const chat* s)
- // string& replace(iterator it1, iterator it2, size_type n, char c)
- // template<typename InputIter>
- // string& replace(iterator it1, iterator it2, InputIter j1, InputIter j2)
-
- // with mods, from tstring.cc, from jason merrill, et. al.
- std::string X = "Hello";
- std::string x = X;
-
- char ch = x[0];
- VERIFY( ch == 'H' );
-
- std::string z = x.substr(2, 3);
- VERIFY( z == "llo" );
-
- x.replace(2, 2, "r");
- VERIFY( x == "Hero" );
-
- x = X;
- x.replace(0, 1, "j");
- VERIFY( x == "jello" );
-
- int ar[] = { 'H', 'e', 'l', 'l', 'o' };
- x.replace(std::find(x.begin(), x.end(), 'l'),
- std::find(x.rbegin(), x.rend(), 'l').base(), ar,
- ar + sizeof(ar) / sizeof(ar[0]));
- VERIFY( x == "jeHelloo" );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/2.cc
deleted file mode 100644
index 7731edd37a4..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/2.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-void
-test02()
-{
- bool test = true;
- const char* strlit = "../the long pier/Hanalei Bay/Kauai/Hawaii";
- std::string aux = strlit;
- aux.replace(aux.begin()+5, aux.begin()+20,
- aux.begin()+10, aux.begin()+15);
- VERIFY(aux == "../thg piealei Bay/Kauai/Hawaii");
-
- aux = strlit;
- aux.replace(aux.begin() + 10, aux.begin() + 15,
- aux.begin() + 5, aux.begin() + 20);
- VERIFY(aux == "../the lone long pier/Hanr/Hanalei Bay/Kauai/Hawaii");
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/3.cc
deleted file mode 100644
index a04d13d4024..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/3.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// Some more miscellaneous tests
-void
-test03()
-{
- bool test = true;
- const char* title01 = "nine types of ambiguity";
- const char* title02 = "ultra";
- std::string str01 = title01;
- std::string str02 = title02;
-
- str01.replace(0, 4, str02);
- VERIFY(str01 == "ultra types of ambiguity");
-
- str01.replace(15, 9, str02, 2, 2);
- VERIFY(str01 == "ultra types of tr");
-
- str01 = title01;
- str02.replace(0, 0, str01, 0, std::string::npos);
- VERIFY(str02 == "nine types of ambiguityultra");
-
- str02.replace(11, 2, title02, 5);
- VERIFY(str02 == "nine types ultra ambiguityultra");
-
- str02.replace(11, 5, title01, 2);
- VERIFY(str02 == "nine types ni ambiguityultra");
-
- str01.replace(str01.size(), 0, title02);
- VERIFY(str01 == "nine types of ambiguityultra");
-
- str01 = title01;
- str02 = title02;
- str01.replace(str01.begin(), str01.end(), str02);
- VERIFY(str01 == "ultra");
-
- str01.replace(str01.begin(), str01.begin(), title01, 4);
- VERIFY(str01 == "nineultra");
-
- str01.replace(str01.end(), str01.end(), title01 + 5, 5);
- VERIFY(str01 == "nineultratypes");
-
- str01.replace(str01.begin(), str01.end(), title02);
- VERIFY(str01 == "ultra");
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/4.cc
deleted file mode 100644
index 47cf335daa0..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/4.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// Some more tests for
-// template<typename InputIter>
-// string& replace(iterator it1, iterator it2, InputIter j1, InputIter j2)
-void
-test04()
-{
- bool test = true;
- std::string str01 = "geogaddi";
- std::string str02;
-
- typedef std::string::iterator iterator;
- typedef std::string::const_iterator const_iterator;
-
- iterator it1 = str01.begin();
- iterator it2 = str01.end();
- str02.replace(str02.begin(), str02.end(), it1, it2);
- VERIFY(str02 == "geogaddi");
-
- str02 = "boards";
- const_iterator c_it1 = str01.begin();
- const_iterator c_it2 = str01.end();
- str02.replace(str02.begin(), str02.end(), c_it1, c_it2);
- VERIFY(str02 == "geogaddi");
-
- str02 = "boards";
- const char* c_ptr1 = str01.c_str();
- const char* c_ptr2 = str01.c_str() + 8;
- str02.replace(str02.begin(), str02.end(), c_ptr1, c_ptr2);
- VERIFY(str02 == "geogaddi");
-
- str02 = "boards";
- char* ptr1 = &*str01.begin();
- char* ptr2 = &*str01.end();
- str02.replace(str02.begin(), str02.end(), ptr1, ptr2);
- VERIFY(str02 == "geogaddi");
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/5.cc
deleted file mode 100644
index 8c112c545ed..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/char/5.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// We wrongly used __n1 instead of __foldn1 in the length_error
-// check at the beginning of replace(__pos, __n1, __s, __n2)
-void
-test05()
-{
- bool test = true;
- std::string str01 = "londinium";
- std::string str02 = "cydonia";
-
- str01.replace(0, 20, str02.c_str(), 3);
- VERIFY(str01 == "cyd");
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/1.cc
deleted file mode 100644
index fd0967a86fe..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/1.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::const_reference cref;
- typedef std::wstring::reference ref;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const wchar_t str_lit01[] = L"ventura, california";
- const std::wstring str01(str_lit01);
- std::wstring str02(L"del mar, california");
- std::wstring str03(L" and ");
- std::wstring str05;
-
- // wstring& replace(size_type pos, size_type n, const wstring& string)
- // wstring& replace(size_type pos1, size_type n1, const wstring& string,
- // size_type pos2, size_type n2)
- // wstring& replace(size_type pos, size_type n1, const wchar_t* s, size_type n2)
- // wstring& replace(size_type pos, size_type n1, const wchar_t* s)
- // wstring& replace(size_type pos, size_type n1, size_type n2, wchar_t c)
- // wstring& replace(iterator it1, iterator it2, const wstring& str)
- // wstring& replace(iterator it1, iterator it2, const wchar_t* s, size_type n)
- // wstring& replace(iterator it1, iterator it2, const wchar_t* s)
- // wstring& replace(iterator it1, iterator it2, size_type n, char c)
- // template<typename InputIter>
- // wstring& replace(iterator it1, iterator it2, InputIter j1, InputIter j2)
-
- // with mods, from tstring.cc, from jason merrill, et. al.
- std::wstring X = L"Hello";
- std::wstring x = X;
-
- wchar_t ch = x[0];
- VERIFY( ch == L'H' );
-
- std::wstring z = x.substr(2, 3);
- VERIFY( z == L"llo" );
-
- x.replace(2, 2, L"r");
- VERIFY( x == L"Hero" );
-
- x = X;
- x.replace(0, 1, L"j");
- VERIFY( x == L"jello" );
-
- wchar_t ar[] = { L'H', L'e', L'l', L'l', L'o' };
- x.replace(std::find(x.begin(), x.end(), L'l'),
- std::find(x.rbegin(), x.rend(), L'l').base(), ar,
- ar + sizeof(ar) / sizeof(ar[0]));
- VERIFY( x == L"jeHelloo" );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/2.cc
deleted file mode 100644
index da9678a338f..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/2.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-void
-test02()
-{
- bool test = true;
- const wchar_t* strlit = L"../the long pier/Hanalei Bay/Kauai/Hawaii";
- std::wstring aux = strlit;
- aux.replace(aux.begin()+5, aux.begin()+20,
- aux.begin()+10, aux.begin()+15);
- VERIFY(aux == L"../thg piealei Bay/Kauai/Hawaii");
-
- aux = strlit;
- aux.replace(aux.begin() + 10, aux.begin() + 15,
- aux.begin() + 5, aux.begin() + 20);
- VERIFY(aux == L"../the lone long pier/Hanr/Hanalei Bay/Kauai/Hawaii");
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/3.cc
deleted file mode 100644
index 2ff6ef28294..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/3.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// Some more miscellaneous tests
-void
-test03()
-{
- bool test = true;
- const wchar_t* title01 = L"nine types of ambiguity";
- const wchar_t* title02 = L"ultra";
- std::wstring str01 = title01;
- std::wstring str02 = title02;
-
- str01.replace(0, 4, str02);
- VERIFY(str01 == L"ultra types of ambiguity");
-
- str01.replace(15, 9, str02, 2, 2);
- VERIFY(str01 == L"ultra types of tr");
-
- str01 = title01;
- str02.replace(0, 0, str01, 0, std::wstring::npos);
- VERIFY(str02 == L"nine types of ambiguityultra");
-
- str02.replace(11, 2, title02, 5);
- VERIFY(str02 == L"nine types ultra ambiguityultra");
-
- str02.replace(11, 5, title01, 2);
- VERIFY(str02 == L"nine types ni ambiguityultra");
-
- str01.replace(str01.size(), 0, title02);
- VERIFY(str01 == L"nine types of ambiguityultra");
-
- str01 = title01;
- str02 = title02;
- str01.replace(str01.begin(), str01.end(), str02);
- VERIFY(str01 == L"ultra");
-
- str01.replace(str01.begin(), str01.begin(), title01, 4);
- VERIFY(str01 == L"nineultra");
-
- str01.replace(str01.end(), str01.end(), title01 + 5, 5);
- VERIFY(str01 == L"nineultratypes");
-
- str01.replace(str01.begin(), str01.end(), title02);
- VERIFY(str01 == L"ultra");
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/4.cc
deleted file mode 100644
index bc827d03282..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/4.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// Some more tests for
-// template<typename InputIter>
-// wstring& replace(iterator it1, iterator it2, InputIter j1, InputIter j2)
-void
-test04()
-{
- bool test = true;
- std::wstring str01 = L"geogaddi";
- std::wstring str02;
-
- typedef std::wstring::iterator iterator;
- typedef std::wstring::const_iterator const_iterator;
-
- iterator it1 = str01.begin();
- iterator it2 = str01.end();
- str02.replace(str02.begin(), str02.end(), it1, it2);
- VERIFY(str02 == L"geogaddi");
-
- str02 = L"boards";
- const_iterator c_it1 = str01.begin();
- const_iterator c_it2 = str01.end();
- str02.replace(str02.begin(), str02.end(), c_it1, c_it2);
- VERIFY(str02 == L"geogaddi");
-
- str02 = L"boards";
- const wchar_t* c_ptr1 = str01.c_str();
- const wchar_t* c_ptr2 = str01.c_str() + 8;
- str02.replace(str02.begin(), str02.end(), c_ptr1, c_ptr2);
- VERIFY(str02 == L"geogaddi");
-
- str02 = L"boards";
- wchar_t* ptr1 = &*str01.begin();
- wchar_t* ptr2 = &*str01.end();
- str02.replace(str02.begin(), str02.end(), ptr1, ptr2);
- VERIFY(str02 == L"geogaddi");
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/5.cc
deleted file mode 100644
index f54cfb9a2e7..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/5.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.5.6 basic_string::replace
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// We wrongly used __n1 instead of __foldn1 in the length_error
-// check at the beginning of replace(__pos, __n1, __s, __n2)
-void
-test05()
-{
- bool test = true;
- std::wstring str01 = L"londinium";
- std::wstring str02 = L"cydonia";
-
- str01.replace(0, 20, str02.c_str(), 3);
- VERIFY(str01 == L"cyd");
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/1.cc
deleted file mode 100644
index 5b9a4181b91..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/1.cc
+++ /dev/null
@@ -1,97 +0,0 @@
-// 2000-06-22 -=dbv=- (shamelessy copied from bkoz' find.cc)
-
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// 21.3.6.2 basic_string rfind
-bool test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::const_reference cref;
- typedef std::string::reference ref;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const char str_lit01[] = "mave";
- const std::string str01("mavericks, santa cruz");
- std::string str02(str_lit01);
- std::string str03("s, s");
- std::string str04;
-
- // size_type rfind(const string&, size_type pos = 0) const;
- csz01 = str01.rfind(str01);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str01, 4);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str02,3);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str02);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str03);
- VERIFY( csz01 == 8 );
- csz01 = str01.rfind(str03, 3);
- VERIFY( csz01 == npos );
- csz01 = str01.rfind(str03, 12);
- VERIFY( csz01 == 8 );
-
- // An empty string consists of no characters
- // therefore it should be found at every point in a string,
- // except beyond the end
- csz01 = str01.rfind(str04, 0);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str04, 5);
- VERIFY( csz01 == 5 );
- csz01 = str01.rfind(str04, str01.size());
- VERIFY( csz01 == str01.size() );
- csz01 = str01.rfind(str04, str01.size()+1);
- VERIFY( csz01 == str01.size() );
-
- // size_type rfind(const char* s, size_type pos, size_type n) const;
- csz01 = str01.rfind(str_lit01, 0, 3);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str_lit01, 3, 0);
- VERIFY( csz01 == 3 );
-
- // size_type rfind(const char* s, size_type pos = 0) const;
- csz01 = str01.rfind(str_lit01);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str_lit01, 3);
- VERIFY( csz01 == 0 );
-
- // size_type rfind(char c, size_type pos = 0) const;
- csz01 = str01.rfind('z');
- csz02 = str01.size() - 1;
- VERIFY( csz01 == csz02 );
- csz01 = str01.rfind('/');
- VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/2.cc
deleted file mode 100644
index 30e40a98658..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/2.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// from tstring.cc, from jason merrill, et. al.
-
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// 21.3.6.4 basic_string::find_last_of
-bool test02()
-{
- bool test = true;
- std::string z("ab");
- std::string::size_type pos;
- pos = z.find_last_of("ab");
- VERIFY( pos == 1 );
- pos = z.find_last_of("Xa");
- VERIFY( pos == 0 );
- pos = z.find_last_of("Xb");
- VERIFY( pos == 1 );
- pos = z.find_last_of("XYZ");
- VERIFY( pos == std::string::npos );
- pos = z.find_last_of('a');
- VERIFY( pos == 0 );
- pos = z.find_last_of('b');
- VERIFY( pos == 1 );
- pos = z.find_last_of('X');
- VERIFY( pos == std::string::npos );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/3.cc
deleted file mode 100644
index aeb132b6a58..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/3.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// from tstring.cc, from jason merrill, et. al.
-
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// 21.3.6.6 basic_string::find_last_not_of
-bool test03()
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- std::string::size_type pos;
- csize_type npos = std::string::npos;
-
- std::string x;
- pos = x.find_last_not_of('X');
- VERIFY( pos == npos );
- pos = x.find_last_not_of("XYZ");
- VERIFY( pos == npos );
-
- std::string y("a");
- pos = y.find_last_not_of('X');
- VERIFY( pos == 0 );
- pos = y.find_last_not_of('a');
- VERIFY( pos == npos );
- pos = y.find_last_not_of("XYZ");
- VERIFY( pos == 0 );
- pos = y.find_last_not_of("a");
- VERIFY( pos == npos );
-
- std::string z("ab");
- pos = z.find_last_not_of('X');
- VERIFY( pos == 1 );
- pos = z.find_last_not_of("XYZ");
- VERIFY( pos == 1 );
- pos = z.find_last_not_of('b');
- VERIFY( pos == 0 );
- pos = z.find_last_not_of("Xb");
- VERIFY( pos == 0 );
- pos = z.find_last_not_of("Xa");
- VERIFY( pos == 1 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/1.cc
deleted file mode 100644
index 9681bf4c8e4..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/1.cc
+++ /dev/null
@@ -1,97 +0,0 @@
-// 2000-06-22 -=dbv=- (shamelessy copied from bkoz' find.cc)
-
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// 21.3.6.2 basic_string rfind
-bool test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::const_reference cref;
- typedef std::wstring::reference ref;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const wchar_t str_lit01[] = L"mave";
- const std::wstring str01(L"mavericks, santa cruz");
- std::wstring str02(str_lit01);
- std::wstring str03(L"s, s");
- std::wstring str04;
-
- // size_type rfind(const wstring&, size_type pos = 0) const;
- csz01 = str01.rfind(str01);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str01, 4);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str02,3);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str02);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str03);
- VERIFY( csz01 == 8 );
- csz01 = str01.rfind(str03, 3);
- VERIFY( csz01 == npos );
- csz01 = str01.rfind(str03, 12);
- VERIFY( csz01 == 8 );
-
- // An empty string consists of no characters
- // therefore it should be found at every point in a string,
- // except beyond the end
- csz01 = str01.rfind(str04, 0);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str04, 5);
- VERIFY( csz01 == 5 );
- csz01 = str01.rfind(str04, str01.size());
- VERIFY( csz01 == str01.size() );
- csz01 = str01.rfind(str04, str01.size()+1);
- VERIFY( csz01 == str01.size() );
-
- // size_type rfind(const wchar_t* s, size_type pos, size_type n) const;
- csz01 = str01.rfind(str_lit01, 0, 3);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str_lit01, 3, 0);
- VERIFY( csz01 == 3 );
-
- // size_type rfind(const wchar_t* s, size_type pos = 0) const;
- csz01 = str01.rfind(str_lit01);
- VERIFY( csz01 == 0 );
- csz01 = str01.rfind(str_lit01, 3);
- VERIFY( csz01 == 0 );
-
- // size_type rfind(wchar_t c, size_type pos = 0) const;
- csz01 = str01.rfind(L'z');
- csz02 = str01.size() - 1;
- VERIFY( csz01 == csz02 );
- csz01 = str01.rfind(L'/');
- VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/2.cc
deleted file mode 100644
index 587b19b4a79..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/2.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// from tstring.cc, from jason merrill, et. al.
-
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// 21.3.6.4 basic_string::find_last_of
-bool test02()
-{
- bool test = true;
- std::wstring::size_type pos;
- std::wstring z(L"ab");
- pos = z.find_last_of(L"ab");
- VERIFY( pos == 1 );
- pos = z.find_last_of(L"Xa");
- VERIFY( pos == 0 );
- pos = z.find_last_of(L"Xb");
- VERIFY( pos == 1 );
- pos = z.find_last_of(L"XYZ");
- VERIFY( pos == std::wstring::npos );
- pos = z.find_last_of(L'a');
- VERIFY( pos == 0 );
- pos = z.find_last_of(L'b');
- VERIFY( pos == 1 );
- pos = z.find_last_of(L'X');
- VERIFY( pos == std::wstring::npos );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/3.cc
deleted file mode 100644
index 1bfd1eb757b..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/3.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// from tstring.cc, from jason merrill, et. al.
-
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <string>
-#include <testsuite_hooks.h>
-
-// 21.3.6.6 basic_string::find_last_not_of
-bool test03()
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- std::wstring::size_type pos;
- csize_type npos = std::wstring::npos;
-
- std::wstring x;
- pos = x.find_last_not_of(L'X');
- VERIFY( pos == npos );
- pos = x.find_last_not_of(L"XYZ");
- VERIFY( pos == npos );
-
- std::wstring y(L"a");
- pos = y.find_last_not_of(L'X');
- VERIFY( pos == 0 );
- pos = y.find_last_not_of(L'a');
- VERIFY( pos == npos );
- pos = y.find_last_not_of(L"XYZ");
- VERIFY( pos == 0 );
- pos = y.find_last_not_of(L"a");
- VERIFY( pos == npos );
-
- std::wstring z(L"ab");
- pos = z.find_last_not_of(L'X');
- VERIFY( pos == 1 );
- pos = z.find_last_not_of(L"XYZ");
- VERIFY( pos == 1 );
- pos = z.find_last_not_of(L'b');
- VERIFY( pos == 0 );
- pos = z.find_last_not_of(L"Xb");
- VERIFY( pos == 0 );
- pos = z.find_last_not_of(L"Xa");
- VERIFY( pos == 1 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/substr/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/substr/char/1.cc
deleted file mode 100644
index be2a379c581..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/substr/char/1.cc
+++ /dev/null
@@ -1,80 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6.7 basic_string::substr
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::string::size_type csize_type;
- typedef std::string::const_reference cref;
- typedef std::string::reference ref;
- csize_type npos = std::string::npos;
- csize_type csz01, csz02;
-
- const char str_lit01[] = "rockaway, pacifica";
- const std::string str01(str_lit01);
- std::string str02;
-
- // basic_string<charT, _Traits, _Alloc>
- // substr(size_type pos = 0, size_type n = npos) const;
- csz01 = str01.size();
- str02 = str01.substr(0, 1);
- VERIFY( str02 == "r" );
- str02 = str01.substr(10);
- VERIFY( str02 == "pacifica" );
-
- try {
- str02 = str01.substr(csz01 + 1);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- try {
- str02 = str01.substr(csz01);
- VERIFY( str02.size() == 0 );
- }
- catch(std::out_of_range& fail) {
- VERIFY( false );
- }
- catch(...) {
- VERIFY( false );
- }
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/substr/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/substr/wchar_t/1.cc
deleted file mode 100644
index 843ebb6861a..00000000000
--- a/libstdc++-v3/testsuite/21_strings/basic_string/substr/wchar_t/1.cc
+++ /dev/null
@@ -1,80 +0,0 @@
-// 1999-06-10 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.3.6.7 basic_string::substr
-
-#include <string>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-bool test01(void)
-{
- bool test = true;
- typedef std::wstring::size_type csize_type;
- typedef std::wstring::const_reference cref;
- typedef std::wstring::reference ref;
- csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
-
- const wchar_t str_lit01[] = L"rockaway, pacifica";
- const std::wstring str01(str_lit01);
- std::wstring str02;
-
- // basic_string<charT, _Traits, _Alloc>
- // substr(size_type pos = 0, size_type n = npos) const;
- csz01 = str01.size();
- str02 = str01.substr(0, 1);
- VERIFY( str02 == L"r" );
- str02 = str01.substr(10);
- VERIFY( str02 == L"pacifica" );
-
- try {
- str02 = str01.substr(csz01 + 1);
- VERIFY( false );
- }
- catch(std::out_of_range& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
-
- try {
- str02 = str01.substr(csz01);
- VERIFY( str02.size() == 0 );
- }
- catch(std::out_of_range& fail) {
- VERIFY( false );
- }
- catch(...) {
- VERIFY( false );
- }
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/c_strings/char/1.cc b/libstdc++-v3/testsuite/21_strings/c_strings/char/1.cc
deleted file mode 100644
index 7dfe6c24cf2..00000000000
--- a/libstdc++-v3/testsuite/21_strings/c_strings/char/1.cc
+++ /dev/null
@@ -1,70 +0,0 @@
-// 2001-04-02 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.4: null-terminiated sequence utilities
-
-#include <string>
-#include <cstring>
-
-void test01()
-{
- bool test = true;
- char c = 'a';
- const char cc = 'b';
- char* c1 = &c;
- const char* cc1 = &cc;
- const char* ccarray1 = "san francisco roof garden inspectors";
- const char* ccarray2 = "san francisco sunny-day park inspectors";
- char carray[50];
- std::strcpy(carray, ccarray1);
- void* v = carray;
- const void* cv = ccarray1;
-
- // const char* strchr(const char* s, int c);
- // char* strchr(char* s, int c);
- cc1 = std::strchr(ccarray1, 'c');
- c1 = std::strchr(carray, 'c');
-
- // const char* strpbrk(const char* s1, const char* s2);
- // char* strpbrk(char* s1, const char* s2);
- cc1 = std::strpbrk(ccarray1, ccarray2);
- c1 = std::strpbrk(carray, ccarray2);
-
- // const char* strrchr(const char* s, int c);
- // char* strrchr(char* s, int c);
- cc1 = std::strrchr(ccarray1, 'c');
- c1 = std::strrchr(carray, 'c');
-
- // const char* strstr(const char* s1, const char* s2);
- // char* strstr(char* s1, const char* s2);
- cc1 = std::strstr(ccarray1, ccarray2);
- c1 = std::strstr(carray, carray);
-
- // const void* memchr(const void* s, int c, size_t n);
- // void* memchr( void* s, int c, size_t n);
- cv = std::memchr(cv, 'a', 3);
- v = std::memchr(v, 'a', 3);
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/c_strings/char/2.cc b/libstdc++-v3/testsuite/21_strings/c_strings/char/2.cc
deleted file mode 100644
index 7ec0561b887..00000000000
--- a/libstdc++-v3/testsuite/21_strings/c_strings/char/2.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// 2001-04-02 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.4: null-terminiated sequence utilities
-
-#include <string>
-#include <cstring>
-
-void test02()
-{
- using namespace std;
-
- const char* ccarray1 = "san francisco roof garden inspectors";
- const char* ccarray2 = "san francisco sunny-day park inspectors";
- char carray[50];
- strcpy(carray, ccarray1);
- void* v = carray;
- const void* cv = ccarray1;
-
- memchr(cv, '/', 3);
- strchr(ccarray1, '/');
- strpbrk(ccarray1, ccarray2);
- strrchr(ccarray1, 'c');
- strstr(carray, carray);
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/1.cc
deleted file mode 100644
index 3ad6aed1e0a..00000000000
--- a/libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/1.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 2001-04-02 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.4: null-terminiated sequence utilities
-
-#include <string>
-#include <cstring>
-#include <cwchar>
-
-void test01()
-{
- bool test = true;
- wchar_t c = L'a';
- const wchar_t cc = L'b';
- wchar_t* c1 = &c;
- const wchar_t* cc1 = &cc;
- const wchar_t* ccarray1 = L"san francisco roof garden inspectors";
- const wchar_t* ccarray2 = L"san francisco sunny-day park inspectors";
- wchar_t carray[50];
- std::wcscpy(carray, ccarray1);
-
- // const wchar_t* wcschr(const wchar_t* s, wchar_t c);
- // wchar_t* wcschr(wchar_t* s, wchar_t c);
- cc1 = std::wcschr(ccarray1, L'c');
- c1 = std::wcschr(carray, L'c');
-
- // const char* wcspbrk(const wchar_t* s1, const wchar_t* s2);
- // char* wcspbrk(wchar_t* s1, const wchar_t* s2);
- cc1 = std::wcspbrk(ccarray1, ccarray2);
- c1 = std::wcspbrk(carray, ccarray2);
-
- // const wchar_t* strrchr(const wchar_t* s, wchar_t c);
- // wchar_t* strrchr(wchar_t* s, wchar_t c);
- cc1 = std::wcsrchr(ccarray1, L'c');
- c1 = std::wcsrchr(carray, L'c');
-
- // const wchar_t* strstr(const wchar_t* s1, const wchar_t* s2);
- // wchar_t* strstr(wchar_t* s1, const wchar_t* s2);
- cc1 = std::wcsstr(ccarray1, ccarray2);
- c1 = std::wcsstr(carray, carray);
-
- // const wchar_t* wmemchr(const wchar_t* s, wchar_t c, size_t n);
- // wchar_t* wmemchr( wchar_t* s, wchar_t c, size_t n);
- cc1 = std::wmemchr(ccarray1, L'a', 3);
- c1 = std::wmemchr(carray, L'a', 3);
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/2.cc
deleted file mode 100644
index 3a8f77cd335..00000000000
--- a/libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/2.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2001-04-02 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.4: null-terminiated sequence utilities
-
-#include <string>
-#include <cstring>
-#include <cwchar>
-
-void test02()
-{
- using namespace std;
-
- const wchar_t* ccarray1 = L"san francisco roof garden inspectors";
- const wchar_t* ccarray2 = L"san francisco sunny-day park inspectors";
- wchar_t carray[50];
- wcscpy(carray, ccarray1);
-
- wmemchr(ccarray1, L'/', 3);
- wcschr(ccarray1, L'/');
- wcspbrk(ccarray1, ccarray2);
- wcsrchr(ccarray1, L'c');
- wcsstr(carray, carray);
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/char_traits/requirements/char/1.cc b/libstdc++-v3/testsuite/21_strings/char_traits/requirements/char/1.cc
deleted file mode 100644
index 6f8eb473737..00000000000
--- a/libstdc++-v3/testsuite/21_strings/char_traits/requirements/char/1.cc
+++ /dev/null
@@ -1,109 +0,0 @@
-// 1999-06-03 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.1.1 Characher traits requirements
-
-#include <string>
-#include <testsuite_hooks.h>
-
-void test01(void)
-{
- bool test = true;
- const std::string str_01("zuma beach");
- const std::string str_02("montara and ocean beach");
-
- // 21.1.1 character traits requirements
-
- // Key for decoding what function signatures really mean:
- // X == char_traits<_CharT>
- // [c,d] == _CharT
- // [p,q] == const _CharT*
- // s == _CharT*
- // [n,i,j] == size_t
- // f == X::int_type
- // pos == X::pos_type
- // state == X::state_type
-
- // void X::assign(char c, char d)
- // assigns c = d;
- char c1 = 'z';
- char c2 = 'u';
- VERIFY( c1 != c2 );
- std::char_traits<char>::assign(c1,c2);
- VERIFY( c1 == 'u' );
-
- // char* X::move(char* s, const char* p, size_t n)
- // for each i in [0,n) performs X::assign(s[i], p[i]). Copies
- // correctly even where p is in [s, s + n), and yields s.
- char array1[] = {'z', 'u', 'm', 'a', ' ', 'b', 'e', 'a', 'c', 'h', 0};
- const char str_lit1[] = "montara and ocean beach";
- int len = sizeof(str_lit1) + sizeof(array1) - 1; // two terminating chars
- char array2[len];
-
- VERIFY( str_lit1[0] == 'm' );
- c1 = array2[0];
- c2 = str_lit1[0];
- char c3 = array2[1];
- char c4 = str_lit1[1];
- std::char_traits<char>::move(array2, str_lit1, 0);
- VERIFY( array2[0] == c1 );
- VERIFY( str_lit1[0] == c2 );
- std::char_traits<char>::move(array2, str_lit1, 1);
- VERIFY( array2[0] == c2 );
- VERIFY( str_lit1[0] == c2 );
- VERIFY( array2[1] == c3 );
- VERIFY( str_lit1[1] == c4 );
- std::char_traits<char>::move(array2, str_lit1, 2);
- VERIFY( array2[0] == c2 );
- VERIFY( str_lit1[0] == c2 );
- VERIFY( array2[1] == c4 );
- VERIFY( str_lit1[1] == c4 );
-
- char* pc1 = array1 + 1;
- c1 = pc1[0];
- c2 = array1[0];
- VERIFY( c1 != c2 );
- char* pc2 = std::char_traits<char>::move(array1, pc1, 0);
- c3 = pc1[0];
- c4 = array1[0];
- VERIFY( c1 == c3 );
- VERIFY( c2 == c4 );
- VERIFY( pc2 == array1 );
-
- c1 = pc1[0];
- c2 = array1[0];
- char* pc3 = pc1;
- pc2 = std::char_traits<char>::move(array1, pc1, 10);
- c3 = pc1[0];
- c4 = array1[0];
- VERIFY( c1 != c3 ); // underlying char array changed.
- VERIFY( c4 != c3 );
- VERIFY( pc2 == array1 );
- VERIFY( pc3 == pc1 ); // but pointers o-tay
- c1 = *(str_01.data());
- c2 = array1[0];
- VERIFY( c1 != c2 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/char_traits/requirements/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/char_traits/requirements/wchar_t/1.cc
deleted file mode 100644
index a93d2f50f2e..00000000000
--- a/libstdc++-v3/testsuite/21_strings/char_traits/requirements/wchar_t/1.cc
+++ /dev/null
@@ -1,109 +0,0 @@
-// 1999-06-03 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.1.1 Characher traits requirements
-
-#include <string>
-#include <testsuite_hooks.h>
-
-void test02(void)
-{
- bool test = true;
- const std::wstring str_01(L"zuma beach");
- const std::wstring str_02(L"montara and ocean beach");
-
- // 21.1.1 character traits requirements
-
- // Key for decoding what function signatures really mean:
- // X == char_traits<_CharT>
- // [c,d] == _CharT
- // [p,q] == const _CharT*
- // s == _CharT*
- // [n,i,j] == size_t
- // f == X::int_type
- // pos == X::pos_type
- // state == X::state_type
-
- // void X::assign(wchar_t c, wchar_t d)
- // assigns c = d;
- wchar_t c1 = L'z';
- wchar_t c2 = L'u';
- VERIFY( c1 != c2 );
- std::char_traits<wchar_t>::assign(c1,c2);
- VERIFY( c1 == L'u' );
-
- // char* X::move(char* s, const char* p, size_t n)
- // for each i in [0,n) performs X::assign(s[i], p[i]). Copies
- // correctly even where p is in [s, s + n), and yields s.
- wchar_t array1[] = {L'z', L'u', L'm', L'a', L' ', L'b', L'e', L'a', L'c', L'h', 0};
- const wchar_t str_lit1[] = L"montara and ocean beach";
- int len = sizeof(str_lit1) + sizeof(array1) - 1; // two terminating chars
- wchar_t array2[len];
-
- VERIFY( str_lit1[0] == 'm' );
- c1 = array2[0];
- c2 = str_lit1[0];
- wchar_t c3 = array2[1];
- wchar_t c4 = str_lit1[1];
- std::char_traits<wchar_t>::move(array2, str_lit1, 0);
- VERIFY( array2[0] == c1 );
- VERIFY( str_lit1[0] == c2 );
- std::char_traits<wchar_t>::move(array2, str_lit1, 1);
- VERIFY( array2[0] == c2 );
- VERIFY( str_lit1[0] == c2 );
- VERIFY( array2[1] == c3 );
- VERIFY( str_lit1[1] == c4 );
- std::char_traits<wchar_t>::move(array2, str_lit1, 2);
- VERIFY( array2[0] == c2 );
- VERIFY( str_lit1[0] == c2 );
- VERIFY( array2[1] == c4 );
- VERIFY( str_lit1[1] == c4 );
-
- wchar_t* pc1 = array1 + 1;
- c1 = pc1[0];
- c2 = array1[0];
- VERIFY( c1 != c2 );
- wchar_t* pc2 = std::char_traits<wchar_t>::move(array1, pc1, 0);
- c3 = pc1[0];
- c4 = array1[0];
- VERIFY( c1 == c3 );
- VERIFY( c2 == c4 );
- VERIFY( pc2 == array1 );
-
- c1 = pc1[0];
- c2 = array1[0];
- wchar_t* pc3 = pc1;
- pc2 = std::char_traits<wchar_t>::move(array1, pc1, 10);
- c3 = pc1[0];
- c4 = array1[0];
- VERIFY( c1 != c3 ); // underlying wchar_t array changed.
- VERIFY( c4 != c3 );
- VERIFY( pc2 == array1 );
- VERIFY( pc3 == pc1 ); // but pointers o-tay
- c1 = *(str_01.data());
- c2 = array1[0];
- VERIFY( c1 != c2 );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/21_strings/char_traits/typedefs/char/1.cc b/libstdc++-v3/testsuite/21_strings/char_traits/typedefs/char/1.cc
deleted file mode 100644
index 4f2d061fb09..00000000000
--- a/libstdc++-v3/testsuite/21_strings/char_traits/typedefs/char/1.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// 2001-02-11 gdr
-// Origin: Craig Rodrigues <rodrigc@mediaone.net>
-
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 21.1.2: char_traits typedefs
-
-#include <string>
-
-int main()
-{
- // 21.1.3: char_traits<char>::int_type == int
- // dg-options -ansi -pedantic-err
- std::char_traits<char>::int_type* p = 0;
- int* q = p; // dg-do compile
-
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/1.cc
deleted file mode 100644
index f0267286ae9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/1.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <fstream>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::filebuf test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/2.cc
deleted file mode 100644
index af92af0ff11..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/2.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// test05
-// libstdc++/1886
-// should be able to instantiate basic_filebuf for non-standard types.
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef short type_t;
- template class basic_filebuf<type_t, char_traits<type_t> >;
- template class basic_filebuf<pod_char, char_traits<pod_char> >;
-} // test
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/3.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/3.cc
deleted file mode 100644
index a67d5961897..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/3.cc
+++ /dev/null
@@ -1,145 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_filebuf<gnu_char_type, gnu_char_traits> gnu_filebuf;
-
- try
- { gnu_filebuf obj; }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/4.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/4.cc
deleted file mode 100644
index 9516cb2eccb..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/4.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <fstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::filebuf test_type;
- typedef std::streambuf base_type;
- const test_type& obj = test_type();
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/1.cc
deleted file mode 100644
index 5b2f484a0f9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/1.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "filebuf_members-1.tst";
-const char name_02[] = "filebuf_members-1.txt";
-
-// Test member functions.
-void test_01()
-{
- bool test = true;
- const char* name_03 = "filebuf_members-3"; // empty file, need to create
-
- std::filebuf fb_01; // in
- std::filebuf fb_02; // out
- std::filebuf fb_03; // in | out
-
- // bool is_open()
- VERIFY( !fb_01.is_open() );
- VERIFY( !fb_02.is_open() );
- VERIFY( !fb_03.is_open() );
-
- // filebuf_type* open(const char* __s, ios_base::openmode __mode)
- fb_01.open(name_01, std::ios_base::in | std::ios_base::ate);
- VERIFY( fb_01.is_open() );
-
- // Try to open two different files without closing the first:
- // Should keep the old file attached, and disregard attempt to overthrow.
- fb_02.open(name_02, std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- VERIFY( fb_02.is_open() );
-
- fb_03.open(name_03, std::ios_base::out | std::ios_base::trunc);
- VERIFY( fb_03.is_open() );
-
- // filebuf_type* close()
- std::filebuf* f;
- f = fb_01.close();
- VERIFY( f != NULL );
- VERIFY( !fb_01.is_open() );
-
- f = fb_02.close();
- VERIFY( f != NULL );
- VERIFY( !fb_02.is_open() );
-
- f = fb_03.close();
- VERIFY( f != NULL );
- VERIFY( !fb_03.is_open() );
-
- f = fb_03.close();
- VERIFY( f == NULL );
- VERIFY( !fb_03.is_open() );
-}
-
-int
-main()
-{
- test_01();
- return 0;
-}
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/2.cc
deleted file mode 100644
index b0ebd5817c6..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/2.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <ext/stdio_filebuf.h>
-#include <testsuite_hooks.h>
-
-// Verify that std::filebuf doesn't close files that it didn't open
-// when using the following std::filebuf ctor:
-//
-// std::filebuf(__c_file_type* __f,
-// ios_base::openmode __mode,
-// int_type __s);
-//
-// Thanks to "George T. Talbot" <george@moberg.com> for uncovering
-// this bug/situation.
-
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-
-void test_02()
-{
- bool test = true;
- int close_num;
-
- // read (ext)
- FILE* f2 = fopen(name_01, "r");
- VERIFY( f2 != NULL );
- if (f2)
- {
- __gnu_cxx::stdio_filebuf<char> fb(f2, std::ios_base::in, 512);
- close_num = fclose(f2);
- }
- VERIFY( close_num == 0 );
-
- // read (standard)
- FILE* f = fopen(name_01, "r");
- VERIFY( f != NULL );
- if (f)
- {
- std::ifstream ifstream1(name_01);
- VERIFY( ifstream1.is_open() );
- std::ios_base::iostate st01 = ifstream1.rdstate();
- VERIFY( st01 == std::ios_base::goodbit );
- close_num = fclose(f);
- }
- VERIFY( close_num == 0 );
-}
-
-int
-main()
-{
- test_02();
- return 0;
-}
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/3.cc
deleted file mode 100644
index 94059d0ee59..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/3.cc
+++ /dev/null
@@ -1,106 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <locale>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char carray_01[] = "santa cruz or sandiego?";
-const char carray_02[] = "memphis, new orleans, and savanah";
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-const char name_04[] = "filebuf_virtuals-4.txt"; // empty file, need to create
-const char name_05[] = "filebuf_virtuals-5.txt"; // empty file, need to create
-const char name_06[] = "filebuf_virtuals-6.txt"; // empty file, need to create
-const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create
-const char name_08[] = "filebuf_virtuals-8.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- typedef std::filebuf::int_type int_type;
- typedef std::filebuf::traits_type traits_type;
- typedef std::filebuf::pos_type pos_type;
- typedef std::filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- std::filebuf f_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- fb_01.open(name_01, std::ios_base::in);
- fb_02.open(name_02, std::ios_base::out | std::ios_base::trunc);
- fb_03.open(name_03, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
-
- // NB Have to close these suckers. . .
- // filebuf_type* close()
- fb_01.close();
- fb_02.close();
- fb_03.close();
- VERIFY( !fb_01.is_open() );
- VERIFY( !fb_02.is_open() );
- VERIFY( !fb_03.is_open() );
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc
deleted file mode 100644
index b72be5ce0a9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <iostream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <testsuite_hooks.h>
-
-// libstdc++/2913, libstdc++/4879
-// John Fardo <jfardo@laurelnetworks.com>, Brad Garcia <garsh@attbi.com>
-void
-test_04()
-{
- bool test = true;
- const char* name = "tmp_fifo1";
- signal(SIGPIPE, SIG_IGN);
-
- unlink(name);
- if (0 != mkfifo(name, S_IRWXU))
- {
- std::cerr << "failed to create fifo" << std::endl;
- exit(-1);
- }
-
- int fval = fork();
- if (fval == -1)
- {
- std::cerr << "failed to fork" << std::endl;
- unlink(name);
- exit(-1);
- }
- else if (fval == 0)
- {
- std::ifstream ifs(name);
- sleep(1);
- ifs.close();
- exit(0);
- }
-
- std::ofstream ofs(name);
- sleep(2);
- ofs.put('t');
-
- /*
- * ISO/IED 14882:1998(E) 27.8.1.10.4
- *
- * void close();
- *
- * Effects: Calls rdbuf()->close() and, if that function fails
- * (returns a null pointer), calls setstate(failbit)...
- */
- ofs.close();
- if (!(ofs.rdstate() & std::ios::failbit))
- {
- test = false;
- VERIFY( test );
- unlink(name);
- exit(-1);
- }
-
- unlink(name);
-}
-
-int
-main()
-{
- test_04();
- return 0;
-}
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc
deleted file mode 100644
index 32c388dceb8..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <testsuite_hooks.h>
-
-// libstdc++/9964
-void test_07()
-{
- using namespace std;
- bool test = true;
-
- const char* name = "tmp_fifo3";
-
- signal(SIGPIPE, SIG_IGN);
-
- unlink(name);
- mkfifo(name, S_IRWXU);
-
- int child = fork();
- VERIFY( child != -1 );
-
- if (child == 0)
- {
- filebuf fbin;
- fbin.open(name, ios_base::in);
- sleep(1);
- fbin.close();
- exit(0);
- }
-
- filebuf fb;
- filebuf* ret = fb.open(name, ios_base::out | ios_base::trunc);
- VERIFY( ret != NULL );
- VERIFY( fb.is_open() );
-
- sleep(2);
- fb.sputc('a');
-
- ret = fb.close();
- VERIFY( ret == NULL );
- VERIFY( !fb.is_open() );
-}
-
-int
-main()
-{
- test_07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/1.cc
deleted file mode 100644
index 7893e93ce1a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/1.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-std::filebuf fbuf;
-
-// test the filebuf locale settings
-void test02()
-{
- std::locale loc_c = std::locale::classic();
- loc_c = fbuf.getloc();
- fbuf.pubimbue(loc_c); //This should initialize _M_init to true
- std::locale loc_tmp = fbuf.getloc();
- VERIFY( loc_tmp == loc_c );
-}
-
-int main()
-{
- test02();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/9322.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/9322.cc
deleted file mode 100644
index 5a43a2a4a2f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/9322.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-// libstdc++/9322
-void test07()
-{
- using std::locale;
- bool test = true;
-
- locale loc;
- std::filebuf ob;
- VERIFY( ob.getloc() == loc );
-
- locale::global(__gnu_cxx_test::try_named_locale("en_US"));
- VERIFY( ob.getloc() == loc );
-
- locale loc_de = __gnu_cxx_test::try_named_locale("de_DE");
- locale ret = ob.pubimbue(loc_de);
- VERIFY( ob.getloc() == loc_de );
- VERIFY( ret == loc );
-
- locale::global(loc);
- VERIFY( ob.getloc() == loc_de );
-}
-
-main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/in_avail/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/in_avail/char/1.cc
deleted file mode 100644
index 306060e5937..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/in_avail/char/1.cc
+++ /dev/null
@@ -1,109 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <locale>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char carray_01[] = "santa cruz or sandiego?";
-const char carray_02[] = "memphis, new orleans, and savanah";
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- typedef std::filebuf::int_type int_type;
- typedef std::filebuf::traits_type traits_type;
- typedef std::filebuf::pos_type pos_type;
- typedef std::filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- std::filebuf f_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- // GET
- // int in_avail()
- // if a read position is available, return _M_in_end - _M_in_cur.
- // else return showmanyc.
- strmof_1 = fb_01.in_avail();
- strmof_2 = fb_02.in_avail();
- VERIFY( strmof_1 == -1 );
- VERIFY( strmof_1 == strmof_2 ); //fail because not open
- strmof_1 = fb_03.in_avail();
- VERIFY( strmof_1 == strmof_2 );
- fb_01.open(name_01, std::ios_base::in);
- fb_02.open(name_02, std::ios_base::out | std::ios_base::trunc);
- fb_03.open(name_03, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
- strmof_1 = fb_01.in_avail();
- strmof_2 = fb_02.in_avail();
- VERIFY( strmof_1 != strmof_2 );
- VERIFY( strmof_1 >= 0 );
- VERIFY( strmof_2 == -1 ); // empty file
- strmof_1 = fb_03.in_avail();
- VERIFY( strmof_1 == 0 ); // empty file
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/is_open/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/is_open/char/1.cc
deleted file mode 100644
index 4b4c022a1c2..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/is_open/char/1.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "filebuf_members-1.tst";
-const char name_02[] = "filebuf_members-1.txt";
-
-// Test member functions.
-void test_01()
-{
- bool test = true;
- const char* name_03 = "filebuf_members-3"; // empty file, need to create
-
- std::filebuf fb_01; // in
- std::filebuf fb_02; // out
- std::filebuf fb_03; // in | out
-
- // bool is_open()
- VERIFY( !fb_01.is_open() );
- VERIFY( !fb_02.is_open() );
- VERIFY( !fb_03.is_open() );
-
- // filebuf_type* open(const char* __s, ios_base::openmode __mode)
- fb_01.open(name_01, std::ios_base::in | std::ios_base::ate);
- fb_02.open(name_02, std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- fb_03.open(name_03, std::ios_base::out | std::ios_base::trunc);
- VERIFY( fb_01.is_open() );
- VERIFY( fb_02.is_open() );
- VERIFY( fb_03.is_open() );
-
- // filebuf_type* close()
- fb_01.close();
- fb_02.close();
- fb_03.close();
- VERIFY( !fb_01.is_open() );
- VERIFY( !fb_02.is_open() );
- VERIFY( !fb_03.is_open() );
-}
-
-int
-main()
-{
- test_01();
- return 0;
-}
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/1.cc
deleted file mode 100644
index 424d4b63eb5..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/1.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "filebuf_members-1.tst";
-const char name_02[] = "filebuf_members-1.txt";
-
-// Test member functions.
-void test_01()
-{
- bool test = true;
- const char* name_03 = "filebuf_members-3"; // empty file, need to create
-
- std::filebuf fb_01; // in
- std::filebuf fb_02; // out
- std::filebuf fb_03; // in | out
-
- // bool is_open()
- VERIFY( !fb_01.is_open() );
- VERIFY( !fb_02.is_open() );
- VERIFY( !fb_03.is_open() );
-
- // filebuf_type* open(const char* __s, ios_base::openmode __mode)
- fb_01.open(name_01, std::ios_base::in | std::ios_base::ate);
- VERIFY( fb_01.is_open() );
-
- // Try to open two different files without closing the first:
- // Should keep the old file attached, and disregard attempt to overthrow.
- std::filebuf* f = fb_02.open(name_02, std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- VERIFY( f != NULL );
- VERIFY( fb_02.is_open() );
-
- f = fb_02.open(name_03, std::ios_base::in | std::ios_base::out);
- VERIFY( f == NULL );
- VERIFY( fb_02.is_open() );
-
- fb_03.open(name_03, std::ios_base::out | std::ios_base::trunc);
- VERIFY( fb_03.is_open() );
-}
-
-int
-main()
-{
- test_01();
- return 0;
-}
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/2.cc
deleted file mode 100644
index cf0ffa94c87..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/2.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <ext/stdio_filebuf.h>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-
-void test_03()
-{
- bool test = true;
- int first_fd = ::open(name_01, O_RDONLY);
- VERIFY( first_fd != -1 );
- FILE* first_file = ::fdopen(first_fd, "r");
- VERIFY( first_file != NULL );
- __gnu_cxx::stdio_filebuf<char> fb(first_file, std::ios_base::in);
-
- int second_fd = fb.fd();
-
- VERIFY( first_fd == second_fd );
-}
-
-int
-main()
-{
- test_03();
- return 0;
-}
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/3.cc
deleted file mode 100644
index c08817f7eab..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/3.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// Charles Leggett <CGLeggett@lbl.gov>
-void test_05()
-{
- bool test = true;
- const char* name = "tmp_file5";
-
- std::fstream scratch_file;
-
- scratch_file.open(name, std::ios::out);
- scratch_file.close();
-
- scratch_file.open(name, std::ios::in);
- if (!scratch_file)
- VERIFY( false );
- scratch_file.close();
-}
-
-int
-main()
-{
- test_05();
- return 0;
-}
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/9507.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/9507.cc
deleted file mode 100644
index 860f36943f0..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/9507.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.3 filebuf member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-// various tests for filebuf::open() and filebuf::close() including
-// the non-portable functionality in the libstdc++-v3 IO library
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <testsuite_hooks.h>
-
-// libstdc++/9507
-void test_06()
-{
- bool test = true;
- const char* name = "tmp_fifo2";
-
- signal(SIGPIPE, SIG_IGN);
-
- unlink(name);
- mkfifo(name, S_IRWXU);
-
- if (!fork())
- {
- std::filebuf fbuf;
- fbuf.open(name, std::ios_base::in);
- fbuf.sgetc();
- fbuf.close();
- exit(0);
- }
-
- std::filebuf fbuf;
- std::filebuf* r = fbuf.open(name, std::ios_base::out | std::ios_base::ate);
- VERIFY( !fbuf.is_open() );
- VERIFY( r == NULL );
-}
-
-int
-main()
-{
- test_06();
- return 0;
-}
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/1.cc
deleted file mode 100644
index fd960e45511..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/1.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <fstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// test03
-// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00151.html
-template<typename charT, typename traits = std::char_traits<charT> >
- class basic_nullbuf : public std::basic_filebuf<charT, traits>
- {
- protected:
- typedef typename
- std::basic_filebuf<charT, traits>::int_type int_type;
- virtual int_type
- overflow(int_type c)
- { return traits::not_eof(c); }
- };
-
-typedef basic_nullbuf<char> nullbuf;
-
-template<typename T>
- char
- print(const T& x)
- {
- nullbuf ob;
- std::ostream out(&ob);
- out << x << std::endl;
- return (!out ? '0' : '1');
- }
-
-void test03()
-{
- bool test = true;
- const std::string control01("11111");
- std::string test01;
-
- test01 += print(true);
- test01 += print(3.14159);
- test01 += print(10);
- test01 += print('x');
- test01 += print("pipo");
-
- VERIFY( test01 == control01 );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/3599.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/3599.cc
deleted file mode 100644
index 795c58ccf3e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/3599.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <fstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/3599
-class testbuf : public std::filebuf
-{
-public:
- typedef std::filebuf::traits_type traits_type;
-
- testbuf() : std::filebuf() { }
-
-protected:
- int_type
- overflow(int_type c = traits_type::eof())
- { return traits_type::not_eof(0); }
-};
-
-void
-test07()
-{
- bool test = true;
- testbuf ob;
- std::ostream out(&ob);
-
- out << "gasp";
- VERIFY(out.good());
-
- out << std::endl;
- VERIFY(out.good());
-}
-
-int main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9169.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9169.cc
deleted file mode 100644
index 18ed29d328c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9169.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-const char name_04[] = "filebuf_virtuals-4.txt"; // empty file, need to create
-
-class Cvt_to_upper : public std::codecvt<char, char, mbstate_t>
-{
- bool do_always_noconv() const throw()
- {
- return false;
- }
-};
-
-// libstdc++/9169
-// filebuf output fails if codecvt<>::out returns noconv
-void test10()
-{
- using namespace std;
- bool test = true;
-
- locale c_loc = locale::classic();
- locale loc(c_loc, new Cvt_to_upper);
-
- string str("abcdefghijklmnopqrstuvwxyz");
- string tmp;
-
- {
- ofstream out;
- out.imbue(loc);
- out.open(name_04);
- copy(str.begin(), str.end(), ostreambuf_iterator<char>(out));
- }
-
- {
- ifstream in;
- in.open(name_04);
- copy(istreambuf_iterator<char>(in), istreambuf_iterator<char>(),
- back_inserter(tmp));
- }
-
- VERIFY( tmp.size() == str.size() );
- VERIFY( tmp == str );
-}
-
-main()
-{
- test10();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc
deleted file mode 100644
index b752bce8a49..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create
-
-class errorcvt : public std::codecvt<char, char, mbstate_t>
-{
-protected:
- std::codecvt_base::result
- do_out(mbstate_t&, const char* from, const char*,
- const char*& from_next, char* to, char*,
- char*& to_next) const
- {
- from_next = from;
- to_next = to;
- return std::codecvt<char, char, mbstate_t>::error;
- }
-
- virtual bool do_always_noconv() const throw()
- {
- return false;
- }
-};
-
-// libstdc++/9182
-// basic_filebuf<>::sync and overflow do not write out any characters
-// if codecvt<>::out returns error
-void test14()
-{
- using namespace std;
- bool test = true;
-
- locale loc = locale::classic();
- loc = locale(loc, new errorcvt);
-
- filebuf fbuf1;
- fbuf1.pubimbue(loc);
- fbuf1.pubsetbuf(0, 0);
- fbuf1.open(name_07, ios_base::out | ios_base::trunc);
- streamsize n = fbuf1.sputn("onne", 4);
- VERIFY( n == 0 );
- fbuf1.close();
-}
-
-main()
-{
- test14();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9988.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9988.cc
deleted file mode 100644
index 2c8d078f0e4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9988.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_08[] = "filebuf_virtuals-8.txt"; // empty file, need to create
-
-class OverBuf : public std::filebuf
-{
-public:
- int_type pub_overflow(int_type c = traits_type::eof())
- { return std::filebuf::overflow(c); }
-};
-
-// libstdc++/9988
-// filebuf::overflow writes EOF to file
-void test15()
-{
- using namespace std;
- bool test = true;
-
- OverBuf fb;
- fb.open(name_08, ios_base::out | ios_base::trunc);
-
- fb.sputc('a');
- fb.pub_overflow('b');
- fb.pub_overflow();
- fb.sputc('c');
- fb.close();
-
- filebuf fbin;
- fbin.open(name_08, ios_base::in);
- filebuf::int_type c;
- c = fbin.sbumpc();
- VERIFY( c == 'a' );
- c = fbin.sbumpc();
- VERIFY( c == 'b' );
- c = fbin.sbumpc();
- VERIFY( c == 'c' );
- c = fbin.sbumpc();
- VERIFY( c == filebuf::traits_type::eof() );
- fbin.close();
-}
-
-main()
-{
- test15();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/1.cc
deleted file mode 100644
index d2c7ccd53b4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/1.cc
+++ /dev/null
@@ -1,106 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- using namespace std;
- typedef filebuf::int_type int_type;
- typedef filebuf::traits_type traits_type;
- typedef filebuf::pos_type pos_type;
- typedef filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- filebuf f_tmp;
- streamsize strmsz_1, strmsz_2;
- streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- // GET
- fb_01.open(name_01, ios_base::in);
- fb_02.open(name_02, ios_base::out | ios_base::trunc);
- fb_03.open(name_03, ios_base::out | ios_base::in | ios_base::trunc);
- strmof_1 = fb_01.in_avail();
- strmof_2 = fb_02.in_avail();
- strmof_1 = fb_03.in_avail();
-
- // int_type sbumpc()
- // if read_cur not avail returns uflow(), else return *read_cur & increment
- int_type c1 = fb_01.sbumpc();
- int_type c2 = fb_02.sbumpc();
- VERIFY( c1 != c2 );
- VERIFY( c1 == '/' );
- VERIFY( c2 == -1 );
- int_type c3 = fb_01.sbumpc();
- int_type c4 = fb_02.sbumpc();
- VERIFY( c3 != c4 );
- VERIFY( c1 == c3 ); // fluke, both happen to be '/'
- VERIFY( c2 == c4 );
- int_type c5 = fb_03.sbumpc();
- VERIFY( c5 == traits_type::eof() );
- // XXX should do some kind of test to make sure that internal
- // buffers point to the same thing, to check consistancy.
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/9825.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/9825.cc
deleted file mode 100644
index 8e419432ad8..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sbumpc/char/9825.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_06[] = "filebuf_virtuals-6.txt"; // empty file, need to create
-
-// libstdc++/9825
-// filebuf::sputbackc breaks sbumpc
-void test12()
-{
- using namespace std;
- bool test = true;
-
- filebuf fbuf;
-
- fbuf.open(name_06, ios_base::in|ios_base::out|ios_base::trunc);
- fbuf.sputn("crazy bees!", 11);
- fbuf.pubseekoff(0, ios_base::beg);
- fbuf.sbumpc();
- fbuf.sputbackc('x');
- filebuf::int_type c = fbuf.sbumpc();
- VERIFY( c == 'x' );
- c = fbuf.sbumpc();
- VERIFY( c == 'r' );
- c = fbuf.sbumpc();
- VERIFY( c == 'a' );
- fbuf.close();
-}
-
-main()
-{
- test12();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1.cc
deleted file mode 100644
index e448326d76b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/1.cc
+++ /dev/null
@@ -1,137 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char name_01[] = "filebuf_virtuals-1.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- using namespace std;
- typedef filebuf::int_type int_type;
- typedef filebuf::traits_type traits_type;
- typedef filebuf::pos_type pos_type;
- typedef filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- filebuf f_tmp;
- streamsize strmsz_1, strmsz_2;
- streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- fb_03.open(name_01, ios_base::out | ios_base::in);
-
- int_type c1;
- int_type c2;
- int_type c3;
-
- // seekoff
- // pubseekoff(off_type off, ios_base::seekdir way, ios_base::openmode which)
- // alters the stream position to off
- pos_type pt_1(off_type(-1));
- pos_type pt_2(off_type(0));
- off_type off_1 = 0;
- off_type off_2 = 0;
-
- //IN|OUT
- // 27filebuf-3.txt = bd23456789:;<=>?...
- //beg
- strmsz_1 = fb_03.in_avail();
- pt_1 = fb_03.pubseekoff(2, ios_base::beg);
- strmsz_2 = fb_03.in_avail();
- off_1 = pt_1;
- VERIFY( off_1 > 0 );
- c1 = fb_03.snextc(); //current in pointer +1
- VERIFY( c1 == '9' );
- c2 = fb_03.sputc('\n'); //current in pointer +1
- c3 = fb_03.sgetc();
- VERIFY( c2 != c3 );
- VERIFY( c3 == '9' );
- fb_03.pubsync();
- c1 = fb_03.sgetc();
- VERIFY( c1 == c3 );
- //cur
- // 27filebuf-3.txt = bd2\n456789:;<=>?...
- pt_2 = fb_03.pubseekoff(2, ios_base::cur);
- off_2 = pt_2;
- VERIFY( (off_2 == (off_1 + 2 + 1 + 1)) );
- c1 = fb_03.snextc(); //current in pointer +1
- VERIFY( c1 == '1' );
- c2 = fb_03.sputc('x'); //test current out pointer
- c3 = fb_03.sputc('\n');
- c1 = fb_03.sgetc();
- fb_03.pubsync();
- c3 = fb_03.sgetc();
- VERIFY( c1 == c3 );
- //end
- // 27filebuf-3.txt = "bd2\n456x\n9"
- pt_2 = fb_03.pubseekoff(0, ios_base::end, ios_base::in|ios_base::out);
- off_1 = pt_2;
- VERIFY( off_1 > off_2 ); //weak, but don't know exactly where it ends
- c3 = fb_03.sputc('\n');
- strmsz_1 = fb_03.sputn("because because because. . .", 28);
- VERIFY( strmsz_1 == 28 );
- c1 = fb_03.sungetc();
- // Defect? retval of sungetc is not necessarily the character ungotten.
- // So re-get it.
- c1 = fb_03.sgetc();
- fb_03.pubsync();
- c3 = fb_03.sgetc();
- VERIFY( c1 == c3 );
- // IN
- // OUT
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2.cc
deleted file mode 100644
index fa185521d33..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1.3 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void test02(std::filebuf& in, bool pass)
-{
- bool test = true;
- using namespace std;
- typedef streambuf::pos_type pos_type;
- typedef streambuf::off_type off_type;
- pos_type bad = pos_type(off_type(-1));
- pos_type p = 0;
-
- // seekoff
- p = in.pubseekoff(0, ios_base::beg, ios_base::in);
- if (pass)
- VERIFY( p != bad );
-
- p = in.pubseekoff(0, ios_base::beg, ios_base::out);
- VERIFY( p == bad );
-
- p = in.pubseekoff(0, ios_base::beg);
- if (pass)
- VERIFY( p != bad );
-}
-
-const char name_01[] = "filebuf_virtuals-1.tst"; // file with data in it
-const char name_03[] = "filebuf_members-1.tst"; // empty file
-
-int main()
-{
- using namespace std;
-
- // movie star, submarine scientist!
- filebuf in1;
- in1.open(name_01, ios_base::in);
- filebuf in2;
- filebuf in3;
- in3.open(name_03, ios_base::in);
- test02(in1, true);
- test02(in2, false);
- test02(in3, true);
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/1.cc
deleted file mode 100644
index cd4084fc85e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/1.cc
+++ /dev/null
@@ -1,127 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- using namespace std;
- typedef filebuf::int_type int_type;
- typedef filebuf::traits_type traits_type;
- typedef filebuf::pos_type pos_type;
- typedef filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- filebuf f_tmp;
- streamsize strmsz_1, strmsz_2;
- streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- fb_03.open(name_01, ios_base::out | ios_base::in);
-
- int_type c1;
- int_type c2;
- int_type c3;
-
- // seekpos
- // pubseekpos(pos_type sp, ios_base::openmode)
- // alters the stream position to sp
- pos_type pt_1(off_type(-1));
- pos_type pt_2(off_type(0));
- off_type off_1 = 0;
- off_type off_2 = 0;
- //IN|OUT
- //beg
- pt_1 = fb_03.pubseekoff(78, ios_base::beg);
- off_1 = pt_1;
- VERIFY( off_1 > 0 );
- c1 = fb_03.snextc(); //current in pointer +1
- VERIFY( c1 == 't' );
- c2 = fb_03.sputc('\n'); //test current out pointer
- c3 = fb_03.sgetc();
- fb_03.pubsync(); //resets pointers
- pt_2 = fb_03.pubseekpos(pt_1);
- off_2 = pt_2;
- VERIFY( off_1 == off_2 );
- c3 = fb_03.snextc(); //current in pointer +1
- VERIFY( c2 == c3 );
- pt_1 = fb_03.pubseekoff(0, ios_base::end);
- off_1 = pt_1;
- VERIFY( off_1 > off_2 );
- fb_03.sputn("\nof the wonderful things he does!!\nok", 37);
- fb_03.pubsync();
-
- // IN
- // OUT
-
- // VIRTUALS (indirectly tested)
- // underflow
- // if read position avail, returns *gptr()
-
- // pbackfail(int_type c)
- // put c back into input sequence
-
- // overflow
- // appends c to output seq
-
- // NB Have to close these suckers. . .
- // filebuf_type* close()
- fb_03.close();
- VERIFY( !fb_03.is_open() );
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/2.cc
deleted file mode 100644
index d32dc4bab63..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/char/2.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1.3 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void test02(std::filebuf& in, bool pass)
-{
- bool test = true;
- using namespace std;
- typedef streambuf::pos_type pos_type;
- typedef streambuf::off_type off_type;
- pos_type bad = pos_type(off_type(-1));
- pos_type p = 0;
-
- // seekpos
- p = in.pubseekpos(0, ios_base::in);
- if (pass)
- VERIFY( p != bad );
-
- p = in.pubseekpos(0, ios_base::out);
- VERIFY( p == bad );
-
- p = in.pubseekpos(0);
- if (pass)
- VERIFY( p != bad );
-}
-
-const char name_01[] = "filebuf_virtuals-1.tst"; // file with data in it
-const char name_03[] = "filebuf_members-1.tst"; // empty file
-
-int main()
-{
- using namespace std;
-
- // movie star, submarine scientist!
- filebuf in1;
- in1.open(name_01, ios_base::in);
- filebuf in2;
- filebuf in3;
- in3.open(name_03, ios_base::in);
- test02(in1, true);
- test02(in2, false);
- test02(in3, true);
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc
deleted file mode 100644
index d4f9e4c15dc..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/1.cc
+++ /dev/null
@@ -1,90 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-class testbuf : public std::filebuf
-{
-public:
-
- // Typedefs:
- typedef std::filebuf base_type;
- typedef base_type::traits_type traits_type;
- typedef base_type::char_type char_type;
-
- testbuf(): base_type()
- { _M_mode = (std::ios_base::in | std::ios_base::out); }
-
- bool
- check_pointers()
- {
- bool test = true;
- test = (this->pbase() == NULL);
- test &= (this->pptr() == NULL);
- return test;
- }
-};
-
-const char name_01[] = "filebuf_virtuals-1.txt";
-
-// Test overloaded virtual functions.
-void test05()
-{
- using namespace std;
- typedef std::filebuf::int_type int_type;
- typedef std::filebuf::traits_type traits_type;
- typedef std::filebuf::pos_type pos_type;
- typedef std::filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
-
- int_type c1;
-
- {
- testbuf f_tmp;
-
- // setbuf
- // pubsetbuf(char_type* s, streamsize n)
- f_tmp.pubsetbuf(0,0);
- VERIFY( f_tmp.check_pointers() );
- }
-
- {
- testbuf f_tmp;
-
- f_tmp.open(name_01, ios_base::out | ios_base::in);
- int_type c1 = f_tmp.sbumpc();
-
- // setbuf
- // pubsetbuf(char_type* s, streamsize n)
- f_tmp.pubsetbuf(0, 0);
- VERIFY( !f_tmp.check_pointers() );
- }
-}
-
-main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/2.cc
deleted file mode 100644
index 6261c999c37..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/2.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- using namespace std;
-
- bool test = true;
- char buf[512];
- const char* strlit = "how to tell a story and other essays: mark twain";
- const size_t strlitsize = std::strlen(strlit);
- filebuf fbuf;
- fbuf.open("tmp_setbuf2", ios_base::out);
- fbuf.pubsetbuf(buf, 512);
- fbuf.sputn(strlit, strlitsize);
- VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
-}
-
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/3.cc
deleted file mode 100644
index 2927991c060..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/setbuf/char/3.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void test02()
-{
- using namespace std;
-
- bool test = true;
- char buf[512];
- const char* strlit = "how to tell a story and other essays: mark twain";
- const size_t strlitsize = std::strlen(strlit);
- filebuf fbuf01;
- fbuf01.open("tmp", ios_base::out);
-
- fbuf01.pubsetbuf(buf, strlitsize);
- fbuf01.sputn(strlit, strlitsize);
- VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
-}
-
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1.cc
deleted file mode 100644
index f5a194c3212..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1.cc
+++ /dev/null
@@ -1,120 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <locale>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char carray_01[] = "santa cruz or sandiego?";
-const char carray_02[] = "memphis, new orleans, and savanah";
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-const char name_04[] = "filebuf_virtuals-4.txt"; // empty file, need to create
-const char name_05[] = "filebuf_virtuals-5.txt"; // empty file, need to create
-const char name_06[] = "filebuf_virtuals-6.txt"; // empty file, need to create
-const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create
-const char name_08[] = "filebuf_virtuals-8.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- typedef std::filebuf::int_type int_type;
- typedef std::filebuf::traits_type traits_type;
- typedef std::filebuf::pos_type pos_type;
- typedef std::filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- std::filebuf f_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- // GET
- fb_01.open(name_01, std::ios_base::in);
- fb_02.open(name_02, std::ios_base::out | std::ios_base::trunc);
- fb_03.open(name_03, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
- strmof_1 = fb_01.in_avail();
- strmof_2 = fb_02.in_avail();
- strmof_1 = fb_03.in_avail();
-
- int_type c1 = fb_01.sbumpc();
- int_type c2 = fb_02.sbumpc();
- int_type c3 = fb_01.sbumpc();
- int_type c4 = fb_02.sbumpc();
- int_type c5 = fb_03.sbumpc();
-
- // int_type sgetc()
- // if read_cur not avail, return uflow(), else return *read_cur
- int_type c6 = fb_01.sgetc();
- int_type c7 = fb_02.sgetc();
- VERIFY( c6 != c3 );
- VERIFY( c7 == c4 ); // both -1
- int_type c8 = fb_01.sgetc();
- int_type c9 = fb_02.sgetc();
- VERIFY( c6 == c8 );
- VERIFY( c7 == c9 );
- c5 = fb_03.sgetc();
- VERIFY( c5 == traits_type::eof() );
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/1.cc
deleted file mode 100644
index 634d41bec39..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/1.cc
+++ /dev/null
@@ -1,145 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- using namespace std;
- typedef filebuf::int_type int_type;
- typedef filebuf::traits_type traits_type;
- typedef filebuf::pos_type pos_type;
- typedef filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- filebuf f_tmp;
- streamsize strmsz_1, strmsz_2;
- streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- // GET
- fb_01.open(name_01, ios_base::in);
- fb_02.open(name_02, ios_base::out | ios_base::trunc);
- fb_03.open(name_03, ios_base::out | ios_base::in | ios_base::trunc);
- strmof_1 = fb_01.in_avail();
- strmof_2 = fb_02.in_avail();
- strmof_1 = fb_03.in_avail();
-
- int_type c1 = fb_01.sbumpc();
- int_type c2 = fb_02.sbumpc();
- int_type c3 = fb_01.sbumpc();
- int_type c4 = fb_02.sbumpc();
- int_type c5 = fb_03.sbumpc();
-
- int_type c6 = fb_01.sgetc();
- int_type c7 = fb_02.sgetc();
- int_type c8 = fb_01.sgetc();
- int_type c9 = fb_02.sgetc();
- c5 = fb_03.sgetc();
-
- // int_type snextc()
- // calls sbumpc and if sbumpc != eof, return sgetc
- c6 = fb_01.snextc();
- c7 = fb_02.snextc();
- c6 = fb_01.snextc();
- c7 = fb_02.snextc();
- c5 = fb_03.snextc();
-
- // streamsize sgetn(char_type *s, streamsize n)
- // streamsize xsgetn(char_type *s, streamsize n)
- // assign up to n chars to s from input sequence, indexing in_cur as
- // approp and returning the number of chars assigned
- strmsz_1 = fb_01.in_avail();
- strmsz_2 = fb_02.in_avail();
- test = strmsz_1 != strmsz_2;
- char carray1[13] = "";
- strmsz_1 = fb_01.sgetn(carray1, 10);
- char carray2[buffer_size] = "";
- strmsz_2 = fb_02.sgetn(carray2, 10);
- VERIFY( strmsz_1 != strmsz_2 );
- VERIFY( strmsz_1 == 10 );
- VERIFY( strmsz_2 == 0 );
- c1 = fb_01.sgetc();
- c2 = fb_02.sgetc();
- VERIFY( c1 == '\n' );
- VERIFY( c7 == c2 ); // n != i
- strmsz_1 = fb_03.sgetn(carray1, 10);
- VERIFY( !strmsz_1 ); //zero
- strmsz_1 = fb_01.in_avail();
- strmsz_2 = fb_01.sgetn(carray2, strmsz_1 + 5);
- VERIFY( strmsz_1 == strmsz_2 - 5 );
- c4 = fb_01.sgetc(); // buffer should have underflowed from above.
- VERIFY( c4 == 'i' );
- strmsz_1 = fb_01.in_avail();
- VERIFY( strmsz_1 > 0 );
- strmsz_2 = fb_01.sgetn(carray2, strmsz_1 + 5);
- VERIFY( strmsz_1 == strmsz_2 ); //at the end of the actual file
- strmsz_1 = fb_02.in_avail();
- strmsz_2 = fb_02.sgetn(carray2, strmsz_1 + 5);
- VERIFY( strmsz_1 == -1 );
- VERIFY( strmsz_2 == 0 );
- c4 = fb_02.sgetc(); // should be EOF
- VERIFY( c4 == traits_type::eof() );
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2.cc
deleted file mode 100644
index 6ed16712b88..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/2.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "filebuf_virtuals-1.tst"; // empty file, need to create
-
-void test06()
-{
- using namespace std;
-
- bool test = true;
- char buffer[] = "xxxxxxxxxx";
- typedef filebuf::int_type int_type;
- filebuf fbuf01;
- fbuf01.open(name_01, ios_base::in);
- int_type len1 = fbuf01.sgetn(buffer, sizeof(buffer));
- VERIFY( len1 == sizeof(buffer) );
- VERIFY( buffer[0] == '/' );
-}
-
-main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc
deleted file mode 100644
index 4c4bcdd225a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9533
-void test_01()
-{
- using namespace std;
- bool test = true;
- const char* name = "tmp_fifo1";
-
- const int count = 10000;
-
- signal(SIGPIPE, SIG_IGN);
- unlink(name);
-
- if (0 != mkfifo(name, S_IRWXU))
- {
- VERIFY( false );
- }
-
- int fval = fork();
- if (fval == -1)
- {
- unlink(name);
- VERIFY( false );
- }
- else if (fval == 0)
- {
- filebuf ofbuf;
- ofbuf.open(name, ios_base::out);
- VERIFY( ofbuf.is_open() );
- sleep(1);
-
- for (int i = 0; i < count; ++i)
- ofbuf.sputc(i % 100);
-
- ofbuf.pubsync();
- sleep(1);
- ofbuf.close();
- exit(0);
- }
-
- filebuf ifbuf;
- ifbuf.open(name, ios_base::in);
- VERIFY( ifbuf.is_open() );
-
- for (int j = 0; j < count; ++j)
- {
- filebuf::int_type c1 = ifbuf.sbumpc();
- VERIFY( c1 == j % 100 );
- }
-
- filebuf::int_type c6 = ifbuf.sbumpc();
- VERIFY( c6 == filebuf::traits_type::eof() );
-
- sleep(2);
- ifbuf.close();
-
- unlink(name);
-}
-
-int
-main()
-{
- test_01();
- return 0;
-}
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc
deleted file mode 100644
index fb12e427cce..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9533
-void test_02()
-{
- using namespace std;
- bool test = true;
- const char* name = "tmp_file1";
-
- const char* strlit = "0123456789";
-
- filebuf fbout;
- fbout.open(name, ios_base::out | ios_base::trunc);
-
- int written = 0;
- for (int i = 0; i < BUFSIZ; ++i)
- written += fbout.sputn(strlit, 10);
-
- fbout.close();
-
- ifstream in(name);
- int sum = 0;
- bool gotsome;
-
- do
- {
- char buf[100];
- int n = in.readsome(buf, sizeof(buf));
- gotsome = (n > 0);
- sum += n;
- }
- while (gotsome);
-
- VERIFY( sum == written );
-}
-
-int
-main()
-{
- test_02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/1.cc
deleted file mode 100644
index fb205bd701f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/snextc/char/1.cc
+++ /dev/null
@@ -1,116 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- using namespace std;
- typedef filebuf::int_type int_type;
- typedef filebuf::traits_type traits_type;
- typedef filebuf::pos_type pos_type;
- typedef filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- filebuf f_tmp;
- streamsize strmsz_1, strmsz_2;
- streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- // GET
- fb_01.open(name_01, ios_base::in);
- fb_02.open(name_02, ios_base::out | ios_base::trunc);
- fb_03.open(name_03, ios_base::out | ios_base::in | ios_base::trunc);
- strmof_1 = fb_01.in_avail();
- strmof_2 = fb_02.in_avail();
- strmof_1 = fb_03.in_avail();
-
- int_type c1 = fb_01.sbumpc();
- int_type c2 = fb_02.sbumpc();
- int_type c3 = fb_01.sbumpc();
- int_type c4 = fb_02.sbumpc();
- int_type c5 = fb_03.sbumpc();
-
- int_type c6 = fb_01.sgetc();
- int_type c7 = fb_02.sgetc();
- int_type c8 = fb_01.sgetc();
- int_type c9 = fb_02.sgetc();
- c5 = fb_03.sgetc();
-
- // int_type snextc()
- // calls sbumpc and if sbumpc != eof, return sgetc
- c6 = fb_01.snextc();
- c7 = fb_02.snextc();
- VERIFY( c6 != c8 );
- VERIFY( c7 == c9 ); // -1
- VERIFY( c6 == '\n' );
- c6 = fb_01.snextc();
- c7 = fb_02.snextc();
- VERIFY( c6 != c8 );
- VERIFY( c7 == c9 ); // -1
- VERIFY( c6 == '9' );
- c5 = fb_03.snextc();
- VERIFY( c5 == traits_type::eof() );
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/1.cc
deleted file mode 100644
index 0f2eb896f5b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/1.cc
+++ /dev/null
@@ -1,168 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <locale>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char carray_01[] = "santa cruz or sandiego?";
-const char carray_02[] = "memphis, new orleans, and savanah";
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-const char name_04[] = "filebuf_virtuals-4.txt"; // empty file, need to create
-const char name_05[] = "filebuf_virtuals-5.txt"; // empty file, need to create
-const char name_06[] = "filebuf_virtuals-6.txt"; // empty file, need to create
-const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create
-const char name_08[] = "filebuf_virtuals-8.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- typedef std::filebuf::int_type int_type;
- typedef std::filebuf::traits_type traits_type;
- typedef std::filebuf::pos_type pos_type;
- typedef std::filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- std::filebuf f_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- fb_01.open(name_01, std::ios_base::in);
- fb_02.open(name_02, std::ios_base::out | std::ios_base::trunc);
- fb_03.open(name_03, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
-
- int_type c1 = fb_01.sbumpc();
- int_type c2 = fb_02.sbumpc();
- int_type c3 = fb_01.sbumpc();
- int_type c4 = fb_02.sbumpc();
- int_type c5 = fb_03.sbumpc();
- int_type c6 = fb_01.sgetc();
- int_type c7 = fb_02.sgetc();
- int_type c8 = fb_01.sgetc();
- int_type c9 = fb_02.sgetc();
-
- // PUT
- strmsz_1 = fb_03.sputn("racadabras", 10);//"abracadabras or what?"
- strmsz_2 = fb_03.sputn(", i wanna reach out and", 10);
- strmsz_1 = fb_02.sputn("racadabras", 10);
- strmsz_1 = fb_01.sputn("racadabra", 10);
-
- // PUTBACK
- // int_type pbfail(int_type c)
- // called when gptr() null, gptr() == eback(), or traits::eq(*gptr, c) false
- // "pending sequence" is:
- // 1) everything as defined in underflow
- // 2) + if (traits::eq_int_type(c, traits::eof()), then input
- // sequence is backed up one char before the pending sequence is
- // determined.
- // 3) + if (not 2) then c is prepended. Left unspecified is
- // whether the input sequence is backedup or modified in any way
- // returns traits::eof() for failure, unspecified other value for success
-
- // int_type sputbackc(char_type c)
- // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
- // otherwise decrements in_cur and returns *gptr()
- c1 = fb_03.sgetc(); // -1
- c2 = fb_03.sputbackc('z');
- strmsz_2 = fb_03.in_avail();
- c3 = fb_03.sgetc();
- VERIFY( c3 == c2 );
- VERIFY( c1 != c3 );
- VERIFY( 1 == strmsz_2 );
- //test for _in_cur == _in_beg
- // fb_03._M_out_beg = "bd23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZracada" etc
- fb_03.pubseekoff(10, std::ios_base::beg,
- std::ios_base::in | std::ios_base::out);
- fb_03.sputc('m');
- strmsz_1 = fb_03.in_avail();
- c1 = fb_03.sgetc();
- fb_03.snextc();
- c2 = fb_03.sputbackc('z');
- strmsz_2 = fb_03.in_avail();
- c3 = fb_03.sgetc();
- VERIFY( c1 != c2 );
- VERIFY( c3 == c2 );
- VERIFY( c1 != c3 );
- VERIFY( c2 == 'z' );
- // VERIFY( strmsz_1 == strmsz_2 );
- // test for replacing char with identical one
- fb_03.snextc();
- fb_03.sputc('u');
- fb_03.sputc('v');
- fb_03.sputc('a');
- strmsz_1 = fb_03.in_avail();
- c2 = fb_03.sputbackc('a');
- strmsz_2 = fb_03.in_avail();
- c3 = fb_03.sgetc();
- VERIFY( c3 == c2 );
- VERIFY( strmsz_1 + 1 == strmsz_2 );
- //test for ios_base::out
- c1 = fb_02.sgetc(); // undefined
- c2 = fb_02.sputbackc('a');
- VERIFY( c1 == c2 );
- VERIFY( c1 == -1 );
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/9425.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/9425.cc
deleted file mode 100644
index b5e470f332a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputbackc/char/9425.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-
-// libstdc++/9439, libstdc++/9425
-// basic_filebuf<>::pbackfail calls basic_filebuf<>::seekoff, but
-// fails to check the return value
-void test09()
-{
- using namespace std;
- bool test = true;
-
- filebuf fbuf;
- fbuf.open(name_01, ios_base::in);
- filebuf::int_type r = fbuf.sputbackc('a');
- fbuf.close();
-
- VERIFY( r == filebuf::traits_type::eof() );
-}
-
-main()
-{
- test09();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1.cc
deleted file mode 100644
index 875f37e8ae1..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1.cc
+++ /dev/null
@@ -1,137 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <locale>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char carray_01[] = "santa cruz or sandiego?";
-const char carray_02[] = "memphis, new orleans, and savanah";
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-const char name_04[] = "filebuf_virtuals-4.txt"; // empty file, need to create
-const char name_05[] = "filebuf_virtuals-5.txt"; // empty file, need to create
-const char name_06[] = "filebuf_virtuals-6.txt"; // empty file, need to create
-const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create
-const char name_08[] = "filebuf_virtuals-8.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- typedef std::filebuf::int_type int_type;
- typedef std::filebuf::traits_type traits_type;
- typedef std::filebuf::pos_type pos_type;
- typedef std::filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- std::filebuf f_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- fb_01.open(name_01, std::ios_base::in);
- fb_02.open(name_02, std::ios_base::out | std::ios_base::trunc);
- fb_03.open(name_03, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
-
- int_type c1 = fb_01.sbumpc();
- int_type c2 = fb_02.sbumpc();
- int_type c3 = fb_01.sbumpc();
- int_type c4 = fb_02.sbumpc();
- int_type c5 = fb_03.sbumpc();
- int_type c6 = fb_01.sgetc();
- int_type c7 = fb_02.sgetc();
- int_type c8 = fb_01.sgetc();
- int_type c9 = fb_02.sgetc();
-
- // PUT
- // int_type sputc(char_type c)
- // if out_cur not avail, return overflow(traits_type::to_int_type(c))
- // else, stores c at out_cur,
- // increments out_cur, and returns c as int_type
- // strmsz_1 = fb_03.in_avail(); // XXX valid for in|out??
- c1 = fb_02.sputc('a');
- c2 = fb_03.sputc('b');
- VERIFY( c1 != c2 );
- c1 = fb_02.sputc('c');
- c2 = fb_03.sputc('d');
- VERIFY( c1 != c2 );
- // strmsz_2 = fb_03.in_avail();
- // VERIFY( strmsz_1 != strmsz_2 );
- for (int i = 50; i <= 90; ++i)
- c2 = fb_02.sputc(char(i));
- // 27filebuf-2.txt == ac23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWX
- // fb_02._M_out_cur = '2'
- strmsz_1 = fb_03.in_avail();
- for (int i = 50; i <= 90; ++i)
- c2 = fb_03.sputc(char(i));
- strmsz_2 = fb_03.in_avail();
- // VERIFY( strmsz_1 != strmsz_2 );
- // VERIFY( strmsz_1 > 0 );
- // VERIFY( strmsz_2 > 0 );
- // 27filebuf-2.txt == bd23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWX
- // fb_02._M_out_cur = '2'
- c3 = fb_01.sputc('a'); // should be EOF because this is read-only
- VERIFY( c3 == traits_type::eof() );
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1057.cc
deleted file mode 100644
index d794458c3d3..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/1057.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <string>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-class nullsetpbuf : public std::filebuf
-{
- char foo[64];
-public:
- nullsetpbuf()
- {
- setp(foo, foo + 64);
- setp(NULL, NULL);
- }
-};
-
-// libstdc++/1057
-void test05()
-{
- std::string text1 = "abcdefghijklmn";
-
- nullsetpbuf nsp;
- // Immediate crash as sputc writes to null pointer
- nsp.sputc('a');
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc
deleted file mode 100644
index e0358ef5252..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc
+++ /dev/null
@@ -1,71 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_05[] = "filebuf_virtuals-5.txt"; // empty file, need to create
-
-bool over_called;
-
-class Derived_filebuf : public std::filebuf
-{
-public:
- int_type overflow(int_type c)
- {
- over_called = true;
- return std::filebuf::overflow(c);
- }
-
- const char_type* pub_epptr() const
- { return epptr(); }
-
- const char_type* pub_pptr() const
- { return pptr(); }
-};
-
-// libstdc++/9701 (partial)
-void test11()
-{
- bool test = true;
-
- bool over_expected;
-
- // sputc
- Derived_filebuf dfbuf_01;
- dfbuf_01.open(name_05, std::ios_base::out);
- over_called = false;
- dfbuf_01.sputc('i');
- VERIFY( !over_called );
- over_expected = dfbuf_01.pub_epptr() == dfbuf_01.pub_pptr();
- over_called = false;
- dfbuf_01.sputc('v');
- VERIFY( (!over_expected && !over_called)
- || (over_expected && over_called) );
- dfbuf_01.close();
-}
-
-main()
-{
- test11();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1.cc
deleted file mode 100644
index a8bafd50788..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1.cc
+++ /dev/null
@@ -1,125 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <locale>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char carray_01[] = "santa cruz or sandiego?";
-const char carray_02[] = "memphis, new orleans, and savanah";
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-const char name_04[] = "filebuf_virtuals-4.txt"; // empty file, need to create
-const char name_05[] = "filebuf_virtuals-5.txt"; // empty file, need to create
-const char name_06[] = "filebuf_virtuals-6.txt"; // empty file, need to create
-const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create
-const char name_08[] = "filebuf_virtuals-8.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- typedef std::filebuf::int_type int_type;
- typedef std::filebuf::traits_type traits_type;
- typedef std::filebuf::pos_type pos_type;
- typedef std::filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- std::filebuf f_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- fb_01.open(name_01, std::ios_base::in);
- fb_02.open(name_02, std::ios_base::out | std::ios_base::trunc);
- fb_03.open(name_03, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
-
- int_type c1 = fb_01.sbumpc();
- int_type c2 = fb_02.sbumpc();
- int_type c3 = fb_01.sbumpc();
- int_type c4 = fb_02.sbumpc();
- int_type c5 = fb_03.sbumpc();
- int_type c6 = fb_01.sgetc();
- int_type c7 = fb_02.sgetc();
- int_type c8 = fb_01.sgetc();
- int_type c9 = fb_02.sgetc();
-
- // PUT
- // streamsize sputn(const char_typs* s, streamsize n)
- // write up to n chars to out_cur from s, returning number assigned
- // NB *sputn will happily put '\0' into your stream if you give it a chance*
- strmsz_1 = fb_03.sputn("racadabras", 10);//"abracadabras or what?"
- VERIFY( strmsz_1 == 10 );
- strmsz_2 = fb_03.sputn(", i wanna reach out and", 10);
- VERIFY( strmsz_2 == 10 );
- VERIFY( strmsz_1 == strmsz_2 );
- // fb_03._M_out_beg = "YZracadabras, i wanna FGHIJKLMNOPQRSTUVW"
- // fb_03._M_out_cur = "FGHIJKLMNOPQRSTUVW"
- strmsz_1 = fb_02.sputn("racadabras", 10);
- VERIFY( strmsz_1 == 10 );
- // fb_02._M_out_beg = "YZracadabras<=>?@ABCDEFGHIJKLMNOPQRSTUVW"
- // fb_02._M_out_cur = "<=>?@ABCDEFGHIJKLMNOPQRSTUVW"
- strmsz_1 = fb_01.sputn("racadabra", 10);
- VERIFY( strmsz_1 == 0 );
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1057.cc
deleted file mode 100644
index b6cf1e7db90..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/1057.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <string>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-class nullsetpbuf : public std::filebuf
-{
- char foo[64];
-public:
- nullsetpbuf()
- {
- setp(foo, foo + 64);
- setp(NULL, NULL);
- }
-};
-
-// libstdc++/1057
-void test05()
-{
- std::string text1 = "abcdefghijklmn";
-
- nullsetpbuf nsp;
- // Immediate crash as xsputn writes to null pointer
- nsp.sputn(text1.c_str(), text1.length());
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc
deleted file mode 100644
index 3c350a4d360..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_05[] = "filebuf_virtuals-5.txt"; // empty file, need to create
-
-bool over_called;
-
-class Derived_filebuf : public std::filebuf
-{
-public:
- int_type overflow(int_type c)
- {
- over_called = true;
- return std::filebuf::overflow(c);
- }
-
- const char_type* pub_epptr() const
- {
- return epptr();
- }
-
- const char_type* pub_pptr() const
- {
- return pptr();
- }
-};
-
-// libstdc++/9701 (partial)
-void test11()
-{
- bool test = true;
-
- bool over_expected;
-
- // sputn
- Derived_filebuf dfbuf_02;
- dfbuf_02.open(name_05, std::ios_base::out);
- over_called = false;
- dfbuf_02.sputn("sonne's", 7);
- VERIFY( !over_called );
- over_expected = dfbuf_02.pub_epptr() == dfbuf_02.pub_pptr();
- over_called = false;
- dfbuf_02.sputn(" peak", 5);
- VERIFY( (!over_expected && !over_called)
- || (over_expected && over_called) );
- dfbuf_02.close();
-}
-
-main()
-{
- test11();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1.cc
deleted file mode 100644
index c0f2520c7d1..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sungetc/char/1.cc
+++ /dev/null
@@ -1,191 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <locale>
-#include <testsuite_hooks.h>
-
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %*.txt
-
-// NB: This test assumes that _M_buf_size == 40, and not the usual
-// buffer_size length of BUFSIZ (8192), so that overflow/underflow can be
-// simulated a bit more readily.
-// NRB (Nota Really Bene): setting it to 40 breaks the test, as intended.
-const int buffer_size = 8192;
-//const int buffer_size = 40;
-
-const char carray_01[] = "santa cruz or sandiego?";
-const char carray_02[] = "memphis, new orleans, and savanah";
-const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
-const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
-const char name_03[] = "filebuf_virtuals-3.txt"; // empty file, need to create
-const char name_04[] = "filebuf_virtuals-4.txt"; // empty file, need to create
-const char name_05[] = "filebuf_virtuals-5.txt"; // empty file, need to create
-const char name_06[] = "filebuf_virtuals-6.txt"; // empty file, need to create
-const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create
-const char name_08[] = "filebuf_virtuals-8.txt"; // empty file, need to create
-
-class derived_filebuf: public std::filebuf
-{
- public:
- void
- set_size(int_type __size) { _M_buf_size = __size; }
-};
-
-derived_filebuf fb_01; // in
-derived_filebuf fb_02; // out
-derived_filebuf fb_03; // in | out
-
-// Initialize filebufs to be the same size regardless of platform.
-void test03()
-{
- fb_01.set_size(buffer_size);
- fb_02.set_size(buffer_size);
- fb_03.set_size(buffer_size);
-}
-
-// Test overloaded virtual functions.
-void test05()
-{
- typedef std::filebuf::int_type int_type;
- typedef std::filebuf::traits_type traits_type;
- typedef std::filebuf::pos_type pos_type;
- typedef std::filebuf::off_type off_type;
- typedef size_t size_type;
-
- bool test = true;
- std::filebuf f_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1, strmof_2;
- int i = 0, j = 0, k = 0;
-
- fb_01.open(name_01, std::ios_base::in);
- fb_02.open(name_02, std::ios_base::out | std::ios_base::trunc);
- fb_03.open(name_03, std::ios_base::out | std::ios_base::in | std::ios_base::trunc);
-
- int_type c1 = fb_01.sbumpc();
- int_type c2 = fb_02.sbumpc();
- int_type c3 = fb_01.sbumpc();
- int_type c4 = fb_02.sbumpc();
- int_type c5 = fb_03.sbumpc();
- int_type c6 = fb_01.sgetc();
- int_type c7 = fb_02.sgetc();
- int_type c8 = fb_01.sgetc();
- int_type c9 = fb_02.sgetc();
-
- // PUT
- strmsz_1 = fb_03.sputn("racadabras", 10);//"abracadabras or what?"
- strmsz_2 = fb_03.sputn(", i wanna reach out and", 10);
- strmsz_1 = fb_02.sputn("racadabras", 10);
- strmsz_1 = fb_01.sputn("racadabra", 10);
-
- // PUTBACK
- // int_type pbfail(int_type c)
- // called when gptr() null, gptr() == eback(), or traits::eq(*gptr, c) false
- // "pending sequence" is:
- // 1) everything as defined in underflow
- // 2) + if (traits::eq_int_type(c, traits::eof()), then input
- // sequence is backed up one char before the pending sequence is
- // determined.
- // 3) + if (not 2) then c is prepended. Left unspecified is
- // whether the input sequence is backedup or modified in any way
- // returns traits::eof() for failure, unspecified other value for success
-
- // int_type sputbackc(char_type c)
- // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
- // otherwise decrements in_cur and returns *gptr()
- c1 = fb_03.sgetc(); // -1
- c2 = fb_03.sputbackc('z');
- strmsz_2 = fb_03.in_avail();
- c3 = fb_03.sgetc();
- //test for _in_cur == _in_beg
- // fb_03._M_out_beg = "bd23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZracada" etc
- fb_03.pubseekoff(10, std::ios_base::beg,
- std::ios_base::in | std::ios_base::out);
- fb_03.sputc('m');
- strmsz_1 = fb_03.in_avail();
- c1 = fb_03.sgetc();
- fb_03.snextc();
- c2 = fb_03.sputbackc('z');
- strmsz_2 = fb_03.in_avail();
- c3 = fb_03.sgetc();
- fb_03.snextc();
- fb_03.sputc('u');
- fb_03.sputc('v');
- fb_03.sputc('a');
- strmsz_1 = fb_03.in_avail();
- c2 = fb_03.sputbackc('a');
- strmsz_2 = fb_03.in_avail();
- c3 = fb_03.sgetc();
- //test for ios_base::out
- c1 = fb_02.sgetc(); // undefined
- c2 = fb_02.sputbackc('a');
-
- // int_type sungetc()
- // if in_cur not avail, return pbackfail(), else decrement and
- // return to_int_type(*gptr())
- // fb_03._M_out_beg = "uvaacadabras, i wannaZ[\\]^_`abcdefghijkl"
- // fb_03._M_out_cur = "aacadabras, i wannaZ[\\]^_`abcdefghijkl"
- strmsz_1 = fb_03.in_avail();
- c2 = fb_03.sungetc(); // delete the 'a'
- strmsz_2 = fb_03.in_avail();
- VERIFY( c2 == 'v' ); // VERIFY( c2 != traits_type::eof() );
- VERIFY( strmsz_1 + 1 == strmsz_2 );
- //test for _in_cur == _in_beg
- for (int i = 50; i < 32 + 29; ++i)
- fb_02.sputc(char(i));
- fb_02.pubseekoff(0, std::ios_base::beg, std::ios_base::out);
- c1 = fb_02.sgetc();
- strmsz_1 = fb_02.in_avail();
- c2 = fb_02.sungetc();
- c3 = fb_02.sgetc();
- strmsz_2 = fb_02.in_avail();
- VERIFY( c1 == c2 );
- VERIFY( c2 == c3 );
- VERIFY( c1 == traits_type::eof() );
- VERIFY( strmsz_1 == strmsz_2 );
- //test for _in_cur == _in_end
- fb_03.pubseekoff(0, std::ios_base::end);
- strmsz_1 = fb_03.in_avail(); // -1 cuz at the end
- c1 = fb_03.sgetc();
- c2 = fb_03.sungetc();
- strmsz_2 = fb_03.in_avail(); // 1
- c3 = fb_03.sgetc();
- VERIFY( c1 != c2 );
- // VERIFY( c2 == c3 || c2 == traits_type::not_eof(int(c3)) );
- VERIFY( strmsz_2 != strmsz_1 );
- VERIFY( strmsz_2 == 1 );
- //test for ios_base::out
-}
-
-main()
-{
- test03();
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/1057.cc
deleted file mode 100644
index 02feef5a6e8..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/1057.cc
+++ /dev/null
@@ -1,112 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-class setpbuf : public std::filebuf
-{
- char buffer[4];
- std::string result;
-
-public:
-
- std::string&
- get_result()
- { return result; }
-
- setpbuf()
- {
- this->open("tmp_1057", std::ios_base::out | std::ios_base::trunc);
- char foo [32];
- setp(foo, foo + 32);
- setp(buffer, buffer + 4);
- }
-
- ~setpbuf()
- {
- sync();
- close();
- }
-
- virtual int_type
- overflow(int_type n)
- {
- if (sync() != 0)
- return traits_type::eof();
-
- result += traits_type::to_char_type(n);
-
- return n;
- }
-
- virtual int
- sync()
- {
- result.append(pbase(), pptr());
- setp(buffer, buffer + 4);
- return 0;
- }
-};
-
-// libstdc++/1057
-void test04()
-{
- bool test = true;
- std::string text = "abcdefghijklmn";
-
- // 01
- setpbuf sp1;
- // Here xsputn writes over sp1.result
- sp1.sputn(text.c_str(), text.length());
-
- // This crashes when result is accessed
- sp1.pubsync();
- VERIFY( sp1.get_result() == text );
-
- // 02
- setpbuf sp2;
- for (std::string::size_type i = 0; i < text.length(); ++i)
- {
- // sputc also writes over result
- sp2.sputc(text[i]);
- }
-
- // Crash here
- sp2.pubsync();
- VERIFY( sp2.get_result() == text );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc
deleted file mode 100644
index a0411e2fff3..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create
-
-class errorcvt : public std::codecvt<char, char, mbstate_t>
-{
-protected:
- std::codecvt_base::result
- do_out(mbstate_t&, const char* from, const char*,
- const char*& from_next, char* to, char*,
- char*& to_next) const
- {
- from_next = from;
- to_next = to;
- return std::codecvt<char, char, mbstate_t>::error;
- }
-
- virtual bool do_always_noconv() const throw()
- {
- return false;
- }
-};
-
-// libstdc++/9182
-// basic_filebuf<>::sync and overflow do not write out any characters
-// if codecvt<>::out returns error
-void test13()
-{
- using namespace std;
- bool test = true;
-
- locale loc = locale::classic();
- loc = locale(loc, new errorcvt);
-
- filebuf fbuf1;
- fbuf1.pubimbue(loc);
- fbuf1.open(name_07, ios_base::out | ios_base::trunc);
- fbuf1.sputn("ison", 4);
- int r = fbuf1.pubsync();
- VERIFY( r == -1 );
- fbuf1.close();
-}
-
-main()
-{
- test13();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc
deleted file mode 100644
index 1b900f9e5d9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc
+++ /dev/null
@@ -1,101 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <fstream>
-#include <unistd.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <testsuite_hooks.h>
-
-class UnderBuf : public std::filebuf
-{
-public:
- int_type
- pub_underflow()
- { return underflow(); }
-
- std::streamsize
- pub_showmanyc()
- { return showmanyc(); }
-};
-
-// libstdc++/10097
-// filebuf::underflow drops characters.
-void test16()
-{
- using namespace std;
- bool test = true;
-
- const char* name = "tmp_fifo1";
-
- signal(SIGPIPE, SIG_IGN);
- unlink(name);
-
- if (0 != mkfifo(name, S_IRWXU))
- {
- VERIFY( false );
- }
-
- int fval = fork();
- if (fval == -1)
- {
- unlink(name);
- VERIFY( false );
- }
- else if (fval == 0)
- {
- filebuf fbout;
- fbout.open(name, ios_base::out);
- fbout.sputn("0123456789", 10);
- fbout.pubsync();
- sleep(2);
- fbout.close();
- exit(0);
- }
-
- UnderBuf fb;
- fb.open(name, ios_base::in);
- sleep(1);
-
- fb.sgetc();
- streamsize n = fb.pub_showmanyc();
-
- while (n > 0)
- {
- --n;
-
- UnderBuf::int_type c = fb.pub_underflow();
- VERIFY( c != UnderBuf::traits_type::eof() );
-
- fb.sbumpc();
- }
-
- fb.close();
-}
-
-main()
-{
- test16();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_fstream/1.cc b/libstdc++-v3/testsuite/27_io/basic_fstream/1.cc
deleted file mode 100644
index 28713fbdd28..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_fstream/1.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.8.1.11 - Template class basic_fstream
-// NB: This file is for testing basic_fstream with NO OTHER INCLUDES.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::fstream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_fstream/2.cc b/libstdc++-v3/testsuite/27_io/basic_fstream/2.cc
deleted file mode 100644
index 3faf03f4dcf..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_fstream/2.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.8.1.11 - Template class basic_fstream
-// NB: This file is for testing basic_fstream with NO OTHER INCLUDES.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef short type_t;
- template class basic_fstream<type_t, char_traits<type_t> >;
- template class basic_fstream<pod_char, char_traits<pod_char> >;
-} // test
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_fstream/3.cc b/libstdc++-v3/testsuite/27_io/basic_fstream/3.cc
deleted file mode 100644
index a9eb1137a26..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_fstream/3.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_fstream<gnu_char_type, gnu_char_traits> gnu_fstr;
-
- try
- {
- gnu_fstr obj;
- }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_fstream/4.cc b/libstdc++-v3/testsuite/27_io/basic_fstream/4.cc
deleted file mode 100644
index a7f46d61d8a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_fstream/4.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <iostream>
-#include <fstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::fstream test_type;
- typedef std::iostream base_type;
- const test_type& obj = test_type();
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_fstream/rdbuf/char/2832.cc b/libstdc++-v3/testsuite/27_io/basic_fstream/rdbuf/char/2832.cc
deleted file mode 100644
index 136252b8efb..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_fstream/rdbuf/char/2832.cc
+++ /dev/null
@@ -1,70 +0,0 @@
-// 2001-05-24 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.13 member functions (fstream_members)
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void
-redirect_buffer(std::ios& stream, std::streambuf* new_buf)
-{ stream.rdbuf(new_buf); }
-
-std::streambuf*
-active_buffer(std::ios& stream)
-{ return stream.rdbuf(); }
-
-// libstdc++/2832
-void test02()
-{
- bool test = true;
- const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
- const std::string str00;
- const std::string str01(strlit01);
- std::string str02;
- std::filebuf fbuf;
- std::streambuf* pbasebuf0 = &fbuf;
-
- std::fstream sstrm1;
- // derived rdbuf() always returns original streambuf, even though
- // it's no longer associated with the stream.
- std::filebuf* const buf1 = sstrm1.rdbuf();
- // base rdbuf() returns the currently associated streambuf
- std::streambuf* pbasebuf1 = active_buffer(sstrm1);
- redirect_buffer(sstrm1, &fbuf);
- std::filebuf* const buf2 = sstrm1.rdbuf();
- std::streambuf* pbasebuf2 = active_buffer(sstrm1);
- VERIFY( buf1 == buf2 );
- VERIFY( pbasebuf1 != pbasebuf2 );
- VERIFY( pbasebuf2 == pbasebuf0 );
-
- // How confusing and non-intuitive is this?
- // These semantics are a joke, a serious defect, and incredibly lame.
-}
-
-int main()
-{
- test02();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/1.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/1.cc
deleted file mode 100644
index 176333cc9f1..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ifstream/1.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.8.1.5 - Template class basic_ifstream
-// NB: This file is for testing basic_ifstream with NO OTHER INCLUDES.
-
-#include <fstream>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::ifstream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/2.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/2.cc
deleted file mode 100644
index 6fb71a575ad..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ifstream/2.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.8.1.5 - Template class basic_ifstream
-// NB: This file is for testing basic_ifstream with NO OTHER INCLUDES.
-
-#include <fstream>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- typedef short type_t;
- template class basic_ifstream<type_t, char_traits<type_t> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/3.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/3.cc
deleted file mode 100644
index c1d2544dc35..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ifstream/3.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_ifstream<gnu_char_type, gnu_char_traits> gnu_ifstr;
-
- try
- {
- gnu_ifstr obj;
- }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/4.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/4.cc
deleted file mode 100644
index 08827c3aec6..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ifstream/4.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <istream>
-#include <fstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::ifstream test_type;
- typedef std::istream base_type;
- const test_type& obj = test_type();
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/1.cc
deleted file mode 100644
index e211d0cc643..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/1.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.7 ifstream member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "ifstream_members-1.tst";
-
-// http://gcc.gnu.org/ml/libstdc++/2000-07/msg00004.html
-void test02()
-{
- bool test = true;
- const int more_than_max_open_files = 8200;
-
- for (int i = 0; ++i < more_than_max_open_files;)
- {
- std::ifstream ifs(name_01);
- VERIFY( static_cast<bool>(ifs) );
- }
-}
-
-int main()
-{
- test02();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/1.cc
deleted file mode 100644
index 5a8b6f8b3a4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/1.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.7 ifstream member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "ifstream_members-1.tst";
-
-// http://gcc.gnu.org/ml/libstdc++/2000-06/msg00136.html
-void test01()
-{
- bool test = true;
- std::ifstream ifs1;
- ifs1.close();
-
- // false as expected:
- VERIFY( !ifs1.is_open() );
- // this is now true:
- VERIFY( !(ifs1) );
-
- ifs1.open(name_01);
- VERIFY( ifs1.is_open() );
- // fail bit still true
- VERIFY( !(ifs1) );
- VERIFY( ifs1.rdstate() == std::ios_base::failbit );
-
- ifs1.close();
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ifstream/rdbuf/char/2832.cc b/libstdc++-v3/testsuite/27_io/basic_ifstream/rdbuf/char/2832.cc
deleted file mode 100644
index 947a77dce2b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ifstream/rdbuf/char/2832.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.7 ifstream member functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "ifstream_members-1.tst";
-const char name_02[] = "ifstream_members-1.txt";
-
-void
-redirect_buffer(std::ios& stream, std::streambuf* new_buf)
-{ stream.rdbuf(new_buf); }
-
-std::streambuf*
-active_buffer(std::ios& stream)
-{ return stream.rdbuf(); }
-
-// libstdc++/2832
-void test03()
-{
- bool test = true;
- const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
- const std::string str00;
- const std::string str01(strlit01);
- std::string str02;
- std::filebuf fbuf;
- std::streambuf* pbasebuf0 = &fbuf;
-
- std::ifstream sstrm1;
- // derived rdbuf() always returns original streambuf, even though
- // it's no longer associated with the stream.
- std::filebuf* const buf1 = sstrm1.rdbuf();
- // base rdbuf() returns the currently associated streambuf
- std::streambuf* pbasebuf1 = active_buffer(sstrm1);
- redirect_buffer(sstrm1, &fbuf);
- std::filebuf* const buf2 = sstrm1.rdbuf();
- std::streambuf* pbasebuf2 = active_buffer(sstrm1);
- VERIFY( buf1 == buf2 );
- VERIFY( pbasebuf1 != pbasebuf2 );
- VERIFY( pbasebuf2 == pbasebuf0 );
-
- // How confusing and non-intuitive is this?
- // These semantics are a joke, a serious defect, and incredibly lame.
-}
-
-int main()
-{
- test03();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/1.cc b/libstdc++-v3/testsuite/27_io/basic_ios/1.cc
deleted file mode 100644
index 1b8de870501..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/1.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.4 - Template class basic_ios
-// NB: This file is for testing basic_ios with NO OTHER INCLUDES.
-
-#include <ios>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::ios test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/2.cc b/libstdc++-v3/testsuite/27_io/basic_ios/2.cc
deleted file mode 100644
index 56e2bd8ed69..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/2.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.4 - Template class basic_ios
-// NB: This file is for testing basic_ios with NO OTHER INCLUDES.
-
-#include <ios>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- typedef short type_t;
- template class basic_ios<type_t, char_traits<type_t> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/3.cc b/libstdc++-v3/testsuite/27_io/basic_ios/3.cc
deleted file mode 100644
index fa9e8b1804e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/3.cc
+++ /dev/null
@@ -1,147 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <ios>
-#include <testsuite_hooks.h>
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-class gnu_ios: public std::basic_ios<gnu_char_type, gnu_char_traits>
-{ };
-
-void test07()
-{
- bool test = true;
-
- try
- { gnu_ios obj; }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/4.cc b/libstdc++-v3/testsuite/27_io/basic_ios/4.cc
deleted file mode 100644
index b527499dcb4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/4.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <ios>
-#include <sstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::ios test_type;
- typedef std::ios_base base_type;
-
- std::stringbuf buf;
- const test_type& obj = test_type(&buf);
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/clear/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ios/clear/char/1.cc
deleted file mode 100644
index 6629371ed03..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/clear/char/1.cc
+++ /dev/null
@@ -1,81 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.4.2 basic_ios member functions
-
-// NB: Don't include any other headers in this file.
-#include <ios>
-#include <testsuite_hooks.h>
-
-// 27.4.4.3 basic_ios iostate flags function
-void test01()
-{
- bool test = true;
-
- typedef std::ios_base::fmtflags fmtflags;
- typedef std::ios_base::iostate iostate;
- using std::ios_base;
-
- iostate iostate02, iostate03;
- const iostate iostate01 = std::ios_base::badbit | std::ios_base::eofbit;
- const iostate iostate04 = std::ios_base::badbit;
-
- std::ios ios_01(NULL);
- std::ios::char_type ct01;
- std::ios::char_type ct02('x');;
-
- // bool fail() const
- VERIFY( ios_01.fail() );
-
- // bool operator!() const
- VERIFY( !ios_01 );
-
- // iostate rdstate() const
- iostate03 = ios_01.rdstate();
- VERIFY( static_cast<bool>(iostate03 & std::ios_base::badbit) );
-
- // void clear(iostate state = goodbit)
- try {
- ios_01.clear(std::ios_base::eofbit);
- iostate02 = ios_01.rdstate();
- VERIFY( static_cast<bool>(iostate02 & iostate01) );
- }
- catch(std::ios_base::failure& fail) {
- VERIFY( false );
- }
- catch(...) {
- VERIFY( false );
- }
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/1.cc
deleted file mode 100644
index 2c8993afd7e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/1.cc
+++ /dev/null
@@ -1,88 +0,0 @@
-// 1999-07-23 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.4.1 basic_ios constructors
-
-#include <ios>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
- std::string str_01("jade cove, big sur");
- std::string str_05;
- std::stringbuf strb_01;
- std::stringbuf strb_02(str_01, std::ios_base::in);
- std::stringbuf strb_03(str_01, std::ios_base::out);
- const std::ios_base::fmtflags flag01 = std::ios_base::skipws |
- std::ios_base::dec;
- std::ios_base::fmtflags flag02, flag03;
- const std::locale glocale = std::locale();
-
- // explicit basic_ios(streambuf* sb)
- std::ios ios_00(0);
- std::ios ios_01(&strb_01);
- std::ios ios_02(&strb_02);
- std::ios ios_03(&strb_03);
-
- // basic_ios()
- // NB: This is protected so need to go through fstream
-
- // void init(sreambuf* sb)
- // NB: This is protected so need to go through fstream/stringstream
- // Can double-check the accuracy of the above initializations though.
- VERIFY( ios_00.rdbuf() == 0 );
- VERIFY( ios_00.tie() == 0 );
- VERIFY( ios_00.rdstate() == std::ios_base::badbit );
- VERIFY( ios_00.exceptions() == std::ios_base::goodbit );
- flag02 = ios_00.flags();
- VERIFY( flag02 == flag01 );
- VERIFY( ios_00.width() == 0 );
- VERIFY( ios_00.precision() == 6 );
- VERIFY( ios_00.fill() == ios_00.widen(' ') );
- VERIFY( ios_00.getloc() == glocale );
-
- VERIFY( ios_01.rdbuf() == &strb_01 );
- VERIFY( ios_01.tie() == 0 );
- VERIFY( ios_01.rdstate() == std::ios_base::goodbit );
- VERIFY( ios_01.exceptions() == std::ios_base::goodbit );
- flag02 = ios_01.flags();
- VERIFY( flag02 == flag01 );
- VERIFY( ios_01.width() == 0 );
- VERIFY( ios_01.precision() == 6 );
- VERIFY( ios_01.fill() == ios_01.widen(' ') );
- VERIFY( ios_01.getloc() == glocale );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/2.cc
deleted file mode 100644
index 84808f8b14f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/2.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.2.1.6 class ios_base::init
-
-#include <ios>
-#include <testsuite_hooks.h>
-
-// Non-required instantiations don't have the required facets inbued,
-// by default, into the locale object.
-// See 27.4.4.1
-class gnu_ios: public std::basic_ios<char> { };
-
-void test01()
-{
- bool test = true;
-
- // 01: Doesn't call basic_ios::init, which uses ctype<char_type>..
- // This should be unambiguously correct.
- try
- {
- gnu_ios gios;
- }
- catch(...)
- {
- test = false;
- }
- VERIFY( test );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc
deleted file mode 100644
index a0f7afa4287..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc
+++ /dev/null
@@ -1,175 +0,0 @@
-// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.2.1.6 class ios_base::init
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// char_traits specialization
-namespace std
-{
- template<>
- struct char_traits<unsigned short>
- {
- typedef unsigned short char_type;
- // Unsigned as wint_t in unsigned.
- typedef unsigned long int_type;
- typedef streampos pos_type;
- typedef streamoff off_type;
- typedef mbstate_t state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2)
- { __c1 = __c2; }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2)
- { return __c1 == __c2; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2)
- { return __c1 < __c2; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- {
- for (size_t __i = 0; __i < __n; ++__i)
- if (!eq(__s1[__i], __s2[__i]))
- return lt(__s1[__i], __s2[__i]) ? -1 : 1;
- return 0;
- }
-
- static size_t
- length(const char_type* __s)
- {
- const char_type* __p = __s;
- while (__p)
- ++__p;
- return (__p - __s);
- }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- {
- for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p)
- if (*__p == __a) return __p;
- return 0;
- }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- {
- for (char_type* __p = __s; __p < __s + __n; ++__p)
- assign(*__p, __a);
- return __s;
- }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c) { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return __c1 == __c2; }
-
- static int_type
- eof() { return static_cast<int_type>(-1); }
-
- static int_type
- not_eof(const int_type& __c)
- { return eq_int_type(__c, eof()) ? int_type(0) : __c; }
- };
-} // namespace std
-
-// Non-required instantiations don't have the required facets inbued,
-// by default, into the locale object.
-// See 27.4.4.1
-
-void test02()
-{
- bool test = true;
-
- // 02: Calls basic_ios::init, which may call ctype<char_type>...
- try
- {
- std::basic_string<unsigned short> str;
- std::basic_ostringstream<unsigned short> oss(str);
-
- // Try each member functions for unformatted io.
- // put
- oss.put(324);
-
- // write
- const unsigned short us[4] = {1246, 433, 520, 0};
- oss.write(us, 4);
-
- // flush
- oss.flush();
- }
- catch(const std::bad_cast& obj)
- {
- // Should be able to do the above without calling fill() and
- // forcing a call to widen...
- test = false;
- }
- catch(...)
- {
- test = false;
- }
- VERIFY( test );
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_string<unsigned short>::size_type
- std::basic_string<unsigned short>::_Rep::_S_max_size;
-
-template
- unsigned short
- std::basic_string<unsigned short>::_Rep::_S_terminal;
-#endif
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc
deleted file mode 100644
index 191cbb60830..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.4.2 basic_ios member functions
-
-// NB: Don't include any other headers in this file.
-#include <ios>
-#include <testsuite_hooks.h>
-
-// 27.4.4.3 basic_ios iostate flags function
-void test02()
-{
- bool test = true;
-
- typedef std::ios_base::fmtflags fmtflags;
- typedef std::ios_base::iostate iostate;
- using std::ios_base;
-
- iostate iostate02, iostate03;
- const iostate iostate01 = std::ios_base::badbit | std::ios_base::eofbit;
- const iostate iostate04 = std::ios_base::badbit;
-
- // basic_ios& copyfmt(const basic_ios& rhs)
- {
- std::ios ios_01(NULL);
- std::ios ios_02(NULL);
- ios_01.exceptions(std::ios_base::eofbit);
- ios_02.exceptions(std::ios_base::eofbit);
-
- try {
- ios_01.copyfmt(ios_02);
- }
- catch(...) {
- VERIFY( false );
- }
- }
-
- {
- std::ios ios_01(NULL);
- std::ios ios_02(NULL);
- ios_01.clear(std::ios_base::eofbit);
- ios_02.exceptions(std::ios_base::eofbit);
-
- try {
- ios_01.copyfmt(ios_02);
- VERIFY( false );
- }
- catch(std::ios_base::failure& fail) {
- VERIFY( true );
- }
- catch(...) {
- VERIFY( false );
- }
- }
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/2.cc
deleted file mode 100644
index 6daa4e02c5e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/2.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.4.2 basic_ios member functions
-
-// NB: Don't include any other headers in this file.
-#include <ios>
-#include <testsuite_hooks.h>
-
-// copyfmt and locales.
-void test03()
-{
- bool test = true;
-
- using namespace std;
-
- typedef std::ios_base::fmtflags fmtflags;
- typedef std::ios_base::iostate iostate;
- locale loc_c = locale::classic();
- locale loc_de = __gnu_cxx_test::try_named_locale("de_DE");
- std::ios ios_01(NULL);
- std::ios ios_02(NULL);
- ios_01.imbue(loc_c);
- ios_02.imbue(loc_de);
- ios_02.setstate(ios_base::badbit);
- VERIFY( loc_c == ios_01.getloc() );
- VERIFY( loc_de == ios_02.getloc() );
-
- iostate ios1 = ios_01.rdstate();
- iostate ios2 = ios_02.rdstate();
- streambuf* sb1 = ios_01.rdbuf();
- streambuf* sb2 = ios_02.rdbuf();
- ios_01.copyfmt(ios_02);
-
- VERIFY( loc_de == ios_01.getloc() );
- VERIFY( ios_01.getloc() == ios_02.getloc() );
- VERIFY( ios1 == ios_01.rdstate() );
- VERIFY( ios2 == ios_02.rdstate() );
- VERIFY( sb1 == ios_01.rdbuf() );
- VERIFY( sb2 == ios_02.rdbuf() );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc
deleted file mode 100644
index f593b90259d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc
+++ /dev/null
@@ -1,88 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.4.2 basic_ios member functions
-
-// NB: Don't include any other headers in this file.
-#include <ios>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
-
- typedef std::ios_base::fmtflags fmtflags;
- typedef std::ios_base::iostate iostate;
- using std::ios_base;
-
- iostate iostate02, iostate03;
- const iostate iostate01 = std::ios_base::badbit | std::ios_base::eofbit;
- const iostate iostate04 = std::ios_base::badbit;
-
- // iostate exceptions() const
- {
- std::ios ios_01(NULL);
- VERIFY( ios_01.exceptions() == std::ios_base::goodbit );
- }
-
- // void exceptions(iostate except)
- {
- std::ios ios_01(NULL);
- try {
- ios_01.exceptions(std::ios_base::eofbit);
- }
- catch(...) {
- VERIFY( false );
- }
- iostate02 = ios_01.exceptions();
- VERIFY( static_cast<bool>(iostate02 & std::ios_base::eofbit) );
- }
-
- {
- std::ios ios_01(NULL);
- ios_01.clear(std::ios_base::eofbit);
- try {
- ios_01.exceptions(std::ios_base::eofbit);
- VERIFY( false );
- }
- catch(std::ios_base::failure& fail) {
- iostate02 = ios_01.exceptions();
- VERIFY( static_cast<bool>(iostate02 & std::ios_base::eofbit) );
- }
- catch(...) {
- VERIFY( false );
- }
- }
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/locales/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ios/locales/char/1.cc
deleted file mode 100644
index a95bd99c4dc..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ios/locales/char/1.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.4.2 basic_ios member functions
-
-// NB: Don't include any other headers in this file.
-#include <ios>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
-
- std::ios_base::fmtflags flag02, flag03;
- const std::ios_base::fmtflags flag01 = std::ios_base::skipws
- | std::ios_base::dec;
-
- const std::locale c_loc = std::locale::classic();
-
- std::ios ios_01(NULL);
- std::ios::char_type ct01;
- std::ios::char_type ct02('x');;
-
- // 27.4.2.3 locales
- ios_01.imbue(c_loc);
-
- // char narrow(char_type c, char dfault) const;
- char c1 = ios_01.narrow(ct02, 0);
- VERIFY( c1 == 'x' );
-
- // char_type widen(char c) const;
- ct01 = ios_01.widen('c');
- VERIFY( ct01 == 'c' );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_iostream/1.cc b/libstdc++-v3/testsuite/27_io/basic_iostream/1.cc
deleted file mode 100644
index dfd9c0552b8..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_iostream/1.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2002-01-08 bkoz
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.1.5 - Template class basic_iostream
-// NB: This file is for testing iostream with NO OTHER INCLUDES.
-
-// { dg-do compile }
-
-#include <istream>
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::iostream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_iostream/2.cc b/libstdc++-v3/testsuite/27_io/basic_iostream/2.cc
deleted file mode 100644
index b77ec4f79f2..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_iostream/2.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 2002-01-08 bkoz
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.1.5 - Template class basic_iostream
-// NB: This file is for testing iostream with NO OTHER INCLUDES.
-
-// { dg-do compile }
-
-#include <istream>
-
-namespace test
-{
- using namespace std;
- typedef short type_t;
- template class basic_iostream<type_t, char_traits<type_t> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_iostream/3.cc b/libstdc++-v3/testsuite/27_io/basic_iostream/3.cc
deleted file mode 100644
index 9cad3051aeb..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_iostream/3.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_iostream<gnu_char_type, gnu_char_traits> gnu_iostr;
-
- try
- {
- gnu_iostr obj(NULL);
- }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_iostream/4.cc b/libstdc++-v3/testsuite/27_io/basic_iostream/4.cc
deleted file mode 100644
index dbcf8303746..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_iostream/4.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <iostream>
-#include <sstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::iostream test_type;
- typedef std::istream base_type1;
- typedef std::ostream base_type2;
-
- std::stringbuf buf;
- const test_type& obj = test_type(&buf);
- const base_type1* base1 = &obj;
- const base_type2* base2 = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/1.cc
deleted file mode 100644
index 3338af8279b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/1.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.1.1 basic_istream
-// NB: This file is for testing istream with NO OTHER INCLUDES.
-
-#include <istream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::istream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/2.cc
deleted file mode 100644
index 40ec332923d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/2.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.1.1 basic_istream
-// NB: This file is for testing istream with NO OTHER INCLUDES.
-
-#include <istream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef short type_t;
- template class basic_istream<type_t, char_traits<type_t> >;
- template class basic_istream<pod_char, char_traits<pod_char> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/3.cc b/libstdc++-v3/testsuite/27_io/basic_istream/3.cc
deleted file mode 100644
index 1a7a04c703c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/3.cc
+++ /dev/null
@@ -1,147 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <istream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_istream<gnu_char_type, gnu_char_traits> gnu_istr;
-
- try
- { gnu_istr obj(NULL); }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/4.cc b/libstdc++-v3/testsuite/27_io/basic_istream/4.cc
deleted file mode 100644
index 4282fef84b2..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/4.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <istream>
-#include <sstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::istream test_type;
- typedef std::ios base_type;
-
- std::stringbuf buf;
- const test_type& obj = test_type(&buf);
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/exceptions/char/9561.cc b/libstdc++-v3/testsuite/27_io/basic_istream/exceptions/char/9561.cc
deleted file mode 100644
index 055c4fb02c5..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/exceptions/char/9561.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <istream>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-// libstdc++/9561
-struct foobar: std::exception { };
-
-struct buf: std::streambuf
-{
- virtual int_type underflow () {
- throw foobar ();
- return -1;
- }
- virtual int_type uflow () {
- throw foobar ();
- return -1;
- }
-};
-
-void test01()
-{
- using namespace std;
- bool test = true;
-
- buf b;
- std::istream strm (&b);
- strm.exceptions (std::ios::badbit);
- int i = 0;
-
- try {
- i = strm.get();
- }
- catch (foobar) {
- // strm should throw foobar and not do anything else
- VERIFY(strm.bad());
- }
- catch (...) {
- VERIFY(false);
- }
-
- VERIFY(i == 0);
-}
-
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc
deleted file mode 100644
index b2fdd2691e7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc
+++ /dev/null
@@ -1,134 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-// minimal sanity check
-bool test01() {
-
- bool test = true;
-
- // Integral Types:
- bool b1 = false;
- bool b2 = false;
- short s1 = 0;
- int i1 = 0;
- long l1 = 0;
- unsigned short us1 = 0;
- unsigned int ui1 = 0;
- unsigned long ul1 = 0;
-
- // Floating-point Types:
- float f1 = 0;
- double d1 = 0;
- long double ld1 = 0;
-
- // process alphanumeric versions of bool values
- std::ios_base::fmtflags fmt = is_02.flags();
- bool testfmt = fmt & std::ios_base::boolalpha;
- is_02.setf(std::ios_base::boolalpha);
- fmt = is_02.flags();
- testfmt = fmt & std::ios_base::boolalpha;
- is_02 >> b1;
- VERIFY( b1 == 1 );
- is_02 >> b1;
- VERIFY( b1 == 0 );
-
- // process numeric versions of of bool values
- is_02.unsetf(std::ios_base::boolalpha);
- fmt = is_02.flags();
- testfmt = fmt & std::ios_base::boolalpha;
- is_02 >> b1;
- VERIFY( b1 == 0 );
- is_02 >> b1;
- VERIFY( b1 == 1 );
-
- // is_03 == "-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5"
- is_03 >> l1;
- VERIFY( l1 == -19999999 );
- is_03 >> ul1;
- VERIFY( ul1 == 777777 );
- is_03 >> i1;
- VERIFY( i1 == -234234 );
- is_03 >> ui1;
- VERIFY( ui1 == 233 );
- is_03 >> s1;
- VERIFY( s1 == -234 );
- is_03 >> us1;
- VERIFY( us1 == 33 );
- is_03 >> b1;
- VERIFY( b1 == 1 );
- is_03 >> ld1;
- VERIFY( ld1 == 66300.25 );
- is_03 >> d1;
- VERIFY( d1 == .315 );
- is_03 >> f1;
- VERIFY( f1 == 1.5 );
-
- is_04 >> std::hex >> i1;
- std::printf ("%d %d %d\n", i1, i1 == 0x123, test);
- VERIFY( i1 == 0x123 );
- std::printf ("%d %d %d\n", i1, i1 == 0x123, test);
-
- // test void pointers
- int i = 55;
- void* po = &i;
- void* pi;
-
- ss_01 << po;
- ss_01 >> pi;
- std::printf ("%x %x\n", pi, po);
- VERIFY( po == pi );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return test;
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc
deleted file mode 100644
index 374fbd8e0c7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc
+++ /dev/null
@@ -1,71 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-// elaborated test for ints
-bool test02() {
-
- bool test = true;
- const std::string str_01("20000AB");
- std::stringbuf strb_01(str_01, std::ios_base::in);
- std::istream is(&strb_01);
-
- int n = 15;
- is >> n;
- VERIFY( n == 20000 );
- char c = is.peek();
- VERIFY( c == 65 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return test;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc
deleted file mode 100644
index 869d828b091..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc
+++ /dev/null
@@ -1,70 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-bool test03()
-{
- std::stringbuf sbuf;
- std::istream istr(&sbuf);
- std::ostream ostr(&sbuf);
-
- bool test = true;
- long l01;
- ostr << "12220101";
- istr >> l01; // _M_in_end set completely incorrectly here.
- VERIFY( l01 == 12220101 );
- VERIFY( istr.rdstate() == std::ios_base::eofbit );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return test;
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc
deleted file mode 100644
index de92bcd52cb..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc
+++ /dev/null
@@ -1,83 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00081.html
-// Jim Parsons
-void test06()
-{
- // default locale, grouping is turned off
- bool test = true;
- unsigned int h4, h3, h2;
- char c;
- std::string s("205,199,144");
- std::istringstream is(s);
-
- is >> h4; // 205
- VERIFY( h4 == 205 );
- is >> c; // ','
- VERIFY( c == ',' );
-
- is >> h4; // 199
- VERIFY( h4 == 199 );
- is >> c; // ','
- VERIFY( c == ',' );
-
- is >> h4; // 144
- VERIFY( is.rdstate() == std::ios_base::eofbit );
- VERIFY( h4 == 144 );
- is >> c; // EOF
- VERIFY( c == ',' );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc
deleted file mode 100644
index 118668ea1d9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc
+++ /dev/null
@@ -1,169 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-namespace std {
- class test_numpunct1 : public numpunct<char>
- {
- protected:
- string
- do_grouping() const
- { return string(1, '\003'); }
- };
-} // namespace std
-
-void test07()
-{
- // manufactured locale, grouping is turned on
- bool test = true;
- unsigned int h4 = 0, h3 = 0, h2 = 0;
- float f1 = 0.0;
- const std::string s1("205,199 23,445.25 1,024,365 123,22,24");
- std::istringstream is(s1);
- is.imbue(std::locale(std::locale(), new std::test_numpunct1));
-
- // Basic operation.
- is >> h4;
- VERIFY( h4 == 205199 );
- VERIFY( is.good() );
-
- is.clear();
- is >> f1;
- VERIFY( f1 == 23445.25 );
- VERIFY( is.good() );
-
- is.clear();
- is >> h3;
- VERIFY( h3 == 1024365 );
- VERIFY( is.good() );
-
- is.clear();
- is >> h2;
- VERIFY( h2 == 0 );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::eofbit) );
-
- // Stress tests for explicit errors in grouping corner cases. The
- // validity of these tests and results have been hammered out in
- // private email between bkoz and ncm between Jan 25 and Jan 27, 2000.
- // Thanks nate -- benjamin
- const std::string s2(",111 4,,4 0.25,345 5..25 156,, 1,000000 1000000 1234,567");
- h3 = h4 = h2 = 0;
- f1 = 0.0;
- const char c_control = '?';
- char c = c_control;
- is.clear();
- is.str(s2);
-
- is >> h4;
- VERIFY( h4 == 0 );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
- is.clear();
- is >> c;
- VERIFY( c == ',' );
- VERIFY( is.good() );
-
- is.ignore(3);
- is >> f1;
- VERIFY( f1 == 0.0 );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
- is.clear();
- is >> c;
- VERIFY( c == ',' );
- is >> c;
- VERIFY( c == '4' );
- VERIFY( is.good() );
-
- is >> f1;
- VERIFY( f1 == 0.25 );
- VERIFY( is.good() );
- is >> c;
- VERIFY( c == ',' );
- is >> h2;
- VERIFY( h2 == 345 );
- VERIFY( is.good() );
- f1 = 0.0;
- h2 = 0;
-
- is >> f1;
- VERIFY( f1 == 5.0 );
- VERIFY( is.good() );
- is >> f1;
- VERIFY( f1 == .25 );
- VERIFY( is.good() );
-
- is >> h3;
- VERIFY( h3 == 0 );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
- is.clear();
- is >> c;
- VERIFY( c == ',' ); // second one
- VERIFY( is.good() );
-
- is >> h2;
- VERIFY( h2 == 0 );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
- is.clear();
-
- is >> h2;
- VERIFY( h2 == 1000000 );
- VERIFY( is.good() );
- h2 = 0;
-
- is >> h2;
- VERIFY( h2 == 0 );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::eofbit) );
- is.clear();
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc
deleted file mode 100644
index f8491612ddf..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc
+++ /dev/null
@@ -1,93 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-namespace std {
- class test_numpunct2 : public numpunct<char>
- {
- protected:
- string
- do_grouping() const
- { return string("\002\003"); }
- };
-} // namespace std
-
-void test08()
-{
- // manufactured locale, grouping is turned on
- bool test = true;
- unsigned int h4 = 0, h3 = 0, h2 = 0;
- float f1 = 0.0;
- const std::string s1("1,22 205,19 22,123,22");
- const std::string s2("1,220 2050,19 202,123,22");
-
- std::istringstream is(s1);
- is.imbue(std::locale(std::locale(), new std::test_numpunct2));
-
- // Basic operation.
- is >> h4;
- VERIFY( h4 == 122 );
- VERIFY( is.good() );
-
- is.clear();
- is >> h3;
- VERIFY( h3 == 20519 );
- VERIFY( is.good() );
-
- is.clear();
- is >> h2;
- VERIFY( h2 == 2212322 );
- VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::eofbit) );
-
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-}
-
-int main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc
deleted file mode 100644
index 37e175e6f7c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-bool test09()
-{
- bool test = true;
-
- std::string st("2.456e3-+0.567e-2");
- std::stringbuf sb(st);
- std::istream is(&sb);
- double f1 = 0, f2 = 0;
- char c;
- (is>>std::ws) >> f1;
- (is>>std::ws) >> c;
- (is>>std::ws) >> f2;
- test = f1 == 2456;
- VERIFY( f2 == 0.00567 );
- VERIFY( c == '-' );
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return test;
-}
-
-int main()
-{
- test09();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc
deleted file mode 100644
index bc67190533f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc
+++ /dev/null
@@ -1,154 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-bool test10() {
- std::string str_01("0 00 000 +0 +0 -0");
- std::stringbuf isbuf_01(str_01);
- std::istream is_01(&isbuf_01);
-
- bool test = true;
-
- int n = 365;
- is_01 >> n;
- VERIFY( n == 0 );
- n = 364;
- is_01 >> n;
- VERIFY( n == 0 );
- n = 363;
- is_01 >> n;
- VERIFY( n == 0 );
- n = 362;
- is_01 >> n;
- VERIFY( n == 0 );
- n = 361;
- is_01 >> n;
- VERIFY( n == 0 );
- n = 360;
- is_01 >> n;
- VERIFY( n == 0 );
- VERIFY( is_01.rdstate() == std::ios_base::eofbit );
-
- std::string str_02("0x32 0X33 033 33");
- std::stringbuf isbuf_02(str_02);
- std::istream is_02(&isbuf_02);
- is_02.unsetf(std::ios_base::basefield);
- is_02 >> n;
- VERIFY( n == 50 );
- is_02 >> n;
- VERIFY( n == 51 );
- is_02 >> n;
- VERIFY( n == 27 );
- is_02 >> n;
- VERIFY( n == 33 );
- VERIFY( is_02.rdstate() == std::ios_base::eofbit );
-
- std::stringbuf isbuf_03(str_02);
- std::istream is_03(&isbuf_03);
- char c;
- int m;
-
- is_03 >> std::dec >> n >> c >> m;
- VERIFY( n == 0 );
- VERIFY( c == 'x' );
- VERIFY( m == 32 );
-
- is_03 >> std::oct >> m >> c >> n;
- VERIFY( m == 0 );
- VERIFY( c == 'X' );
- VERIFY( n == 27 );
-
- is_03 >> std::dec >> m >> n;
- VERIFY( m == 33 );
- VERIFY( n == 33 );
- VERIFY( is_03.rdstate() == std::ios_base::eofbit );
-
- std::string str_04("3. 4.5E+2a5E-3 .6E1");
- std::stringbuf isbuf_04(str_04);
- std::istream is_04(&isbuf_04);
-
- double f;
- is_04 >> f;
- VERIFY( f == 3.0 );
- is_04 >> f;
- VERIFY( f == 450.0 );
- is_04.ignore();
- is_04 >> f;
- VERIFY( f == 0.005 );
- is_04 >> f;
- VERIFY( f == 6 );
- VERIFY( is_03.rdstate() == std::ios_base::eofbit );
-
- std::string str_05("0E20 5Ea E16");
- std::stringbuf isbuf_05(str_05);
- std::istream is_05(&isbuf_05);
-
- is_05 >> f;
- VERIFY( f == 0 );
- is_05 >> f;
- VERIFY( f == 0 );
- VERIFY( is_05.rdstate() == std::ios_base::failbit );
- is_05.clear();
- is_05 >> c;
- VERIFY( c == 'a' );
- is_05 >> f;
- VERIFY( f == 0 );
- VERIFY( is_05.rdstate() == std::ios_base::failbit );
- is_05.clear();
- is_05.ignore();
- is_05 >> n;
- VERIFY( n == 16 );
-
-#ifdef DEBUG_ASSERT
- assert(test);
-#endif
-
- return test;
-}
-
-int main()
-{
- test10();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc
deleted file mode 100644
index 309875dfc54..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-// In the presence of no fmtflags, the input operator should behave
-// like strtol(x, y, 0)
-// libstdc++/90
-bool test11()
-{
- bool test = true;
- const char* cstrlit = "0x2a";
-
- // sanity check via 'C' library call
- char* err;
- long l = std::strtol(cstrlit, &err, 0);
-
- std::istringstream iss(cstrlit);
- iss.setf(std::ios::fmtflags(0), std::ios::basefield);
- int i;
- iss >> i;
-
- VERIFY (!iss.fail());
- VERIFY (l == i);
-
- return test;
-}
-
-int main()
-{
- test11();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc
deleted file mode 100644
index 4d7a7fe6825..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc
+++ /dev/null
@@ -1,91 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-// XXX This test fails on sparc-solaris2 because of a bug in libc
-// XXX sscanf for very long input. See:
-// XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html
-// { dg-do run { xfail sparc*-*-solaris2* } }
-
-#include <istream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-// libstdc++/3720
-// excess input should not cause a core dump
-template<typename T>
-bool test12_aux(bool integer_type)
-{
- bool test = true;
-
- int digits_overflow;
- if (integer_type)
- // This many digits will overflow integer types in base 10.
- digits_overflow = std::numeric_limits<T>::digits10 + 2;
- else
- // This might do it, unsure.
- digits_overflow = std::numeric_limits<T>::max_exponent10 + 1;
-
- std::string st;
- std::string part = "1234567890123456789012345678901234567890";
- for (int i = 0; i < digits_overflow / part.size() + 1; ++i)
- st += part;
- std::stringbuf sb(st);
- std::istream is(&sb);
- T t;
- is >> t;
- VERIFY(is.fail());
- return test;
-}
-
-bool test12()
-{
- bool test = true;
- VERIFY(test12_aux<short>(true));
- VERIFY(test12_aux<int>(true));
- VERIFY(test12_aux<long>(true));
- VERIFY(test12_aux<float>(false));
- VERIFY(test12_aux<double>(false));
- VERIFY(test12_aux<long double>(false));
- return test;
-}
-
-int main()
-{
- test12();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc
deleted file mode 100644
index 935d456f448..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc
+++ /dev/null
@@ -1,88 +0,0 @@
-// 1999-04-12 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.2 arithmetic extractors
-
-#include <cstdio> // for printf
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-std::string str_01;
-std::string str_02("true false 0 1 110001");
-std::string str_03("-19999999 777777 -234234 233 -234 33 1 66300.25 .315 1.5");
-std::string str_04("0123");
-
-std::stringbuf isbuf_01(std::ios_base::in);
-std::stringbuf isbuf_02(str_02, std::ios_base::in);
-std::stringbuf isbuf_03(str_03, std::ios_base::in);
-std::stringbuf isbuf_04(str_04, std::ios_base::in);
-
-std::istream is_01(NULL);
-std::istream is_02(&isbuf_02);
-std::istream is_03(&isbuf_03);
-std::istream is_04(&isbuf_04);
-std::stringstream ss_01(str_01);
-
-// libstdc++/3720 part two
-void test13()
-{
- using namespace std;
- bool test = true;
- const char* l1 = "12345678901234567890123456789012345678901234567890123456";
- const char* l2 = "1.2345678901234567890123456789012345678901234567890123456"
- " "
- "1246.9";
-
- // 1
- // used to core.
- double d;
- istringstream iss1(l2);
- iss1 >> d;
- iss1 >> d;
- VERIFY (d > 1246 && d < 1247);
-
- // 2
- // quick test for failbit on maximum length extraction.
- int i;
- int max_digits = numeric_limits<int>::digits10 + 1;
- string digits;
- for (int j = 0; j < max_digits; ++j)
- digits += '1';
- istringstream iss2(digits);
- iss2 >> i;
- VERIFY( !iss2.fail() );
-
- digits += '1';
- i = 0;
- iss2.str(digits);
- iss2.clear();
- iss2 >> i;
- VERIFY( i == 0 );
- VERIFY( iss2.fail() );
-}
-
-int main()
-{
- test13();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc
deleted file mode 100644
index 5a87fb98582..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <istream>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-struct buf: std::streambuf
-{
- virtual int_type overflow(int_type)
- { throw 0; }
-};
-
-template<typename T>
-void testthrow(T arg)
-{
- bool test = true;
- buf b;
- std::istream is(&b);
- is.exceptions(std::ios::badbit);
-
- try
- {
- is >> arg;
- }
- catch(int)
- {
- // Expected return is zero.
- VERIFY( is.bad() );
- }
- catch(...)
- {
- VERIFY( false );
- }
-}
-
-int main()
-{
- bool b = true;
- short s = -4;
- unsigned short us = 4;
- int i = -45;
- unsigned int ui = 45;
- long l = -456;
- unsigned long ul = 456;
- float f = 3.4;
- double d = 3.45;
- long double ld = 3.456;
-
- testthrow(b);
- testthrow(s);
- testthrow(us);
- testthrow(i);
- testthrow(ui);
- testthrow(l);
- testthrow(ul);
- testthrow(f);
- testthrow(d);
- testthrow(ld);
-
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/1.cc
deleted file mode 100644
index 0a235bbe819..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/1.cc
+++ /dev/null
@@ -1,109 +0,0 @@
-// 1999-07-26 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.3 character extractors
-
-#include <istream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
- std::string str_01;
- const std::string str_02("coltrane playing 'softly as a morning sunrise'");
- const std::string str_03("coltrane");
-
- std::stringbuf isbuf_01(std::ios_base::in);
- std::stringbuf isbuf_02(str_02, std::ios_base::in);
- std::istream is_01(NULL);
- std::istream is_02(&isbuf_02);
-
- std::ios_base::iostate state1, state2, statefail;
- statefail = std::ios_base::failbit;
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(istream&, _CharT*)
- int n = 20;
- char array1[n];
- typedef std::ios::traits_type ctraits_type;
- ctraits_type::int_type i1, i2;
-
- state1 = is_01.rdstate();
- i1 = ctraits_type::length(array1);
- is_01 >> array1; // should snake 0 characters, not alter stream state
- i2 = ctraits_type::length(array1);
- state2 = is_01.rdstate();
- VERIFY( i1 == i2 );
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
-
- state1 = is_02.rdstate();
- is_02 >> array1; // should snake "coltrane"
- state2 = is_02.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( !static_cast<bool>(state2 & statefail) );
- VERIFY( array1[str_03.size() - 1] == 'e' );
- array1[str_03.size()] = '\0';
- VERIFY( !str_03.compare(0, str_03.size(), array1) );
- std::istream::int_type int1 = is_02.peek(); // should be ' '
- VERIFY( int1 == ' ' );
-
- state1 = is_02.rdstate();
- is_02 >> array1; // should snake "playing" as sentry "eats" ws
- state2 = is_02.rdstate();
- int1 = is_02.peek(); // should be ' '
- VERIFY( int1 == ' ' );
- VERIFY( state1 == state2 );
- VERIFY( !static_cast<bool>(state2 & statefail) );
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(istream&, unsigned char*)
- unsigned char array2[n];
- state1 = is_02.rdstate();
- is_02 >> array2; // should snake 'softly
- state2 = is_02.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( !static_cast<bool>(state2 & statefail) );
- VERIFY( array2[0] == '\'' );
- VERIFY( array2[1] == 's' );
- VERIFY( array2[6] == 'y' );
- int1 = is_02.peek(); // should be ' '
- VERIFY( int1 == ' ' );
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(istream&, signed char*)
- signed char array3[n];
- state1 = is_02.rdstate();
- is_02 >> array3; // should snake "as"
- state2 = is_02.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( !static_cast<bool>(state2 & statefail) );
- VERIFY( array3[0] == 'a' );
- VERIFY( array3[1] == 's' );
- int1 = is_02.peek(); // should be ' '
- VERIFY( int1 == ' ' );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/2.cc
deleted file mode 100644
index d48072cd329..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/2.cc
+++ /dev/null
@@ -1,92 +0,0 @@
-// 1999-07-26 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.3 character extractors
-
-#include <istream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test02()
-{
- typedef std::ios::traits_type ctraits_type;
-
- bool test = true;
- std::string str_01;
- const std::string str_02("or coltrane playing tunji with jimmy garrison");
- const std::string str_03("coltrane");
-
- std::stringbuf isbuf_01(std::ios_base::in);
- std::stringbuf isbuf_02(str_02, std::ios_base::in);
- std::istream is_01(NULL);
- std::istream is_02(&isbuf_02);
- std::ios_base::iostate state1, state2, statefail;
- statefail = std::ios_base::failbit;
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(istream&, _CharT&)
- char c1 = 'c', c2 = 'c';
- state1 = is_01.rdstate();
- is_01 >> c1;
- state2 = is_01.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( c1 == c2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
-
- state1 = is_02.rdstate();
- is_02 >> c1;
- state2 = is_02.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( c1 == 'o' );
- is_02 >> c1;
- is_02 >> c1;
- VERIFY( c1 == 'c' );
- VERIFY( !static_cast<bool>(state2 & statefail) );
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(istream&, unsigned char&)
- unsigned char uc1 = 'c';
- state1 = is_02.rdstate();
- is_02 >> uc1;
- state2 = is_02.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( uc1 == 'o' );
- is_02 >> uc1;
- is_02 >> uc1;
- VERIFY( uc1 == 't' );
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(istream&, signed char&)
- signed char sc1 = 'c';
- state1 = is_02.rdstate();
- is_02 >> sc1;
- state2 = is_02.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( sc1 == 'r' );
- is_02 >> sc1;
- is_02 >> sc1;
- VERIFY( sc1 == 'n' );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/3.cc
deleted file mode 100644
index 1ab02a1990e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/3.cc
+++ /dev/null
@@ -1,95 +0,0 @@
-// 1999-07-26 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.3 character extractors
-
-#include <istream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
- std::string str_01;
- const std::string str_02("coltrane playing 'softly as a morning sunrise'");
- const std::string str_03("coltrane");
-
- std::stringbuf isbuf_01(std::ios_base::in);
- std::stringbuf isbuf_02(str_02, std::ios_base::in);
- std::istream is_01(NULL);
- std::istream is_02(&isbuf_02);
-
- std::ios_base::iostate state1, state2, statefail;
- statefail = std::ios_base::failbit;
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(istream&, _CharT*)
- int n = 20;
- char array1[n];
- typedef std::ios::traits_type ctraits_type;
- ctraits_type::int_type i1, i2;
-
- // testing with width() control enabled.
- is_02.width(8);
- state1 = is_02.rdstate();
- is_02 >> array1; // should snake "coltran"
- state2 = is_02.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( !ctraits_type::compare(array1, "coltran", 7) );
-
- is_02.width(1);
- state1 = is_02.rdstate();
- is_02 >> array1; // should snake nothing, set failbit
- state2 = is_02.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( state2 == statefail );
- VERIFY( array1[0] == '\0' );
-
- is_02.width(8);
- is_02.clear();
- state1 = is_02.rdstate();
- VERIFY( !state1 );
- is_02 >> array1; // should snake "e"
- state2 = is_02.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( !ctraits_type::compare(array1, "e", 1) );
-
- // testing for correct exception setting
- const std::string str_04(" impulse!!");
- std::stringbuf isbuf_03(str_04, std::ios_base::in);
- std::stringbuf isbuf_04(str_04, std::ios_base::in);
- std::istream is_03(&isbuf_03);
- std::istream is_04(&isbuf_04);
-
- is_03 >> array1;
- VERIFY( !ctraits_type::compare(array1,"impulse!!", 10) );
- VERIFY( is_03.rdstate() == std::ios_base::eofbit );
-
- is_04.width(9);
- is_04 >> array1;
- VERIFY( ! std::ios::traits_type::compare(array1,"impulse!", 9) );
- VERIFY( !is_04.rdstate() );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc
deleted file mode 100644
index ba2e8d3c5f4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <istream>
-#include <streambuf>
-//#include <testsuite_hooks.h>
-#define VERIFY(x) x
-
-struct buf: std::streambuf
-{
- virtual int_type overflow(int_type)
- { throw 0; }
-};
-
-template<typename T>
-void testthrow(T arg)
-{
- bool test = true;
- buf b;
- std::istream is(&b);
- is.exceptions(std::ios::badbit);
-
- try
- {
- is >> arg;
- }
- catch(int)
- {
- // Expected return is zero.
- VERIFY( is.bad() );
- }
- catch(...)
- {
- VERIFY( false );
- }
-}
-
-int main()
-{
- char c = 'a';
- unsigned char uc = 'a';
- signed char sc = 'a';
- char* cp = &c;
- signed char* scp = &sc;
- unsigned char* ucp = &uc;
-
- testthrow(c);
- testthrow(uc);
- testthrow(sc);
- testthrow(cp);
- testthrow(scp);
- testthrow(ucp);
-
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9826.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9826.cc
deleted file mode 100644
index 9d59395bde4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/9826.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.7.4 - Template class basic_stringstream
-// NB: This file is for testing basic_stringstream with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/9826
-void test02()
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
-
- basic_stringstream<pod_char, char_traits<pod_char> > sstr;
- // 1
- basic_string<pod_char, char_traits<pod_char> > str;
- sstr >> str;
- // 2
- pod_char* chr;
- sstr >> chr;
- // 3
- sstr >> ws;
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/1.cc
deleted file mode 100644
index c2afc80348c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/1.cc
+++ /dev/null
@@ -1,143 +0,0 @@
-// 1999-07-28 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.3 basic_istream::operator>>
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// stringbufs.
-void test01()
-{
- typedef std::ios::traits_type ctraits_type;
-
- bool test = true;
- const std::string str_01;
- const std::string str_02("art taylor kickin it on DAKAR");
- std::string strtmp;
-
- std::stringbuf isbuf_00(std::ios_base::in);
- std::stringbuf isbuf_01(std::ios_base::in | std::ios_base::out);
- std::stringbuf isbuf_02(str_01, std::ios_base::in);
- std::stringbuf isbuf_03(str_01, std::ios_base::in | std::ios_base::out);
- std::stringbuf isbuf_04(str_02, std::ios_base::in);
- std::stringbuf isbuf_05(str_02, std::ios_base::in | std::ios_base::out);
-
- std::istream is_00(NULL);
- std::istream is_01(&isbuf_01);
- std::istream is_02(&isbuf_02);
- std::istream is_03(&isbuf_03);
- std::istream is_04(&isbuf_04);
- std::istream is_05(&isbuf_05);
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(basic_streambuf*)
-
- // null istream to empty in_buf
- state1 = is_00.rdstate();
- is_00 >> &isbuf_00;
- state2 = is_00.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
- VERIFY( isbuf_00.str() == str_01 );
-
- // null istream to empty in_out_buf
- is_00.clear(std::ios_base::goodbit);
- state1 = is_00.rdstate();
- is_00 >> &isbuf_01;
- state2 = is_00.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
- VERIFY( isbuf_01.str() == str_01 );
-
- // null istream to full in_buf
- is_00.clear(std::ios_base::goodbit);
- state1 = is_00.rdstate();
- is_00 >> &isbuf_04;
- state2 = is_00.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
- VERIFY( isbuf_04.str() == str_02 );
-
- // null istream to full in_out_buf
- is_00.clear(std::ios_base::goodbit);
- state1 = is_00.rdstate();
- is_00 >> &isbuf_05;
- state2 = is_00.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
- VERIFY( isbuf_05.str() == str_02 );
-
- // empty but non-null istream to full in_buf
- state1 = is_02.rdstate();
- is_02 >> &isbuf_04;
- state2 = is_02.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
- VERIFY( isbuf_04.str() == str_02 ); // as only an "in" buffer
- VERIFY( isbuf_04.sgetc() == 'a' );
-
- // empty but non-null istream to full in_out_buf
- is_02.clear(std::ios_base::goodbit);
- state1 = is_02.rdstate();
- is_02 >> &isbuf_05;
- state2 = is_02.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
- VERIFY( isbuf_05.str() == str_02 ); // as only an "in" buffer
- VERIFY( isbuf_05.sgetc() == 'a' );
-
- // full istream to empty in_buf (need out_buf, you know?)
- state1 = is_04.rdstate();
- is_04 >> &isbuf_02;
- state2 = is_04.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
- VERIFY( isbuf_02.str() == str_01 ); // as only an "in" buffer
- VERIFY( isbuf_02.sgetc() == ctraits_type::eof() );
- VERIFY( is_04.peek() == ctraits_type::eof() ); // as failed
-
- // full istream to empty in_out_buf
- is_04.clear(std::ios_base::goodbit);
- state1 = is_04.rdstate();
- is_04 >> &isbuf_03;
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( !static_cast<bool>(state2 & statefail) );
- VERIFY( state2 != stateeof );
- strtmp = isbuf_03.str();
- VERIFY( strtmp == str_02 ); // as only an "in" buffer
- VERIFY( isbuf_03.sgetc() == 'a' );
- VERIFY( is_04.peek() == ctraits_type::eof() );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/2.cc
deleted file mode 100644
index 3492a1e1158..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/2.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-07-28 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.3 basic_istream::operator>>
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// filebufs.
-void test02()
-{
- bool test = true;
- typedef std::ios::traits_type ctraits_type;
- const char name_01[] = "istream_extractor_other-1.txt"; //read
- const char name_02[] = "istream_extractor_other-2.txt"; //write
-
- std::filebuf fbin, fbout;
- fbin.open(name_01, std::ios_base::in);
- fbout.open(name_02, std::ios_base::out | std::ios_base::trunc);
- VERIFY( fbin.is_open() );
- VERIFY( fbout.is_open() );
-
- if (test)
- {
- std::istream is(&fbin);
- is.unsetf(std::ios_base::skipws);
- is >> &fbout;
- }
-
- fbout.close();
- fbin.close();
- VERIFY( !fbin.is_open() );
- VERIFY( !fbout.is_open() );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/3.cc
deleted file mode 100644
index 9182033937d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/3.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// 1999-07-28 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.2.3 basic_istream::operator>>
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void test03()
-{
- using namespace std;
- bool test = true;
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(ios_base& (*pf) (ios_base&))
- {
- int i = 0;
- std::istringstream iss(" 43");
- iss >> std::noskipws >> i;
- std::ios::iostate i3 = iss.rdstate();
- VERIFY ( !iss ); //should set failbit
- }
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(basic_ios& (*pf) (basic_ios&))
-
- // template<_CharT, _Traits>
- // basic_istream& operator>>(basic_istream& (*pf) (basic_istream&))
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc
deleted file mode 100644
index 6251a381575..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <cstring> // for memset, memcmp
-#include <streambuf>
-#include <sstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9318
-class Outbuf : public std::streambuf
-{
-public:
- typedef std::streambuf::traits_type traits_type;
-
- std::string result() const { return str; }
-
-protected:
- virtual int_type overflow(int_type c = traits_type::eof())
- {
- if (!traits_type::eq_int_type(c, traits_type::eof()))
- str.push_back(traits_type::to_char_type(c));
- return traits_type::not_eof(c);
- }
-
-private:
- std::string str;
-};
-
-void test09()
-{
- bool test = true;
-
- std::istringstream stream("Bad Moon Rising");
- Outbuf buf;
- stream >> &buf;
-
- VERIFY( buf.result() == "Bad Moon Rising" );
-}
-
-int main()
-{
- test09();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9424-in.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9424-in.cc
deleted file mode 100644
index 3c9266b498b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9424-in.cc
+++ /dev/null
@@ -1,113 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <cstring> // for memset, memcmp
-#include <streambuf>
-#include <sstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9424
-class Outbuf_2 : public std::streambuf
-{
- char buf[1];
-
-public:
- Outbuf_2()
- {
- setp(buf, buf + 1);
- }
-
- int_type overflow(int_type c)
- {
- int_type eof = traits_type::eof();
-
- if (pptr() < epptr())
- {
- if (traits_type::eq_int_type(c, eof))
- return traits_type::not_eof(c);
-
- *pptr() = traits_type::to_char_type(c);
- pbump(1);
- return c;
- }
-
- return eof;
- }
-};
-
-class Inbuf_2 : public std::streambuf
-{
- static const char buf[];
- const char* current;
- int size;
-
-public:
- Inbuf_2()
- {
- current = buf;
- size = std::strlen(buf);
- }
-
- int_type underflow()
- {
- if (current < buf + size)
- return traits_type::to_int_type(*current);
- return traits_type::eof();
- }
-
- int_type uflow()
- {
- if (current < buf + size)
- return traits_type::to_int_type(*current++);
- return traits_type::eof();
- }
-};
-
-const char Inbuf_2::buf[] = "Atteivlis";
-
-void test11()
-{
- bool test = true;
-
- Inbuf_2 inbuf1;
- std::istream is(&inbuf1);
- Outbuf_2 outbuf1;
- is >> &outbuf1;
- VERIFY( inbuf1.sgetc() == 't' );
- VERIFY( is.good() );
-}
-
-int main()
-{
- test11();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc
deleted file mode 100644
index 50ba27c15f8..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <istream>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-struct buf: std::streambuf
-{
- virtual int_type overflow(int_type)
- { throw 0; }
-};
-
-template<typename T>
-void testthrow(T arg)
-{
- bool test = true;
- buf b;
- std::istream is(&b);
- is.exceptions(std::ios::badbit);
-
- try
- {
- is >> arg;
- }
- catch(int)
- {
- // Expected return is zero.
- VERIFY( is.bad() );
- }
- catch(...)
- {
- VERIFY( false );
- }
-}
-
-int main()
-{
- buf b;
-
- testthrow(&b);
-
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/get/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/get/char/1.cc
deleted file mode 100644
index 446b6d9c94c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/get/char/1.cc
+++ /dev/null
@@ -1,128 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void
-test03()
-{
- typedef std::char_traits<char> traits_type;
-
- bool test = true;
- const char str_lit01[] =
- " sun*ra \n\t\t\t & his arkestra, featuring john gilmore: \n"
- " "
- "jazz in silhouette: images and forecasts of tomorrow";
-
- std::string str01(str_lit01);
- std::string strtmp;
-
- std::stringbuf sbuf_03;
- std::stringbuf sbuf_04(str01, std::ios_base::in);
- std::stringbuf sbuf_05(str01, std::ios_base::in);
-
- std::istream is_00(NULL);
- std::istream is_04(&sbuf_04);
- std::istream is_05(&sbuf_05);
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
- std::streamsize count1, count2;
- char carray1[400] = "";
-
- // int_type get()
- // istream& get(char*, streamsize, char delim)
- // istream& get(char*, streamsize)
- // istream& get(streambuf&, char delim)
- // istream& get(streambuf&)
- is_00.get(carray1, 2);
- VERIFY( static_cast<bool>(is_00.rdstate() & statefail) );
- VERIFY( is_00.gcount() == 0 );
-
- is_04.get(carray1, 4);
- VERIFY( !(is_04.rdstate() & statefail) );
- VERIFY( !traits_type::compare(carray1, " ", 4) );
- VERIFY( is_04.gcount() == 3 );
-
- is_04.clear();
- is_04.get(carray1 + 3, 200);
- VERIFY( !(is_04.rdstate() & statefail) );
- VERIFY( !(is_04.rdstate() & stateeof) );
- VERIFY( !traits_type::compare(carray1, str_lit01, 10) );
- VERIFY( is_04.gcount() == 7 );
-
- is_04.clear();
- is_04.get(carray1, 200);
- VERIFY( !(is_04.rdstate() & stateeof) );
- VERIFY( static_cast<bool>(is_04.rdstate() & statefail) ); // delimiter
- VERIFY( is_04.gcount() == 0 );
- is_04.clear();
- is_04.get(carray1, 200, '[');
- VERIFY( static_cast<bool>(is_04.rdstate() & stateeof) );
- VERIFY( !(is_04.rdstate() & statefail) );
- VERIFY( is_04.gcount() == 125 );
- is_04.clear();
- is_04.get(carray1, 200);
- VERIFY( static_cast<bool>(is_04.rdstate() & stateeof) );
- VERIFY( static_cast<bool>(is_04.rdstate() & statefail) );
- VERIFY( is_04.gcount() == 0 );
-
- std::stringbuf sbuf_02(std::ios_base::in);
- is_05.clear();
- is_05.get(sbuf_02);
- VERIFY( is_05.gcount() == 0 );
- VERIFY( static_cast<bool>(is_05.rdstate() & statefail) );
- VERIFY( !(is_05.rdstate() & stateeof) );
-
- is_05.clear();
- is_05.get(sbuf_03);
- VERIFY( is_05.gcount() == 10 );
- VERIFY( sbuf_03.str() == " sun*ra " );
- VERIFY( !(is_05.rdstate() & statefail) );
- VERIFY( !(is_05.rdstate() & stateeof) );
-
- is_05.clear();
- is_05.get(sbuf_03, '|');
- VERIFY( is_05.gcount() == 125 );
- VERIFY( sbuf_03.str() == str_lit01 );
- VERIFY( !(is_05.rdstate() & statefail) );
- VERIFY( static_cast<bool>(is_05.rdstate() & stateeof) );
-
- is_05.clear();
- is_05.get(sbuf_03, '|');
- VERIFY( is_05.gcount() == 0 );
- VERIFY( static_cast<bool>(is_05.rdstate() & stateeof) );
- VERIFY( static_cast<bool>(is_05.rdstate() & statefail) );
-}
-
-int
-main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/get/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/get/char/2.cc
deleted file mode 100644
index fa351444fb4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/get/char/2.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-//libstdc++/92: Bug in istream::get(basic_streambuf*)
-// bug reported by bgarcia@laurelnetworks.com
-// http://gcc.gnu.org/ml/libstdc++-prs/2000-q3/msg00041.html
-void
-test07()
-{
- bool test = true;
- const char* tfn = "istream_unformatted-1.txt";
- std::ifstream infile;
- infile.open(tfn);
- VERIFY( !(!infile) );
- while (infile)
- {
- std::string line;
- std::ostringstream line_ss;
- while (infile.peek() == '\n')
- infile.get();
- infile.get(*(line_ss.rdbuf()));
- line = line_ss.str();
- VERIFY( line == "1234567890" || line == "" );
- }
-}
-
-int
-main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/1.cc
deleted file mode 100644
index 6df68c78460..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/1.cc
+++ /dev/null
@@ -1,125 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void
-test02()
-{
- typedef std::char_traits<char> traits_type;
-
- bool test = true;
- const char str_lit01[] = "\t\t\t sun*ra \n"
- " "
- "and his myth science arkestra present\n"
- " "
- "angles and demons @ play\n"
- " "
- "the nubians of plutonia";
- std::string str01(str_lit01);
- std::string strtmp;
-
- std::stringbuf sbuf_04(str01, std::ios_base::in);
-
- std::istream is_00(NULL);
- std::istream is_04(&sbuf_04);
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
- std::streamsize count1, count2;
- char carray1[400] = "";
-
- // istream& getline(char* s, streamsize n, char delim)
- // istream& getline(char* s, streamsize n)
- state1 = is_00.rdstate();
- is_00.getline(carray1, 20, '*');
- state2 = is_00.rdstate();
- // make sure failbit was set, since we couldn't extract
- // from the NULL streambuf...
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & statefail) );
-
- VERIFY( is_04.gcount() == 0 );
- state1 = is_04.rdstate();
- is_04.getline(carray1, 1, '\t'); // extracts, throws away
- state2 = is_04.rdstate();
- VERIFY( is_04.gcount() == 1 );
- VERIFY( state1 == state2 );
- VERIFY( state1 == 0 );
- VERIFY( !traits_type::compare("", carray1, 1) );
-
- state1 = is_04.rdstate();
- is_04.getline(carray1, 20, '*');
- state2 = is_04.rdstate();
- VERIFY( is_04.gcount() == 10 );
- VERIFY( state1 == state2 );
- VERIFY( state1 == 0 );
- VERIFY( !traits_type::compare("\t\t sun", carray1, 10) );
-
- state1 = is_04.rdstate();
- is_04.getline(carray1, 20);
- state2 = is_04.rdstate();
- VERIFY( is_04.gcount() == 4 );
- VERIFY( state1 == state2 );
- VERIFY( state1 == 0 );
- VERIFY( !traits_type::compare("ra ", carray1, 4) );
-
- state1 = is_04.rdstate();
- is_04.getline(carray1, 65);
- state2 = is_04.rdstate();
- VERIFY( is_04.gcount() == 64 );
- VERIFY( state1 != state2 );
- VERIFY( state2 == statefail );
- VERIFY( !traits_type::compare(
- " and his myth science arkestra presen",
- carray1, 65) );
-
- is_04.clear();
- state1 = is_04.rdstate();
- is_04.getline(carray1, 120, '|');
- state2 = is_04.rdstate();
- VERIFY( is_04.gcount() == 106 );
- VERIFY( state1 != state2 );
- VERIFY( state2 == stateeof );
-
- is_04.clear();
- state1 = is_04.rdstate();
- is_04.getline(carray1, 100, '|');
- state2 = is_04.rdstate();
- VERIFY( is_04.gcount() == 0 );
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & stateeof) );
- VERIFY( static_cast<bool>(state2 & statefail) );
-}
-
-int
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/2.cc
deleted file mode 100644
index 53b14a985f5..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/2.cc
+++ /dev/null
@@ -1,103 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// [patch] bits/istream.tcc - getline(char_type*,streamsize,char_type)
-// http://gcc.gnu.org/ml/libstdc++/2000-07/msg00003.html
-void
-test05()
-{
- const char* charray = "\n"
-"a\n"
-"aa\n"
-"aaa\n"
-"aaaa\n"
-"aaaaa\n"
-"aaaaaa\n"
-"aaaaaaa\n"
-"aaaaaaaa\n"
-"aaaaaaaaa\n"
-"aaaaaaaaaa\n"
-"aaaaaaaaaaa\n"
-"aaaaaaaaaaaa\n"
-"aaaaaaaaaaaaa\n"
-"aaaaaaaaaaaaaa\n";
-
- bool test = true;
- const std::streamsize it = 5;
- std::streamsize br = 0;
- char tmp[it];
- std::stringbuf sb(charray, std::ios_base::in);
- std::istream ifs(&sb);
- std::streamsize blen = std::strlen(charray);
- VERIFY(!(!ifs));
- while(ifs.getline(tmp, it) || ifs.gcount())
- {
- br += ifs.gcount();
- if(ifs.eof())
- {
- // Just sanity checks to make sure we've extracted the same
- // number of chars that were in the streambuf
- VERIFY(br == blen);
- // Also, we should only set the failbit if we could
- // _extract_ no chars from the stream, i.e. the first read
- // returned EOF.
- VERIFY(ifs.fail() && ifs.gcount() == 0);
- }
- else if(ifs.fail())
- {
- // delimiter not read
- //
- // either
- // -> extracted no characters
- // or
- // -> n - 1 characters are stored
- ifs.clear(ifs.rdstate() & ~std::ios::failbit);
- VERIFY((ifs.gcount() == 0) || (std::strlen(tmp) == it - 1));
- VERIFY(!(!ifs));
- continue;
- }
- else
- {
- // delimiter was read.
- //
- // -> strlen(__s) < n - 1
- // -> delimiter was seen -> gcount() > strlen(__s)
- VERIFY(ifs.gcount() == std::strlen(tmp) + 1);
- continue;
- }
- }
-}
-
-int
-main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/3.cc
deleted file mode 100644
index f4627ef7e29..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/3.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// [bug] istream::getline(char*,streamsize) still broken
-// http://gcc.gnu.org/ml/libstdc++/2000-07/msg00126.html
-// brent verner <brent at rcfile dot org
-void
-test06()
-{
- using namespace std;
-
- bool test = true;
- const streamsize it = 5;
- char tmp[it];
- const char* str_lit = "abcd\n";
-
- stringbuf strbuf(str_lit, std::ios_base::in);
- istream istr(&strbuf);
-
- istr.getline(tmp,it);
- VERIFY( istr.gcount() == it ); // extracted whole string
- VERIFY( strlen(tmp) == 4 ); // stored all but '\n'
- VERIFY( !istr.eof() ); // extracted up to but not eof
- VERIFY( !istr.fail() ); // failbit not set
-
- char c = 'z';
- istr.get(c);
- VERIFY( c == 'z' );
- VERIFY( istr.eof() );
-}
-
-int
-main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/1.cc
deleted file mode 100644
index cc6a9a564dc..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/1.cc
+++ /dev/null
@@ -1,84 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
- typedef std::ios::traits_type traits_type;
-
- bool test = true;
- const std::string str_01;
- const std::string str_02("soul eyes: john coltrane quartet");
- std::string strtmp;
-
- std::stringbuf isbuf_03(str_02, std::ios_base::in);
- std::stringbuf isbuf_04(str_02, std::ios_base::in);
-
- std::istream is_00(NULL);
- std::istream is_03(&isbuf_03);
- std::istream is_04(&isbuf_04);
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
- // istream& read(char_type* s, streamsize n)
- char carray[60] = "";
- is_04.read(carray, 9);
- VERIFY( is_04.peek() == ':' );
-
- // istream& ignore(streamsize n = 1, int_type delim = traits::eof())
- state1 = is_04.rdstate();
- is_04.ignore();
- VERIFY( is_04.gcount() == 1 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( is_04.peek() == ' ' );
-
- state1 = is_04.rdstate();
- is_04.ignore(0);
- VERIFY( is_04.gcount() == 0 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( is_04.peek() == ' ' );
-
- state1 = is_04.rdstate();
- is_04.ignore(5, traits_type::to_int_type(' '));
- VERIFY( is_04.gcount() == 1 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( is_04.peek() == 'j' );
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/6360.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/6360.cc
deleted file mode 100644
index 8e79620aafe..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/6360.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// 2002-04-19 PR libstdc++ 6360
-void
-test08()
-{
- using namespace std;
- bool test = true;
-
- stringstream ss("abcd" "\xFF" "1234ina donna coolbrith");
- char c;
- ss >> c;
- VERIFY( c == 'a' );
- ss.ignore(8);
- ss >> c;
- VERIFY( c == 'i' );
-}
-
-int
-main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/7220.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/7220.cc
deleted file mode 100644
index 87ac36ab659..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/7220.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/70220
-void
-test10()
-{
- using namespace std;
- bool test = true;
- typedef string string_type;
- typedef stringbuf stringbuf_type;
- typedef istream istream_type;
-
- int res = 0;
- streamsize n;
- string_type input("abcdefg\n");
- stringbuf_type sbuf(input);
- istream_type istr(&sbuf);
-
- istr.ignore(0);
- if (istr.gcount() != 0)
- test = false;
- VERIFY( test );
-
- istr.ignore(0, 'b');
- if (istr.gcount() != 0)
- test = false;
- VERIFY( test );
-
- istr.ignore(); // Advance to next position.
- istr.ignore(0, 'b');
- if ((n=istr.gcount()) != 0)
- test = false;
- VERIFY( test );
-
- if (istr.peek() != 'b')
- test = false;
- VERIFY( test );
-}
-
-int
-main()
-{
- test10();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/peek/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/peek/char/1.cc
deleted file mode 100644
index 53317ede0db..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/peek/char/1.cc
+++ /dev/null
@@ -1,98 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
- typedef std::ios::traits_type traits_type;
-
- bool test = true;
- const std::string str_01;
- const std::string str_02("soul eyes: john coltrane quartet");
- std::string strtmp;
-
- std::stringbuf isbuf_03(str_02, std::ios_base::in);
- std::stringbuf isbuf_04(str_02, std::ios_base::in);
-
- std::istream is_00(NULL);
- std::istream is_03(&isbuf_03);
- std::istream is_04(&isbuf_04);
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
- char carray[60] = "";
-
- // istream& ignore(streamsize n = 1, int_type delim = traits::eof())
- is_04.read(carray, 9);
- VERIFY( is_04.peek() == ':' );
-
- state1 = is_04.rdstate();
- is_04.ignore();
- VERIFY( is_04.gcount() == 1 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( is_04.peek() == ' ' );
-
- state1 = is_04.rdstate();
- is_04.ignore(0);
- VERIFY( is_04.gcount() == 0 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( is_04.peek() == ' ' );
-
- state1 = is_04.rdstate();
- is_04.ignore(5, traits_type::to_int_type(' '));
- VERIFY( is_04.gcount() == 1 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( is_04.peek() == 'j' );
-
- // int_type peek()
- state1 = is_04.rdstate();
- VERIFY( is_04.peek() == 'j' );
- VERIFY( is_04.gcount() == 0 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
-
- is_04.ignore(30);
- state1 = is_04.rdstate();
- VERIFY( is_04.peek() == traits_type::eof() );
- VERIFY( is_04.gcount() == 0 );
- state2 = is_04.rdstate();
- VERIFY( state1 != state2 );
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/peek/char/6414.cc b/libstdc++-v3/testsuite/27_io/basic_istream/peek/char/6414.cc
deleted file mode 100644
index 4fbd5cc8499..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/peek/char/6414.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// fstreams
-void test04(void)
-{
- bool test = true;
- std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
- const char str_lit01[] = "istream_seeks-1.txt";
- std::ifstream if01(str_lit01, std::ios_base::in | std::ios_base::out);
-
- // libstdc++/6414
- if01.seekg(0, std::ios_base::beg);
- pos01 = if01.tellg();
- if01.peek();
- pos02 = if01.tellg();
- VERIFY( pos02 == pos01 );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc
deleted file mode 100644
index 17b55d8e9a0..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/putback/char/1.cc
+++ /dev/null
@@ -1,80 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
- typedef std::ios::traits_type traits_type;
-
- bool test = true;
- const std::string str_01;
- const std::string str_02("soul eyes: john coltrane quartet");
- std::string strtmp;
-
- std::stringbuf isbuf_03(str_02, std::ios_base::in);
- std::stringbuf isbuf_04(str_02, std::ios_base::in);
-
- std::istream is_00(NULL);
- std::istream is_03(&isbuf_03);
- std::istream is_04(&isbuf_04);
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
- char carray[60] = "";
-
- // istream& putback(char c)
- is_04.ignore(30);
- is_04.clear();
- state1 = is_04.rdstate();
- is_04.putback('|');
- VERIFY( is_04.gcount() == 0 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( is_04.peek() == '|' );
-
- // istream& unget()
- is_04.clear();
- state1 = is_04.rdstate();
- is_04.unget();
- VERIFY( is_04.gcount() == 0 );
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( is_04.peek() == 'r' );
-
- // int sync()
- int i = is_00.sync();
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/read/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/read/char/1.cc
deleted file mode 100644
index e79e4a206c0..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/read/char/1.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
- typedef std::ios::traits_type traits_type;
-
- bool test = true;
- const std::string str_01;
- const std::string str_02("soul eyes: john coltrane quartet");
- std::string strtmp;
-
- std::stringbuf isbuf_03(str_02, std::ios_base::in);
- std::stringbuf isbuf_04(str_02, std::ios_base::in);
-
- std::istream is_00(NULL);
- std::istream is_03(&isbuf_03);
- std::istream is_04(&isbuf_04);
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
- // istream& read(char_type* s, streamsize n)
- char carray[60] = "";
- state1 = is_04.rdstate();
- is_04.read(carray, 0);
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
-
- state1 = is_04.rdstate();
- is_04.read(carray, 9);
- state2 = is_04.rdstate();
- VERIFY( state1 == state2 );
- VERIFY( !std::strncmp(carray, "soul eyes", 9) );
- VERIFY( is_04.peek() == ':' );
-
- state1 = is_03.rdstate();
- is_03.read(carray, 60);
- state2 = is_03.rdstate();
- VERIFY( state1 != state2 );
- VERIFY( static_cast<bool>(state2 & stateeof) );
- VERIFY( static_cast<bool>(state2 & statefail) );
- VERIFY( !std::strncmp(carray, "soul eyes: john coltrane quartet", 35) );
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/read/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/read/char/2.cc
deleted file mode 100644
index 4133e1a8588..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/read/char/2.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// Jim Parsons <parsons at clearway dot com>
-// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00177.html
-void
-test04()
-{
- bool test = true;
-
- const std::string str_00("Red_Garland_Qunitet-Soul_Junction");
- std::string strtmp;
- char c_array[str_00.size() + 4];
-
- std::stringbuf isbuf_00(str_00, std::ios_base::in);
- std::istream is_00(&isbuf_00);
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
- state1 = stateeof | statefail;
- VERIFY( is_00.gcount() == 0 );
- is_00.read(c_array, str_00.size() + 1);
- VERIFY( is_00.gcount() == str_00.size() );
- VERIFY( is_00.rdstate() == state1 );
-
- is_00.read(c_array, str_00.size());
- VERIFY( is_00.rdstate() == state1 );
-}
-
-int
-main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/read/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_istream/read/char/3.cc
deleted file mode 100644
index 3c418e943b0..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/read/char/3.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// Theodore Papadopoulo
-void
-test09()
-{
- using namespace std;
- bool test = true;
-
- istringstream iss("Juana Briones");
- char tab[13];
- iss.read(tab, 13);
- if (!iss)
- test = false;
- VERIFY( test );
-}
-
-int
-main()
-{
- test09();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-1.cc
deleted file mode 100644
index f0109b0a661..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-1.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/6746
-void test12()
-{
- using namespace std;
- bool test = true;
- streamsize sum = 0;
- istringstream iss("shamma shamma");
-
- // test01
- size_t i = iss.rdbuf()->in_avail();
- VERIFY( i != 0 );
-
- // test02
- streamsize extracted;
- do
- {
- char buf[1024];
- extracted = iss.readsome(buf, sizeof buf);
- sum += extracted;
- }
- while (iss.good() && extracted);
- VERIFY( sum != 0 );
-}
-
-int
-main()
-{
- test12();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-2.cc
deleted file mode 100644
index 6d87a2959a3..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/6746-2.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/6746
-void test13()
-{
- using namespace std;
- bool test = true;
- streamsize sum = 0;
- ifstream ifs("istream_unformatted-1.tst");
-
- // test01
- size_t i = ifs.rdbuf()->in_avail();
- VERIFY( i != 0 );
-
- // test02
- streamsize extracted;
- do
- {
- char buf[1024];
- extracted = ifs.readsome(buf, sizeof buf);
- sum += extracted;
- }
- while (ifs.good() && extracted);
- VERIFY( sum != 0 );
-}
-
-int
-main()
-{
- test13();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/8258.cc b/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/8258.cc
deleted file mode 100644
index fdb412ca125..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/readsome/char/8258.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 1999-08-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <cstring> // for strncmp,...
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/8258
-class mybuf : public std::basic_streambuf<char>
-{ };
-
-void test11()
-{
- bool test = true;
- using namespace std;
- char arr[10];
- mybuf sbuf;
- basic_istream<char, char_traits<char> > istr(&sbuf);
-
- VERIFY(istr.rdstate() == ios_base::goodbit);
- VERIFY(istr.readsome(arr, 10) == 0);
- VERIFY(istr.rdstate() == ios_base::goodbit);
-}
-
-int
-main()
-{
- test11();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc b/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc
deleted file mode 100644
index 4c4b25c57b4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc
+++ /dev/null
@@ -1,90 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char* s = " lootpack, peanut butter wolf, rob swift, madlib, quasimoto";
-const int times = 10;
-
-void write_rewind(std::iostream& stream)
-{
- for (int j = 0; j < times; j++)
- {
- bool test = true;
- std::streampos begin = stream.tellg();
-
- for (int i = 0; i < times; ++i)
- stream << j << '-' << i << s << '\n';
-
- stream.seekg(begin);
- std::streampos end = stream.tellg();
- std::streampos badpos = std::streampos(std::streambuf::off_type(-1));
- }
-}
-
-void check_contents(std::iostream& stream)
-{
- bool test = true;
-
- stream.clear();
- stream.seekg(0, std::ios::beg);
- int i = 0;
- int loop = times * times + 2;
- while (i < loop)
- {
- stream.ignore(80, '\n');
- if (stream.good())
- ++i;
- else
- break;
- }
- VERIFY( i == times );
-}
-
-// fstream
-// libstdc++/2346
-void test02()
-{
- std::fstream ofstrm;
- ofstrm.open("istream_seeks-3.txt", std::ios::out);
- if (!ofstrm)
- std::abort();
- write_rewind(ofstrm);
- ofstrm.close();
-
- std::fstream ifstrm;
- ifstrm.open("istream_seeks-3.txt", std::ios::in);
- check_contents(ifstrm);
- ifstrm.close();
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc b/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc
deleted file mode 100644
index ab35ddba34f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc
+++ /dev/null
@@ -1,83 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char* s = " lootpack, peanut butter wolf, rob swift, madlib, quasimoto";
-const int times = 10;
-
-void write_rewind(std::iostream& stream)
-{
- for (int j = 0; j < times; j++)
- {
- bool test = true;
- std::streampos begin = stream.tellg();
-
- for (int i = 0; i < times; ++i)
- stream << j << '-' << i << s << '\n';
-
- stream.seekg(begin);
- std::streampos end = stream.tellg();
- std::streampos badpos = std::streampos(std::streambuf::off_type(-1));
- }
-}
-
-void check_contents(std::iostream& stream)
-{
- bool test = true;
-
- stream.clear();
- stream.seekg(0, std::ios::beg);
- int i = 0;
- int loop = times * times + 2;
- while (i < loop)
- {
- stream.ignore(80, '\n');
- if (stream.good())
- ++i;
- else
- break;
- }
- VERIFY( i == times );
-}
-
-// stringstream
-// libstdc++/2346
-void test03()
-{
- std::stringstream sstrm;
-
- write_rewind(sstrm);
- check_contents(sstrm);
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-1.cc
deleted file mode 100644
index 823e237930a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-1.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/8348
-void test06(void)
-{
- using namespace std;
- bool test = true;
- string num1("555");
-
- // seekg
- {
- istringstream iss(num1);
- istream::pos_type pos1 = iss.tellg();
- int asNum = 0;
- iss >> asNum;
- VERIFY( test = iss.eof() );
- VERIFY( test = !iss.fail() );
- iss.seekg(pos1);
- VERIFY( test = !iss.fail() );
- }
-}
-
-int main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-2.cc
deleted file mode 100644
index aeed5325134..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-2.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/8348
-void test06(void)
-{
- using namespace std;
- bool test = true;
- string num1("555");
-
- // seekg
- {
- istringstream iss(num1);
- istream::pos_type pos1 = iss.tellg();
- int asNum = 0;
- iss >> asNum;
- VERIFY( test = iss.eof() );
- VERIFY( test = !iss.fail() );
- iss.seekg(0, ios_base::beg);
- VERIFY( test = !iss.fail() );
- }
-}
-
-int main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/fstream.cc b/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/fstream.cc
deleted file mode 100644
index 27dca74fa5d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/fstream.cc
+++ /dev/null
@@ -1,127 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// fstreams
-void test04(void)
-{
- typedef std::istream::off_type off_type;
-
- bool test = true;
- std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
- std::ios_base::iostate state01, state02;
- const char str_lit01[] = "istream_seeks-1.txt";
- const char str_lit02[] = "istream_seeks-2.txt";
- std::ifstream if01(str_lit01, std::ios_base::in | std::ios_base::out);
- std::ifstream if02(str_lit01, std::ios_base::in);
- std::ifstream if03(str_lit02, std::ios_base::out | std::ios_base::trunc);
- VERIFY( if01.good() );
- VERIFY( if02.good() );
- VERIFY( if03.good() );
-
- std::istream is01(if01.rdbuf());
- std::istream is02(if02.rdbuf());
- std::istream is03(if03.rdbuf());
-
- pos01 = is01.tellg();
- pos02 = is01.tellg();
- pos03 = is02.tellg();
- pos04 = is02.tellg();
- pos05 = is03.tellg();
- pos06 = is03.tellg();
-
- // istream& seekg(pos_type)
- // istream& seekg(off_type, ios_base::seekdir)
-
- // cur
- // NB: see library issues list 136. It's the v-3 interp that seekg
- // only sets the input buffer, or else istreams with buffers that
- // have _M_mode == ios_base::out will fail to have consistency
- // between seekg and tellg.
- state01 = is01.rdstate();
- is01.seekg(10, std::ios_base::cur);
- state02 = is01.rdstate();
- pos01 = is01.tellg();
- VERIFY( pos01 == pos02 + off_type(10) );
- VERIFY( state01 == state02 );
- pos02 = is01.tellg();
- VERIFY( pos02 == pos01 );
-
- state01 = is02.rdstate();
- is02.seekg(10, std::ios_base::cur);
- state02 = is02.rdstate();
- pos03 = is02.tellg();
- VERIFY( pos03 == pos04 + off_type(10) );
- VERIFY( state01 == state02 );
- pos04 = is02.tellg();
- VERIFY( pos03 == pos04 );
-
- state01 = is03.rdstate();
- is03.seekg(10, std::ios_base::cur);
- state02 = is03.rdstate();
- pos05 = is03.tellg();
- VERIFY( pos05 == pos06 + off_type(10) );
- VERIFY( state01 == state02 );
- pos06 = is03.tellg();
- VERIFY( pos05 == pos06 );
-
- // beg
- state01 = is01.rdstate();
- is01.seekg(20, std::ios_base::beg);
- state02 = is01.rdstate();
- pos01 = is01.tellg();
- VERIFY( pos01 == pos02 + off_type(10) );
- VERIFY( state01 == state02 );
- pos02 = is01.tellg();
- VERIFY( pos02 == pos01 );
-
- state01 = is02.rdstate();
- is02.seekg(20, std::ios_base::beg);
- state02 = is02.rdstate();
- pos03 = is02.tellg();
- VERIFY( pos03 == pos04 + off_type(10) );
- VERIFY( state01 == state02 );
- pos04 = is02.tellg();
- VERIFY( pos03 == pos04 );
-
- state01 = is03.rdstate();
- is03.seekg(20, std::ios_base::beg);
- state02 = is03.rdstate();
- pos05 = is03.tellg();
- VERIFY( pos05 == pos06 + off_type(10) );
- VERIFY( state01 == state02 );
- pos06 = is03.tellg();
- VERIFY( pos05 == pos06 );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/sstream.cc b/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/sstream.cc
deleted file mode 100644
index cf1455fa0d4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/sstream.cc
+++ /dev/null
@@ -1,135 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// stringstreams
-void test05(void)
-{
- typedef std::istream::off_type off_type;
-
- bool test = true;
- std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
- std::ios_base::iostate state01, state02;
- const char str_lit01[] = "istream_seeks-1.tst";
- std::ifstream if01(str_lit01);
- std::ifstream if02(str_lit01);
- std::ifstream if03(str_lit01);
- VERIFY( if01.good() );
- VERIFY( if02.good() );
- VERIFY( if03.good() );
-
- std::stringbuf strbuf01(std::ios_base::in | std::ios_base::out);
- if01 >> &strbuf01;
- // initialize stringbufs that are ios_base::out
- std::stringbuf strbuf03(strbuf01.str(), std::ios_base::out);
- // initialize stringbufs that are ios_base::in
- std::stringbuf strbuf02(strbuf01.str(), std::ios_base::in);
-
- std::istream is01(&strbuf01);
- std::istream is02(&strbuf02);
- std::istream is03(&strbuf03);
-
- // pos_type tellg()
- // in | out
- pos01 = is01.tellg();
- pos02 = is01.tellg();
- pos03 = is02.tellg();
- pos04 = is02.tellg();
- pos05 = is03.tellg();
- pos06 = is03.tellg();
-
- // istream& seekg(pos_type)
- // istream& seekg(off_type, ios_base::seekdir)
-
- // cur
- // NB: see library issues list 136. It's the v-3 interp that seekg
- // only sets the input buffer, or else istreams with buffers that
- // have _M_mode == ios_base::out will fail to have consistency
- // between seekg and tellg.
- state01 = is01.rdstate();
- is01.seekg(10, std::ios_base::cur);
- state02 = is01.rdstate();
- pos01 = is01.tellg();
- VERIFY( pos01 == pos02 + off_type(10) );
- VERIFY( state01 == state02 );
- pos02 = is01.tellg();
- VERIFY( pos02 == pos01 );
-
- state01 = is02.rdstate();
- is02.seekg(10, std::ios_base::cur);
- state02 = is02.rdstate();
- pos03 = is02.tellg();
- VERIFY( pos03 == pos04 + off_type(10) );
- VERIFY( state01 == state02 );
- pos04 = is02.tellg();
- VERIFY( pos03 == pos04 );
-
- state01 = is03.rdstate();
- is03.seekg(10, std::ios_base::cur);
- state02 = is03.rdstate();
- pos05 = is03.tellg();
- VERIFY( pos05 == pos06 ); // as only out buffer
- VERIFY( state01 != state02 );
- pos06 = is03.tellg();
- VERIFY( pos05 == pos06 );
-
- // beg
- state01 = is01.rdstate();
- is01.seekg(20, std::ios_base::beg);
- state02 = is01.rdstate();
- pos01 = is01.tellg();
- VERIFY( pos01 == pos02 + off_type(10) );
- VERIFY( state01 == state02 );
- pos02 = is01.tellg();
- VERIFY( pos02 == pos01 );
-
- state01 = is02.rdstate();
- is02.seekg(20, std::ios_base::beg);
- state02 = is02.rdstate();
- pos03 = is02.tellg();
- VERIFY( pos03 == pos04 + off_type(10) );
- VERIFY( state01 == state02 );
- pos04 = is02.tellg();
- VERIFY( pos03 == pos04 );
-
- state01 = is03.rdstate();
- is03.seekg(20, std::ios_base::beg);
- state02 = is03.rdstate();
- pos05 = is03.tellg();
- VERIFY( pos05 == pos06 ); // as only out buffer
- VERIFY( state01 == state02 );
- pos06 = is03.tellg();
- VERIFY( pos05 == pos06 );
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/1.cc
deleted file mode 100644
index 1bc58ad20e7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/1.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// 1999-10-14 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.1.1.2 class basic_istream::sentry
-
-#include <istream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
- const char* lit01 = "stereolab on the bolsinga tip";
- const std::string str01(lit01);
-
- std::stringbuf strbuf01;
- std::stringbuf strbuf02(str01);
- std::istream istr01(&strbuf01);
- std::istream istr02(&strbuf02);
-
- // test negatives
- std::istream::sentry sentry01(istr01);
- VERIFY( bool(sentry01) == false );
-
- std::istream::sentry sentry02(istr01, true);
- VERIFY( bool(sentry02) == false );
-
- // positive tests
- std::istream::sentry sentry03(istr02);
- VERIFY( bool(sentry03) == true );
-
- std::istream::sentry sentry04(istr02, true);
- VERIFY( bool(sentry04) == true );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/2.cc
deleted file mode 100644
index 1e42d18ed83..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/2.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// 1999-10-14 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.1.1.2 class basic_istream::sentry
-
-#include <istream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/944
-void
-test02()
-{
- using namespace std;
- istringstream in("80.21 56.89 12.3");
- bool test = true;
- int i = 0;
- double x;
-
- // ios_base::eof == 2
- while (in >> x)
- {
- ++i;
- if (i > 3)
- break;
- }
- VERIFY( i == 3 );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3.cc
deleted file mode 100644
index 9f9e06a03d1..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 1999-10-14 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.1.1.2 class basic_istream::sentry
-
-#include <istream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9562
-void
-test03()
-{
- bool test = true;
-
- std::stringbuf strbuf01;
- std::istream strm1(&strbuf01);
- const std::istream::sentry sentry1(strm1);
-
- VERIFY( bool(sentry1) == false );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
deleted file mode 100644
index 465e67aeb72..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
+++ /dev/null
@@ -1,193 +0,0 @@
-// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.2.1.6 class ios_base::init
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// char_traits specialization
-namespace std
-{
- template<>
- struct char_traits<unsigned char>
- {
- typedef unsigned char char_type;
- // Unsigned as wint_t in unsigned.
- typedef unsigned long int_type;
- typedef streampos pos_type;
- typedef streamoff off_type;
- typedef mbstate_t state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2)
- { __c1 = __c2; }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2)
- { return __c1 == __c2; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2)
- { return __c1 < __c2; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- {
- for (size_t __i = 0; __i < __n; ++__i)
- if (!eq(__s1[__i], __s2[__i]))
- return lt(__s1[__i], __s2[__i]) ? -1 : 1;
- return 0;
- }
-
- static size_t
- length(const char_type* __s)
- {
- const char_type* __p = __s;
- while (__p && *__p)
- ++__p;
- return (__p - __s);
- }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- {
- for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p)
- if (*__p == __a) return __p;
- return 0;
- }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- {
- for (char_type* __p = __s; __p < __s + __n; ++__p)
- assign(*__p, __a);
- return __s;
- }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c) { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return __c1 == __c2; }
-
- static int_type
- eof() { return static_cast<int_type>(-1); }
-
- static int_type
- not_eof(const int_type& __c)
- { return eq_int_type(__c, eof()) ? int_type(0) : __c; }
- };
-} // namespace std
-
-// libstdc++/3983
-// Sentry uses locale info, so have to try one formatted input/output.
-void test03()
-{
- using namespace std;
- bool test = true;
-
- // input streams
- basic_ifstream<unsigned char> ifs_uc;
- unsigned char arr[6] = { 'a', 'b', 'c', 'd', 'e' };
-
- try
- {
- int i;
- ifs_uc >> i;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- try
- {
- ifs_uc >> arr;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- try
- {
- ifs_uc >> ws;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- try
- {
- basic_string<unsigned char> s_uc(arr);
- ifs_uc >> s_uc;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- VERIFY( test );
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_string<unsigned char>::size_type
- std::basic_string<unsigned char>::_Rep::_S_max_size;
-
-template
- unsigned char
- std::basic_string<unsigned char>::_Rep::_S_terminal;
-
-template
- std::basic_streambuf<unsigned char>::int_type
- std::basic_streambuf<unsigned char>::_S_pback_size;
-#endif
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc
deleted file mode 100644
index 6f51df5850d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc
+++ /dev/null
@@ -1,189 +0,0 @@
-// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.2.1.6 class ios_base::init
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// char_traits specialization
-namespace std
-{
- template<>
- struct char_traits<unsigned char>
- {
- typedef unsigned char char_type;
- // Unsigned as wint_t in unsigned.
- typedef unsigned long int_type;
- typedef streampos pos_type;
- typedef streamoff off_type;
- typedef mbstate_t state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2)
- { __c1 = __c2; }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2)
- { return __c1 == __c2; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2)
- { return __c1 < __c2; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- {
- for (size_t __i = 0; __i < __n; ++__i)
- if (!eq(__s1[__i], __s2[__i]))
- return lt(__s1[__i], __s2[__i]) ? -1 : 1;
- return 0;
- }
-
- static size_t
- length(const char_type* __s)
- {
- const char_type* __p = __s;
- while (__p && *__p)
- ++__p;
- return (__p - __s);
- }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- {
- for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p)
- if (*__p == __a) return __p;
- return 0;
- }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- {
- for (char_type* __p = __s; __p < __s + __n; ++__p)
- assign(*__p, __a);
- return __s;
- }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c) { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return __c1 == __c2; }
-
- static int_type
- eof() { return static_cast<int_type>(-1); }
-
- static int_type
- not_eof(const int_type& __c)
- { return eq_int_type(__c, eof()) ? int_type(0) : __c; }
- };
-} // namespace std
-
-// libstdc++/3983
-// Sentry uses locale info, so have to try one formatted input/output.
-void test03()
-{
- using namespace std;
- bool test = true;
-
- // input streams
- basic_istringstream<unsigned char> iss_uc;
- unsigned char arr[6] = { 'a', 'b', 'c', 'd', 'e' };
-
- try
- {
- int i;
- iss_uc >> i;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- try
- {
- iss_uc >> arr;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- try
- {
- iss_uc >> ws;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- try
- {
- basic_string<unsigned char> s_uc(arr);
- iss_uc >> s_uc;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- VERIFY( test );
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_string<unsigned char>::size_type
- std::basic_string<unsigned char>::_Rep::_S_max_size;
-
-template
- unsigned char
- std::basic_string<unsigned char>::_Rep::_S_terminal;
-#endif
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/1.cc
deleted file mode 100644
index 6ec4d69f3fc..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/1.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- using namespace std;
- typedef ios::pos_type pos_type;
-
- bool test = true;
- const char str_lit01[] = "istream_seeks-1.tst";
-
- // in
- // test default ctors leave things in the same positions...
- istringstream ist1;
- pos_type p3 = ist1.tellg();
-
- ifstream ifs1;
- pos_type p4 = ifs1.tellg();
-
- VERIFY( p3 == p4 );
-
- // in
- // test ctors leave things in the same positions...
- istringstream ist2("bob_marley:kaya");
- p3 = ist2.tellg();
-
- ifstream ifs2(str_lit01);
- p4 = ifs2.tellg();
-
- VERIFY( p3 == p4 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/8348.cc b/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/8348.cc
deleted file mode 100644
index 771d25bfe9a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/8348.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/8348
-void test06(void)
-{
- using namespace std;
- bool test = true;
- string num1("555");
-
- // tellg
- {
- istringstream iss(num1);
- istream::pos_type pos1 = iss.tellg();
- int asNum = 0;
- iss >> asNum;
- VERIFY( test = iss.eof() );
- VERIFY( test = !iss.fail() );
- iss.tellg();
- VERIFY( test = !iss.fail() );
- }
-
- // seekg
- {
- istringstream iss(num1);
- istream::pos_type pos1 = iss.tellg();
- int asNum = 0;
- iss >> asNum;
- VERIFY( test = iss.eof() );
- VERIFY( test = !iss.fail() );
- iss.seekg(0, ios_base::beg);
- VERIFY( test = !iss.fail() );
- }
-
- // seekg
- {
- istringstream iss(num1);
- istream::pos_type pos1 = iss.tellg();
- int asNum = 0;
- iss >> asNum;
- VERIFY( test = iss.eof() );
- VERIFY( test = !iss.fail() );
- iss.seekg(pos1);
- VERIFY( test = !iss.fail() );
- }
-}
-
-int main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/fstream.cc b/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/fstream.cc
deleted file mode 100644
index d9d2f02dbb9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/fstream.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// fstreams
-void test04(void)
-{
- typedef std::istream::off_type off_type;
-
- bool test = true;
- std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
- std::ios_base::iostate state01, state02;
- const char str_lit01[] = "istream_seeks-1.txt";
- const char str_lit02[] = "istream_seeks-2.txt";
- std::ifstream if01(str_lit01, std::ios_base::in | std::ios_base::out);
- std::ifstream if02(str_lit01, std::ios_base::in);
- std::ifstream if03(str_lit02, std::ios_base::out | std::ios_base::trunc);
- VERIFY( if01.good() );
- VERIFY( if02.good() );
- VERIFY( if03.good() );
-
- std::istream is01(if01.rdbuf());
- std::istream is02(if02.rdbuf());
- std::istream is03(if03.rdbuf());
-
- // pos_type tellg()
- // in | out
- pos01 = is01.tellg();
- pos02 = is01.tellg();
- VERIFY( pos01 == pos02 );
-
- // in
- pos03 = is02.tellg();
- pos04 = is02.tellg();
- VERIFY( pos03 == pos04 );
-
- // out
- pos05 = is03.tellg();
- pos06 = is03.tellg();
- VERIFY( pos05 == pos06 );
-
- // cur
- // NB: see library issues list 136. It's the v-3 interp that seekg
- // only sets the input buffer, or else istreams with buffers that
- // have _M_mode == ios_base::out will fail to have consistency
- // between seekg and tellg.
- state01 = is01.rdstate();
- is01.seekg(10, std::ios_base::cur);
- state02 = is01.rdstate();
- pos01 = is01.tellg();
- VERIFY( pos01 == pos02 + off_type(10) );
- VERIFY( state01 == state02 );
- pos02 = is01.tellg();
- VERIFY( pos02 == pos01 );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/sstream.cc b/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/sstream.cc
deleted file mode 100644
index abc99f8bd6b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/sstream.cc
+++ /dev/null
@@ -1,93 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.3 unformatted input functions
-// NB: ostream has a particular "seeks" category. Adopt this for istreams too.
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <istream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// stringstreams
-void test05(void)
-{
- typedef std::istream::off_type off_type;
-
- bool test = true;
- std::istream::pos_type pos01, pos02, pos03, pos04, pos05, pos06;
- std::ios_base::iostate state01, state02;
- const char str_lit01[] = "istream_seeks-1.tst";
- std::ifstream if01(str_lit01);
- std::ifstream if02(str_lit01);
- std::ifstream if03(str_lit01);
- VERIFY( if01.good() );
- VERIFY( if02.good() );
- VERIFY( if03.good() );
-
- std::stringbuf strbuf01(std::ios_base::in | std::ios_base::out);
- if01 >> &strbuf01;
- // initialize stringbufs that are ios_base::out
- std::stringbuf strbuf03(strbuf01.str(), std::ios_base::out);
- // initialize stringbufs that are ios_base::in
- std::stringbuf strbuf02(strbuf01.str(), std::ios_base::in);
-
- std::istream is01(&strbuf01);
- std::istream is02(&strbuf02);
- std::istream is03(&strbuf03);
-
- // pos_type tellg()
- // in | out
- pos01 = is01.tellg();
- pos02 = is01.tellg();
- VERIFY( pos01 == pos02 );
-
- // in
- pos03 = is02.tellg();
- pos04 = is02.tellg();
- VERIFY( pos03 == pos04 );
-
- // out
- pos05 = is03.tellg();
- pos06 = is03.tellg();
- VERIFY( pos05 == pos06 );
-
- // cur
- // NB: see library issues list 136. It's the v-3 interp that seekg
- // only sets the input buffer, or else istreams with buffers that
- // have _M_mode == ios_base::out will fail to have consistency
- // between seekg and tellg.
- state01 = is01.rdstate();
- is01.seekg(10, std::ios_base::cur);
- state02 = is01.rdstate();
- pos01 = is01.tellg();
- VERIFY( pos01 == pos02 + off_type(10) );
- VERIFY( state01 == state02 );
- pos02 = is01.tellg();
- VERIFY( pos02 == pos01 );
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ws/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ws/char/1.cc
deleted file mode 100644
index 3761e948617..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istream/ws/char/1.cc
+++ /dev/null
@@ -1,81 +0,0 @@
-// 1999-07-22 bkoz
-
-// Copyright (C) 1994, 1999, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.1.4 standard basic_istream manipulators
-
-#include <istream>
-#include <sstream>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-void test01(void)
-{
- bool test = true;
-
- const char str_lit01[] = " venice ";
- const std::string str01(" santa barbara ");
- std::string str02(str_lit01);
- std::string str04;
- std::string str05;
- std::ios_base::iostate flag1, flag2, flag3, flag4, flag5;
-
- // template<_CharT, _Traits>
- // basic_istream<_CharT, _Traits>& ws(basic_istream<_Char, _Traits>& is)
- std::istringstream iss01(str01);
- std::istringstream iss02(str01);
-
- iss01 >> str04;
- VERIFY( str04.size() != str01.size() );
- VERIFY( str04 == "santa" );
-
- iss02 >> std::ws;
- iss02 >> str05;
- VERIFY( str05.size() != str01.size() );
- VERIFY( str05 == "santa" );
- VERIFY( str05 == str04 );
-
- iss01 >> str04;
- VERIFY( str04.size() != str01.size() );
- VERIFY( str04 == "barbara" );
-
- iss02 >> std::ws;
- iss02 >> str05;
- VERIFY( str05.size() != str01.size() );
- VERIFY( str05 == "barbara" );
- VERIFY( str05 == str04 );
-
- flag3 = std::ios_base::eofbit;
- flag4 = std::ios_base::badbit;
- flag5 = std::ios_base::failbit;
- VERIFY( !iss01.fail() );
- VERIFY( !iss02.fail() );
- VERIFY( !iss01.eof() );
- VERIFY( !iss02.eof() );
-
- iss01 >> std::ws;
- VERIFY( !iss01.fail() );
- VERIFY( iss01.eof() );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istringstream/1.cc b/libstdc++-v3/testsuite/27_io/basic_istringstream/1.cc
deleted file mode 100644
index f8b76ee3e31..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istringstream/1.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.7.2 - Template class basic_istringstream
-// NB: This file is for testing basic_istringstream with NO OTHER INCLUDES.
-
-#include <sstream>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::istringstream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_istringstream/2.cc b/libstdc++-v3/testsuite/27_io/basic_istringstream/2.cc
deleted file mode 100644
index becb4c8a81f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istringstream/2.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.7.2 - Template class basic_istringstream
-// NB: This file is for testing basic_istringstream with NO OTHER INCLUDES.
-
-#include <sstream>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- typedef short type_t;
- template class basic_istringstream<type_t, char_traits<type_t> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_istringstream/3.cc b/libstdc++-v3/testsuite/27_io/basic_istringstream/3.cc
deleted file mode 100644
index 9b5354531ca..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istringstream/3.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_istringstream<gnu_char_type, gnu_char_traits> gnu_isstr;
-
- try
- {
- gnu_isstr obj;
- }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_istringstream/4.cc b/libstdc++-v3/testsuite/27_io/basic_istringstream/4.cc
deleted file mode 100644
index 764dd1404f4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istringstream/4.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <istream>
-#include <sstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::istringstream test_type;
- typedef std::istream base_type;
- const test_type& obj = test_type();
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc b/libstdc++-v3/testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc
deleted file mode 100644
index 59b601eef03..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-// 2000-01-10 bkoz
-
-// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.2.2 member functions (istringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void
-redirect_buffer(std::ios& stream, std::streambuf* new_buf)
-{ stream.rdbuf(new_buf); }
-
-std::streambuf*
-active_buffer(std::ios& stream)
-{ return stream.rdbuf(); }
-
-// libstdc++/2832
-void test02()
-{
- bool test = true;
- const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
- const std::string str00;
- const std::string str01(strlit01);
- std::string str02;
- std::stringbuf sbuf(str01);
- std::streambuf* pbasebuf0 = &sbuf;
-
- std::istringstream sstrm1;
- VERIFY( sstrm1.str() == str00 );
- // derived rdbuf() always returns original streambuf, even though
- // it's no longer associated with the stream.
- std::stringbuf* const buf1 = sstrm1.rdbuf();
- // base rdbuf() returns the currently associated streambuf
- std::streambuf* pbasebuf1 = active_buffer(sstrm1);
- redirect_buffer(sstrm1, &sbuf);
- std::stringbuf* const buf2 = sstrm1.rdbuf();
- std::streambuf* pbasebuf2 = active_buffer(sstrm1);
- VERIFY( buf1 == buf2 );
- VERIFY( pbasebuf1 != pbasebuf2 );
- VERIFY( pbasebuf2 == pbasebuf0 );
-
- // derived rdbuf() returns the original buf, so str() doesn't change.
- VERIFY( sstrm1.str() != str01 );
- VERIFY( sstrm1.str() == str00 );
- // however, casting the active streambuf to a stringbuf shows what's up:
- std::stringbuf* psbuf = dynamic_cast<std::stringbuf*>(pbasebuf2);
- str02 = psbuf->str();
- VERIFY( str02 == str01 );
-
- // How confusing and non-intuitive is this?
- // These semantics are a joke, a serious defect, and incredibly lame.
-}
-
-int main()
-{
- test02();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_istringstream/str/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_istringstream/str/char/1.cc
deleted file mode 100644
index 32acd5b183c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_istringstream/str/char/1.cc
+++ /dev/null
@@ -1,80 +0,0 @@
-// 2000-01-10 bkoz
-
-// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.2.2 member functions (istringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
- std::istringstream is01;
- const std::string str00;
- const std::string str01 = "123";
- std::string str02;
- const int i01 = 123;
- int a,b;
-
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
- // string str() const
- str02 = is01.str();
- VERIFY( str00 == str02 );
-
- // void str(const basic_string&)
- is01.str(str01);
- str02 = is01.str();
- VERIFY( str01 == str02 );
- state1 = is01.rdstate();
- is01 >> a;
- state2 = is01.rdstate();
- VERIFY( a = i01 );
- // 22.2.2.1.2 num_get virtual functions
- // p 13
- // in any case, if stage 2 processing was terminated by the test for
- // in == end then err != ios_base::eofbit is performed.
- VERIFY( state1 != state2 );
- VERIFY( state2 == stateeof );
-
- is01.str(str01);
- is01 >> b;
- VERIFY( b != a );
- // as is01.good() is false, istream::sentry blocks extraction.
-
- is01.clear();
- state1 = is01.rdstate();
- is01 >> b;
- state2 = is01.rdstate();
- VERIFY( b == a );
- VERIFY( state1 != state2 );
- VERIFY( state2 == stateeof );
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/1.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/1.cc
deleted file mode 100644
index 497e4671b50..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/1.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.8.1.8 - Template class basic_ofstream
-// NB: This file is for testing basic_ofstream with NO OTHER INCLUDES.
-
-#include <fstream>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::ifstream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/2.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/2.cc
deleted file mode 100644
index b13948945a6..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/2.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.8.1.8 - Template class basic_ofstream
-// NB: This file is for testing basic_ofstream with NO OTHER INCLUDES.
-
-#include <fstream>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- typedef short type_t;
- template class basic_ifstream<type_t, char_traits<type_t> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/3.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/3.cc
deleted file mode 100644
index 0b2d7c979e3..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/3.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_ofstream<gnu_char_type, gnu_char_traits> gnu_ofstr;
-
- try
- {
- gnu_ofstr obj;
- }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/4.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/4.cc
deleted file mode 100644
index 9d58396d193..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/4.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <ostream>
-#include <fstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::ofstream test_type;
- typedef std::ostream base_type;
- const test_type& obj = test_type();
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/cons/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/cons/char/2.cc
deleted file mode 100644
index 14e217ec9c0..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/cons/char/2.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.10 ofstream member functions
-// @require@ %-*.tst
-// @diff@ %-*.tst %-*.txt
-
-#include <ostream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_02[] = "ofstream_members-1.txt";
-
-// http://gcc.gnu.org/ml/libstdc++/2000-07/msg00004.html
-void test02()
-{
- bool test = true;
- const int more_than_max_open_files = 8200;
-
- for(int i = 0; ++i < more_than_max_open_files;)
- {
- std::ofstream ifs(name_02);
- VERIFY( static_cast<bool>(ifs) );
- }
-}
-
-int main()
-{
- test02();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/1.cc
deleted file mode 100644
index f97eec10454..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/1.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.10 ofstream member functions
-// @require@ %-*.tst
-// @diff@ %-*.tst %-*.txt
-
-#include <ostream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "ofstream_members-1.tst";
-const char name_02[] = "ofstream_members-1.txt";
-
-// http://gcc.gnu.org/ml/libstdc++/2000-06/msg00136.html
-void test01()
-{
- bool test = true;
- std::ofstream ofs1;
- ofs1.close();
-
- // false as expected:
- VERIFY( !ofs1.is_open() );
- // this is now true:
- VERIFY( !(ofs1) );
-
- ofs1.open(name_02);
- VERIFY( ofs1.is_open() );
- // fail bit still true
- VERIFY( !(ofs1) );
- VERIFY( ofs1.rdstate() == std::ios_base::failbit );
-
- ofs1.close();
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/rdbuf/char/2832.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/rdbuf/char/2832.cc
deleted file mode 100644
index 7e897efdfaf..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/rdbuf/char/2832.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.10 ofstream member functions
-// @require@ %-*.tst
-// @diff@ %-*.tst %-*.txt
-
-#include <ostream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const char name_01[] = "ofstream_members-1.tst";
-
-void
-redirect_buffer(std::ios& stream, std::streambuf* new_buf)
-{ stream.rdbuf(new_buf); }
-
-std::streambuf*
-active_buffer(std::ios& stream)
-{ return stream.rdbuf(); }
-
-// libstdc++/2832
-void test03()
-{
- bool test = true;
- const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
- const std::string str00;
- const std::string str01(strlit01);
- std::string str02;
- std::filebuf fbuf;
- std::streambuf* pbasebuf0 = &fbuf;
-
- std::ofstream sstrm1;
- // derived rdbuf() always returns original streambuf, even though
- // it's no longer associated with the stream.
- std::filebuf* const buf1 = sstrm1.rdbuf();
- // base rdbuf() returns the currently associated streambuf
- std::streambuf* pbasebuf1 = active_buffer(sstrm1);
- redirect_buffer(sstrm1, &fbuf);
- std::filebuf* const buf2 = sstrm1.rdbuf();
- std::streambuf* pbasebuf2 = active_buffer(sstrm1);
- VERIFY( buf1 == buf2 );
- VERIFY( pbasebuf1 != pbasebuf2 );
- VERIFY( pbasebuf2 == pbasebuf0 );
-
- // How confusing and non-intuitive is this?
- // These semantics are a joke, a serious defect, and incredibly lame.
-}
-
-int main()
-{
- test03();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/1.cc
deleted file mode 100644
index 02401717813..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/1.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.2.1 basic_ostream
-// NB: This file is for testing ostream with NO OTHER INCLUDES.
-
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::ostream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/2.cc
deleted file mode 100644
index 8c672b1f076..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/2.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.2.1 basic_ostream
-// NB: This file is for testing ostream with NO OTHER INCLUDES.
-
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef short type_t;
- template class basic_ostream<type_t, char_traits<type_t> >;
- template class basic_ostream<pod_char, char_traits<pod_char> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/3.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/3.cc
deleted file mode 100644
index 0c71061c3c7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/3.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_ostream<gnu_char_type, gnu_char_traits> gnu_ostr;
-
- try
- {
- gnu_ostr obj(NULL);
- }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/4.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/4.cc
deleted file mode 100644
index b1b669c942f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/4.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <ostream>
-#include <sstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::ostream test_type;
- typedef std::ios base_type;
-
- std::stringbuf buf;
- const test_type& obj = test_type(&buf);
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/cons/char/9827.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/cons/char/9827.cc
deleted file mode 100644
index 7a4f26396d8..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/cons/char/9827.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// 2003-02-24 Petur Runolfsson <peturr02 at ru dot is>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <ostream>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-// libstdc++/9827
-class Buf : public std::streambuf
-{
-};
-
-void test01()
-{
- using namespace std;
- bool test = true;
-
- Buf buf;
- ostream stream(&buf);
-
- stream << 1;
- VERIFY(!stream.good());
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/endl/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/endl/char/1.cc
deleted file mode 100644
index 8e69c421dd1..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/endl/char/1.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 1999-07-22 bkoz
-
-// Copyright (C) 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.7 standard basic_ostream manipulators
-
-#include <ostream>
-#include <sstream>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-void test01(void)
-{
- bool test = true;
-
- const char str_lit01[] = " venice ";
- const std::string str01(" santa barbara ");
- std::string str02(str_lit01);
- std::string str04;
- std::string str05;
- std::ios_base::iostate flag1, flag2, flag3, flag4, flag5;
-
- std::ostringstream oss01(str01);
- std::ostringstream oss02;
- std::ostringstream::int_type i01, i02;
- typedef std::ostringstream::traits_type traits_type;
-
- // template<_CharT, _Traits>
- // basic_ostream<_CharT, _Traits>& ends(basic_ostream<_Char, _Traits>& os)
- oss01 << std::endl;
- str04 = oss01.str();
- VERIFY( str04.size() == str01.size() );
-
- oss02 << std::endl;
- str05 = oss02.str();
- VERIFY( str05.size() == 1 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/1.cc
deleted file mode 100644
index a3c11791737..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/1.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-07-22 bkoz
-
-// Copyright (C) 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.7 standard basic_ostream manipulators
-
-#include <ostream>
-#include <sstream>
-#include <stdexcept>
-//#include <testsuite_hooks.h>
-#define VERIFY(x) test&=x
-
-void test01(void)
-{
- bool test = true;
-
- const char str_lit01[] = " venice ";
- const std::string str01(" santa barbara ");
- std::string str02(str_lit01);
- std::string str04;
- std::string str05;
- std::ios_base::iostate flag1, flag2, flag3, flag4, flag5;
-
- std::ostringstream oss01(str01);
- std::ostringstream oss02;
- std::ostringstream::int_type i01, i02;
- typedef std::ostringstream::traits_type traits_type;
-
- // template<_CharT, _Traits>
- // basic_ostream<_CharT, _Traits>& ends(basic_ostream<_Char, _Traits>& os)
- oss01 << std::ends;
- str04 = oss01.str();
- VERIFY( str04.size() == str01.size() );
-
- oss02 << std::ends;
- str05 = oss02.str();
- VERIFY( str05.size() == 1 );
- VERIFY( str05[0] == char() );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/2.cc
deleted file mode 100644
index 34de949e4bb..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/2.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 1999-07-22 bkoz
-
-// Copyright (C) 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.7 standard basic_ostream manipulators
-
-#include <ostream>
-#include <sstream>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-// based vaguely on this:
-// http://gcc.gnu.org/ml/libstdc++/2000-q2/msg00109.html
-void test02()
-{
- using namespace std;
- typedef ostringstream::int_type int_type;
-
- bool test = true;
- ostringstream osst_01;
- const string str_00("herbie_hancock");
- int_type len1 = str_00.size();
- osst_01 << str_00;
- VERIFY( osst_01.str().size() == len1 );
-
- osst_01 << ends;
-
- const string str_01("speak like a child");
- int_type len2 = str_01.size();
- osst_01 << str_01;
- int_type len3 = osst_01.str().size();
- VERIFY( len1 < len3 );
- VERIFY( len3 == len1 + len2 + 1 );
-
- osst_01 << ends;
-
- const string str_02("+ inventions and dimensions");
- int_type len4 = str_02.size();
- osst_01 << str_02;
- int_type len5 = osst_01.str().size();
- VERIFY( len3 < len5 );
- VERIFY( len5 == len3 + len4 + 1 );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/exceptions/char/9561.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/exceptions/char/9561.cc
deleted file mode 100644
index 3e3726cd398..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/exceptions/char/9561.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <ostream>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-// libstdc++/9561
-struct foobar: std::exception { };
-
-struct buf: std::streambuf
-{
- virtual int_type overflow (int_type) {
- throw foobar ();
- return -1;
- }
-};
-
-void test01()
-{
- using namespace std;
- bool test = true;
-
- buf b;
- std::ostream strm (&b);
- strm.exceptions (std::ios::badbit);
-
- try {
- strm << std::endl;
- }
- catch (foobar) {
- // strm should throw foobar and not do anything else
- VERIFY(strm.bad());
- return;
- }
- catch (...) {
- VERIFY(false);
- return;
- }
-
- VERIFY(false);
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/1.cc
deleted file mode 100644
index 3d9098f53d1..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/1.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 1999-07-22 bkoz
-
-// Copyright (C) 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.7 standard basic_ostream manipulators
-
-#include <ostream>
-#include <sstream>
-#include <stdexcept>
-#include <testsuite_hooks.h>
-
-void test01(void)
-{
- bool test = true;
-
- const char str_lit01[] = " venice ";
- const std::string str01(" santa barbara ");
- std::string str02(str_lit01);
- std::string str04;
- std::string str05;
- std::ios_base::iostate flag1, flag2, flag3, flag4, flag5;
-
- std::ostringstream oss01(str01);
- std::ostringstream oss02;
- std::ostringstream::int_type i01, i02;
- typedef std::ostringstream::traits_type traits_type;
-
- // template<_CharT, _Traits>
- // basic_ostream<_CharT, _Traits>& flush(basic_ostream<_Char, _Traits>& os)
- oss01.flush();
- str04 = oss01.str();
- VERIFY( str04.size() == str01.size() );
-
- oss02.flush();
- str05 = oss02.str();
- VERIFY( str05.size() == 0 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc
deleted file mode 100644
index 8a81b964fd1..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc
+++ /dev/null
@@ -1,194 +0,0 @@
-// 1999-11-15 Kevin Ediger <kediger@licor.com>
-// test the floating point inserters (facet num_put)
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <cstdio> // for sprintf
-#include <cmath> // for abs
-#include <cfloat> // for DBL_EPSILON
-#include <iostream>
-#include <iomanip>
-#include <sstream>
-#include <limits>
-#include <testsuite_hooks.h>
-
-using namespace std;
-
-#ifndef DEBUG_ASSERT
-# define TEST_NUMPUT_VERBOSE 1
-#endif
-
-struct _TestCase
-{
- double val;
-
- int precision;
- int width;
- char decimal;
- char fill;
-
- bool fixed;
- bool scientific;
- bool showpos;
- bool showpoint;
- bool uppercase;
- bool internal;
- bool left;
- bool right;
-
- const char* result;
-};
-
-static bool T=true;
-static bool F=false;
-
-static _TestCase testcases[] =
-{
- // standard output (no formatting applied)
- { 1.2, 6,0,'.',' ', F,F,F,F,F,F,F,F, "1.2" },
- { 54, 6,0,'.',' ', F,F,F,F,F,F,F,F, "54" },
- { -.012, 6,0,'.',' ', F,F,F,F,F,F,F,F, "-0.012" },
- { -.00000012, 6,0,'.',' ', F,F,F,F,F,F,F,F, "-1.2e-07" },
-
- // fixed formatting
- { 10.2345, 0,0,'.',' ', T,F,F,F,F,F,F,F, "10" },
- { 10.2345, 0,0,'.',' ', T,F,F,T,F,F,F,F, "10." },
- { 10.2345, 1,0,'.',' ', T,F,F,F,F,F,F,F, "10.2" },
- { 10.2345, 4,0,'.',' ', T,F,F,F,F,F,F,F, "10.2345" },
- { 10.2345, 6,0,'.',' ', T,F,T,F,F,F,F,F, "+10.234500" },
- { -10.2345, 6,0,'.',' ', T,F,F,F,F,F,F,F, "-10.234500" },
- { -10.2345, 6,0,',',' ', T,F,F,F,F,F,F,F, "-10,234500" },
-
- // fixed formatting with width
- { 10.2345, 4,5,'.',' ', T,F,F,F,F,F,F,F, "10.2345" },
- { 10.2345, 4,6,'.',' ', T,F,F,F,F,F,F,F, "10.2345" },
- { 10.2345, 4,7,'.',' ', T,F,F,F,F,F,F,F, "10.2345" },
- { 10.2345, 4,8,'.',' ', T,F,F,F,F,F,F,F, " 10.2345" },
- { 10.2345, 4,10,'.',' ', T,F,F,F,F,F,F,F, " 10.2345" },
- { 10.2345, 4,10,'.',' ', T,F,F,F,F,F,T,F, "10.2345 " },
- { 10.2345, 4,10,'.',' ', T,F,F,F,F,F,F,T, " 10.2345" },
- { 10.2345, 4,10,'.',' ', T,F,F,F,F,T,F,F, " 10.2345" },
- { -10.2345, 4,10,'.',' ', T,F,F,F,F,T,F,F, "- 10.2345" },
- { -10.2345, 4,10,'.','A', T,F,F,F,F,T,F,F, "-AA10.2345" },
- { 10.2345, 4,10,'.','#', T,F,T,F,F,T,F,F, "+##10.2345" },
-
- // scientific formatting
- { 1.23e+12, 1,0,'.',' ', F,T,F,F,F,F,F,F, "1.2e+12" },
- { 1.23e+12, 1,0,'.',' ', F,T,F,F,T,F,F,F, "1.2E+12" },
- { 1.23e+12, 2,0,'.',' ', F,T,F,F,F,F,F,F, "1.23e+12" },
- { 1.23e+12, 3,0,'.',' ', F,T,F,F,F,F,F,F, "1.230e+12" },
- { 1.23e+12, 3,0,'.',' ', F,T,T,F,F,F,F,F, "+1.230e+12" },
- { -1.23e-12, 3,0,'.',' ', F,T,F,F,F,F,F,F, "-1.230e-12" },
- { 1.23e+12, 3,0,',',' ', F,T,F,F,F,F,F,F, "1,230e+12" },
-};
-
-template<typename _CharT>
-class testpunct : public numpunct<_CharT>
-{
-public:
- typedef _CharT char_type;
- const char_type dchar;
-
- explicit
- testpunct(char_type decimal_char) : numpunct<_CharT>(), dchar(decimal_char)
- { }
-
-protected:
- char_type
- do_decimal_point() const
- { return dchar; }
-
- char_type
- do_thousands_sep() const
- { return ','; }
-
- string
- do_grouping() const
- { return string(); }
-};
-
-template<typename _CharT>
-void apply_formatting(const _TestCase & tc, basic_ostream<_CharT> & os)
-{
- os.precision(tc.precision);
- os.width(tc.width);
- os.fill(static_cast<_CharT>(tc.fill));
- if (tc.fixed)
- os.setf(ios::fixed);
- if (tc.scientific)
- os.setf(ios::scientific);
- if (tc.showpos)
- os.setf(ios::showpos);
- if (tc.showpoint)
- os.setf(ios::showpoint);
- if (tc.uppercase)
- os.setf(ios::uppercase);
- if (tc.internal)
- os.setf(ios::internal);
- if (tc.left)
- os.setf(ios::left);
- if (tc.right)
- os.setf(ios::right);
-}
-
-void
-test01()
-{
- bool test = true;
- for (int j=0; j<sizeof(testcases)/sizeof(testcases[0]); j++)
- {
- _TestCase & tc = testcases[j];
-#ifdef TEST_NUMPUT_VERBOSE
- cout << "expect: " << tc.result << endl;
-#endif
- // test double with char type
- {
- testpunct<char>* __tp = new testpunct<char>(tc.decimal);
- ostringstream os;
- locale __loc(os.getloc(), __tp);
- os.imbue(__loc);
- apply_formatting(tc, os);
- os << tc.val;
-#ifdef TEST_NUMPUT_VERBOSE
- cout << j << "result 1: " << os.str() << endl;
-#endif
- VERIFY( os && os.str() == tc.result );
- }
- // test long double with char type
- {
- testpunct<char>* __tp = new testpunct<char>(tc.decimal);
- ostringstream os;
- locale __loc(os.getloc(), __tp);
- os.imbue(__loc);
- apply_formatting(tc, os);
- os << (long double)tc.val;
-#ifdef TEST_NUMPUT_VERBOSE
- cout << j << "result 2: " << os.str() << endl;
-#endif
- VERIFY( os && os.str() == tc.result );
- }
- }
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc
deleted file mode 100644
index 92180927f6f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// 1999-11-15 Kevin Ediger <kediger@licor.com>
-// test the floating point inserters (facet num_put)
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <cstdio> // for sprintf
-#include <iostream>
-#include <iomanip>
-#include <locale>
-#include <sstream>
-#include <limits>
-#include <testsuite_hooks.h>
-
-using namespace std;
-
-void
-test02()
-{
- bool test = true;
-
- // Make sure we can output a long float in fixed format
- // without seg-faulting (libstdc++/4402)
- double val2 = 3.5e230;
-
- ostringstream os2;
- os2.precision(3);
- os2.setf(ios::fixed);
-
- // Check it can be done in a locale with grouping on.
- locale loc2 = __gnu_cxx_test::try_named_locale("de_DE");
- os2.imbue(loc2);
- os2 << fixed << setprecision(3) << val2 << endl;
- os2 << endl;
- os2 << fixed << setprecision(1) << val2 << endl;
-}
-
-int
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/3.cc
deleted file mode 100644
index d26463b525d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/3.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 1999-11-15 Kevin Ediger <kediger@licor.com>
-// test the floating point inserters (facet num_put)
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <limits>
-#include <testsuite_hooks.h>
-
-using namespace std;
-
-template<typename T>
-bool
-test03_check(T n)
-{
- stringbuf strbuf;
- ostream o(&strbuf);
- const char *expect;
- bool test = true;
-
- if (numeric_limits<T>::digits + 1 == 16)
- expect = "177777 ffff";
- else if (numeric_limits<T>::digits + 1 == 32)
- expect = "37777777777 ffffffff";
- else if (numeric_limits<T>::digits + 1 == 64)
- expect = "1777777777777777777777 ffffffffffffffff";
- else
- expect = "wow, you've got some big numbers here";
-
- o << oct << n << ' ' << hex << n;
- VERIFY ( strbuf.str() == expect );
-
- return test;
-}
-
-void
-test03()
-{
- short s = -1;
- int i = -1;
- long l = -1;
-
- test03_check (s);
- test03_check (i);
- test03_check (l);
-}
-
-int
-main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4.cc
deleted file mode 100644
index 445f884a6ae..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// 1999-11-15 Kevin Ediger <kediger@licor.com>
-// test the floating point inserters (facet num_put)
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iomanip>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-using namespace std;
-
-// libstdc++/3655
-int
-test04()
-{
- stringbuf strbuf1, strbuf2;
- ostream o1(&strbuf1), o2(&strbuf2);
- bool test = true;
-
- o1 << hex << showbase << setw(6) << internal << 0xff;
- VERIFY( strbuf1.str() == "0x ff" );
-
- // ... vs internal-adjusted const char*-type objects
- o2 << hex << showbase << setw(6) << internal << "0xff";
- VERIFY( strbuf2.str() == " 0xff" );
-
- return 0;
-}
-
-int
-main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc
deleted file mode 100644
index 67eeecc2b6e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// 1999-11-15 Kevin Ediger <kediger@licor.com>
-// test the floating point inserters (facet num_put)
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <cstdio> // for sprintf
-#include <iostream>
-#include <iomanip>
-#include <sstream>
-#include <limits>
-#include <testsuite_hooks.h>
-
-using namespace std;
-
-void
-test02()
-{
- bool test = true;
- // make sure we can output a very long float
- long double val = 1.2345678901234567890123456789e+1000L;
- int prec = numeric_limits<long double>::digits10;
-
- ostringstream os;
- os.precision(prec);
- os.setf(ios::scientific);
- os << val;
-
- char largebuf[512];
- sprintf(largebuf, "%.*Le", prec, val);
-#ifdef TEST_NUMPUT_VERBOSE
- cout << "expect: " << largebuf << endl;
- cout << "result: " << os.str() << endl;
-#endif
- VERIFY(os && os.str() == largebuf);
-
- // Make sure we can output a long float in fixed format
- // without seg-faulting (libstdc++/4402)
- double val2 = 3.5e230;
-
- ostringstream os2;
- os2.precision(3);
- os2.setf(ios::fixed);
- os2 << val2;
-
- sprintf(largebuf, "%.*f", 3, val2);
-#ifdef TEST_NUMPUT_VERBOSE
- cout << "expect: " << largebuf << endl;
- cout << "result: " << os2.str() << endl;
-#endif
- VERIFY(os2 && os2.str() == largebuf);
-}
-
-int
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/5.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/5.cc
deleted file mode 100644
index 647f8714629..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/5.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 1999-11-15 Kevin Ediger <kediger@licor.com>
-// test the floating point inserters (facet num_put)
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <cmath> // for abs
-#include <cfloat> // for DBL_EPSILON
-#include <sstream>
-#include <limits>
-#include <testsuite_hooks.h>
-
-using namespace std;
-
-void
-test05()
-{
- bool test = true;
- double pi = 3.14159265358979323846;
- ostringstream ostr;
- ostr.precision(20);
- ostr << pi;
- string sval = ostr.str();
- istringstream istr (sval);
- double d;
- istr >> d;
- VERIFY( abs(pi-d)/pi < DBL_EPSILON );
-}
-
-int
-main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/6.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/6.cc
deleted file mode 100644
index d3f0499c3bb..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/6.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// 1999-11-15 Kevin Ediger <kediger@licor.com>
-// test the floating point inserters (facet num_put)
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <cmath> // for abs
-#include <cfloat> // for DBL_EPSILON
-#include <sstream>
-#include <limits>
-#include <testsuite_hooks.h>
-
-using namespace std;
-
-// libstdc++/9151
-int
-test06()
-{
- bool test = true;
- int prec = numeric_limits<double>::digits10 + 2;
- double oval = numeric_limits<double>::min();
-
- stringstream ostr;
- ostr.precision(prec);
- ostr << oval;
- string sval = ostr.str();
- istringstream istr (sval);
- double ival;
- istr >> ival;
- VERIFY( abs(oval-ival)/oval < DBL_EPSILON );
- return 0;
-}
-
-int
-main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc
deleted file mode 100644
index caf716061d9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <ostream>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-struct buf: std::streambuf
-{
- virtual int_type overflow(int_type)
- { throw 0; }
-};
-
-template<typename T>
-void testthrow(T arg)
-{
- bool test = true;
- buf b;
- std::ostream os(&b);
- os.exceptions(std::ios::badbit);
-
- try
- {
- os << arg;
- }
- catch(int)
- {
- // Expected return is zero.
- VERIFY( os.bad() );
- }
- catch(...)
- {
- VERIFY( false );
- }
-}
-
-int main()
-{
- bool b = true;
- short s = -4;
- unsigned short us = 4;
- int i = -45;
- unsigned int ui = 45;
- long l = -456;
- unsigned long ul = 456;
- float f = 3.4;
- double d = 3.45;
- long double ld = 3.456;
-
- testthrow(b);
- testthrow(s);
- testthrow(us);
- testthrow(i);
- testthrow(ui);
- testthrow(l);
- testthrow(ul);
- testthrow(f);
- testthrow(d);
- testthrow(ld);
-
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc
deleted file mode 100644
index a439c9e78ab..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc
+++ /dev/null
@@ -1,189 +0,0 @@
-// 1999-11-15 Kevin Ediger <kediger@licor.com>
-// test the floating point inserters (facet num_put)
-
-// Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <cstdio> // for sprintf
-#include <cmath> // for abs
-#include <cfloat> // for DBL_EPSILON
-#include <iostream>
-#include <iomanip>
-#include <sstream>
-#include <limits>
-#include <testsuite_hooks.h>
-
-using namespace std;
-
-#ifndef DEBUG_ASSERT
-# define TEST_NUMPUT_VERBOSE 1
-#endif
-
-struct _TestCase
-{
- double val;
-
- int precision;
- int width;
- char decimal;
- char fill;
-
- bool fixed;
- bool scientific;
- bool showpos;
- bool showpoint;
- bool uppercase;
- bool internal;
- bool left;
- bool right;
-
- const char* result;
- const wchar_t* wresult;
-};
-
-static bool T=true;
-static bool F=false;
-
-static _TestCase testcases[] =
-{
- // standard output (no formatting applied) 1-4
- { 1.2, 6,0,'.',' ', F,F,F,F,F,F,F,F, "1.2",L"1.2" },
- { 54, 6,0,'.',' ', F,F,F,F,F,F,F,F, "54",L"54" },
- { -.012, 6,0,'.',' ', F,F,F,F,F,F,F,F, "-0.012",L"-0.012" },
- { -.00000012, 6,0,'.',' ', F,F,F,F,F,F,F,F, "-1.2e-07",L"-1.2e-07" },
-
- // fixed formatting 5-11
- { 10.2345, 0,0,'.',' ', T,F,F,F,F,F,F,F, "10",L"10" },
- { 10.2345, 0,0,'.',' ', T,F,F,T,F,F,F,F, "10.",L"10." },
- { 10.2345, 1,0,'.',' ', T,F,F,F,F,F,F,F, "10.2",L"10.2" },
- { 10.2345, 4,0,'.',' ', T,F,F,F,F,F,F,F, "10.2345",L"10.2345" },
- { 10.2345, 6,0,'.',' ', T,F,T,F,F,F,F,F, "+10.234500",L"+10.234500" },
- { -10.2345, 6,0,'.',' ', T,F,F,F,F,F,F,F, "-10.234500",L"-10.234500" },
- { -10.2345, 6,0,',',' ', T,F,F,F,F,F,F,F, "-10,234500",L"-10,234500" },
-
- // fixed formatting with width 12-22
- { 10.2345, 4,5,'.',' ', T,F,F,F,F,F,F,F, "10.2345",L"10.2345" },
- { 10.2345, 4,6,'.',' ', T,F,F,F,F,F,F,F, "10.2345",L"10.2345" },
- { 10.2345, 4,7,'.',' ', T,F,F,F,F,F,F,F, "10.2345",L"10.2345" },
- { 10.2345, 4,8,'.',' ', T,F,F,F,F,F,F,F, " 10.2345",L" 10.2345" },
- { 10.2345, 4,10,'.',' ', T,F,F,F,F,F,F,F, " 10.2345",L" 10.2345" },
- { 10.2345, 4,10,'.',' ', T,F,F,F,F,F,T,F, "10.2345 ",L"10.2345 " },
- { 10.2345, 4,10,'.',' ', T,F,F,F,F,F,F,T, " 10.2345",L" 10.2345" },
- { 10.2345, 4,10,'.',' ', T,F,F,F,F,T,F,F, " 10.2345",L" 10.2345" },
- { -10.2345, 4,10,'.',' ', T,F,F,F,F,T,F,F, "- 10.2345",L"- 10.2345" },
- { -10.2345, 4,10,'.','A', T,F,F,F,F,T,F,F, "-AA10.2345",L"-AA10.2345" },
- { 10.2345, 4,10,'.','#', T,F,T,F,F,T,F,F, "+##10.2345",L"+##10.2345" },
-
- // scientific formatting 23-29
- { 1.23e+12, 1,0,'.',' ', F,T,F,F,F,F,F,F, "1.2e+12",L"1.2e+12" },
- { 1.23e+12, 1,0,'.',' ', F,T,F,F,T,F,F,F, "1.2E+12",L"1.2E+12" },
- { 1.23e+12, 2,0,'.',' ', F,T,F,F,F,F,F,F, "1.23e+12",L"1.23e+12" },
- { 1.23e+12, 3,0,'.',' ', F,T,F,F,F,F,F,F, "1.230e+12",L"1.230e+12" },
- { 1.23e+12, 3,0,'.',' ', F,T,T,F,F,F,F,F, "+1.230e+12",L"+1.230e+12" },
- { -1.23e-12, 3,0,'.',' ', F,T,F,F,F,F,F,F, "-1.230e-12",L"-1.230e-12" },
- { 1.23e+12, 3,0,',',' ', F,T,F,F,F,F,F,F, "1,230e+12",L"1,230e+12" },
-};
-
-template<typename _CharT>
-class testpunct : public numpunct<_CharT>
-{
-public:
- typedef _CharT char_type;
- const char_type dchar;
-
- explicit
- testpunct(char_type decimal_char) : numpunct<_CharT>(), dchar(decimal_char)
- { }
-
-protected:
- char_type
- do_decimal_point() const
- { return dchar; }
-
- char_type
- do_thousands_sep() const
- { return ','; }
-
- string
- do_grouping() const
- { return string(); }
-};
-
-template<typename _CharT>
-void apply_formatting(const _TestCase & tc, basic_ostream<_CharT> & os)
-{
- os.precision(tc.precision);
- os.width(tc.width);
- os.fill(static_cast<_CharT>(tc.fill));
- if (tc.fixed)
- os.setf(ios::fixed);
- if (tc.scientific)
- os.setf(ios::scientific);
- if (tc.showpos)
- os.setf(ios::showpos);
- if (tc.showpoint)
- os.setf(ios::showpoint);
- if (tc.uppercase)
- os.setf(ios::uppercase);
- if (tc.internal)
- os.setf(ios::internal);
- if (tc.left)
- os.setf(ios::left);
- if (tc.right)
- os.setf(ios::right);
-}
-
-void
-test01()
-{
- bool test = true;
- for (int j=0; j<sizeof(testcases)/sizeof(testcases[0]); j++)
- {
- _TestCase & tc = testcases[j];
-#ifdef TEST_NUMPUT_VERBOSE
- cout << "expect: " << tc.result << endl;
-#endif
- // test double with wchar_t type
- {
- testpunct<wchar_t>* __tp = new testpunct<wchar_t>(tc.decimal);
- wostringstream os;
- locale __loc(os.getloc(), __tp);
- os.imbue(__loc);
- apply_formatting(tc, os);
- os << tc.val;
- VERIFY( os && os.str() == tc.wresult );
- }
- // test long double with wchar_t type
- {
- testpunct<wchar_t>* __tp = new testpunct<wchar_t>(tc.decimal);
- wostringstream os;
- locale __loc(os.getloc(), __tp);
- os.imbue(__loc);
- apply_formatting(tc, os);
- os << (long double)tc.val;
- VERIFY( os && os.str() == tc.wresult );
- }
- }
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/1.cc
deleted file mode 100644
index 976d45857ab..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/1.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// ofstream
-void test01()
-{
- std::string str01;
- const int size = 1000;
- const char name_02[] = "ostream_inserter_char-1.txt";
-
- // initialize string
- for(int i=0 ; i < size; i++) {
- str01 += '1';
- str01 += '2';
- str01 += '3';
- str01 += '4';
- str01 += '5';
- str01 += '6';
- str01 += '7';
- str01 += '8';
- str01 += '9';
- str01 += '\n';
- }
- std::ofstream f(name_02);
-
- f << str01;
- f.close();
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/2.cc
deleted file mode 100644
index 9ffc492586e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/2.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// ostringstream width() != zero
-// left
-void
-test02(void)
-{
- bool test = true;
- std::string tmp;
-
- std::string str01 = "";
- std::ostringstream oss01;
- oss01.width(5);
- oss01.fill('0');
- oss01.flags(std::ios_base::left);
- oss01 << str01;
- tmp = oss01.str();
- VERIFY( tmp == "00000" );
-
- std::string str02 = "1";
- std::ostringstream oss02;
- oss02.width(5);
- oss02.fill('0');
- oss02.flags(std::ios_base::left);
- oss02 << str02;
- tmp = oss02.str();
- VERIFY( tmp == "10000" );
-
- std::string str03 = "909909";
- std::ostringstream oss03;
- oss03.width(5);
- oss03.fill('0');
- oss03.flags(std::ios_base::left);
- oss03 << str03;
- tmp = oss03.str();
- VERIFY( tmp == "909909" );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/3.cc
deleted file mode 100644
index 5b95862b2b9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/3.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// width() != zero
-// right
-void test03(void)
-{
- bool test = true;
- std::string tmp;
-
- std::string str01 = "";
- std::ostringstream oss01;
- oss01.width(5);
- oss01.fill('0');
- oss01.flags(std::ios_base::right);
- oss01 << str01;
- tmp = oss01.str();
- VERIFY( tmp == "00000" );
-
- std::string str02 = "1";
- std::ostringstream oss02;
- oss02.width(5);
- oss02.fill('0');
- oss02.flags(std::ios_base::right);
- oss02 << str02;
- tmp = oss02.str();
- VERIFY( tmp == "00001" );
-
- std::string str03 = "909909";
- std::ostringstream oss03;
- oss03.width(5);
- oss03.fill('0');
- oss03.flags(std::ios_base::right);
- oss03 << str03;
- tmp = oss03.str();
- VERIFY( tmp == "909909" );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/4.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/4.cc
deleted file mode 100644
index 52d92ecb2eb..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/4.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// stringstream and large strings
-void
-test04()
-{
- bool test = true;
- std::string str_01;
- const std::string str_02("coltrane playing 'softly as a morning sunrise'");
- const std::string str_03("coltrane");
- std::string str_tmp;
- const int i_max=250;
-
- std::ostringstream oss_01(std::ios_base::out);
- std::ostringstream oss_02(str_01, std::ios_base::out);
-
- std::ios_base::iostate state1, state2, statefail;
- statefail = std::ios_base::failbit;
-
- // template<_CharT, _Traits>
- // basic_ostream& operator<<(ostream&, const char*)
- for (int i = 0; i < i_max; ++i)
- oss_02 << "Test: " << i << std::endl;
- str_tmp = oss_02.str();
- VERIFY( !oss_02.bad() );
- VERIFY( oss_02.good() );
- VERIFY( str_tmp != str_01 );
- VERIFY( str_tmp.size() == 2390 );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/5.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/5.cc
deleted file mode 100644
index c68f227bfc2..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/5.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// ostringstream and large strings number 2
-void
-test05()
-{
- bool test = true;
- std::string str05, str10;
-
- typedef std::ostream::pos_type pos_type;
- typedef std::ostream::off_type off_type;
- std::string str01;
- const int size = 1000;
-
- // initialize string
- for(int i=0 ; i < size; i++) {
- str01 += '1';
- str01 += '2';
- str01 += '3';
- str01 += '4';
- str01 += '5';
- str01 += '6';
- str01 += '7';
- str01 += '8';
- str01 += '9';
- str01 += '\n';
- }
-
- // test 1: out
- std::ostringstream sstr01(str01, std::ios_base::out);
- std::ostringstream sstr02;
- sstr02 << str01;
- str05 = sstr01.str();
- str10 = sstr02.str();
- VERIFY( str05 == str01 );
- VERIFY( str10 == str01 );
-
- // test 2: in | out
- std::ostringstream sstr04(str01, std::ios_base::out | std::ios_base::in);
- std::ostringstream sstr05(std::ios_base::in | std::ios_base::out);
- sstr05 << str01;
- str05 = sstr04.str();
- str10 = sstr05.str();
- VERIFY( str05 == str01 );
- VERIFY( str10 == str01 );
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/6.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/6.cc
deleted file mode 100644
index a73329c819c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/6.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// ostringstream and positioning, multiple writes
-// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00326.html
-void test06()
-{
- bool test = true;
- const char carray01[] = "mos def & talib kweli are black star";
-
- // normal
- std::ostringstream ostr1("mos def");
- VERIFY( ostr1.str() == "mos def" );
- ostr1 << " & talib kweli"; // should overwrite first part of buffer
- VERIFY( ostr1.str() == " & talib kweli" );
- ostr1 << " are black star"; // should append to string from above
- VERIFY( ostr1.str() != carray01 );
- VERIFY( ostr1.str() == " & talib kweli are black star" );
-
- // appending
- std::ostringstream ostr2("blackalicious",
- std::ios_base::out | std::ios_base::ate);
- VERIFY( ostr2.str() == "blackalicious" );
- ostr2 << " NIA "; // should not overwrite first part of buffer
- VERIFY( ostr2.str() == "blackalicious NIA " );
- ostr2 << "4: deception (5:19)"; // should append to full string from above
- VERIFY( ostr2.str() == "blackalicious NIA 4: deception (5:19)" );
-}
-
-int main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/8.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/8.cc
deleted file mode 100644
index 244ee752919..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/8.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void test08()
-{
- bool test = true;
- char* pt = NULL;
-
- // 1
- std::ostringstream oss;
- oss << pt;
- VERIFY( oss.bad() );
- VERIFY( oss.str().size() == 0 );
-
- oss.clear();
- oss << "";
- VERIFY( oss.good() );
-}
-
-int main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc
deleted file mode 100644
index f1e24f35bd2..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <ostream>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-struct buf: std::streambuf
-{
- virtual int_type overflow(int_type)
- { throw 0; }
-};
-
-template<typename T>
-void testthrow(T arg)
-{
- bool test = true;
- buf b;
- std::ostream os(&b);
- os.exceptions(std::ios::badbit);
-
- try
- {
- os << arg;
- }
- catch(int)
- {
- // Expected return is zero.
- VERIFY( os.bad() );
- }
- catch(...)
- {
- VERIFY( false );
- }
-}
-
-int main()
-{
- char c = 'a';
- unsigned char uc = 'a';
- signed char sc = 'a';
- const char* ccp = "governor ann richards";
- const signed char* cscp = reinterpret_cast<const signed char*>(ccp);
- const unsigned char* cucp = reinterpret_cast<const unsigned char*>(ccp);
-
- testthrow(c);
- testthrow(uc);
- testthrow(sc);
- testthrow(ccp);
- testthrow(cscp);
- testthrow(cucp);
-
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc
deleted file mode 100644
index 6344dd4d5a0..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc
+++ /dev/null
@@ -1,92 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// Global counter, needs to be reset after use.
-bool used;
-
-class gnu_ctype : public std::ctype<wchar_t>
-{
-protected:
- char_type
- do_widen(char c) const
- {
- used = true;
- return std::ctype<wchar_t>::do_widen(c);
- }
-
- const char*
- do_widen(const char* low, const char* high, char_type* dest) const
- {
- used = true;
- return std::ctype<wchar_t>::do_widen(low, high, dest);
- }
-};
-
-// 27.6.2.5.4 - Character inserter template functions
-// [lib.ostream.inserters.character]
-void test07()
-{
- using namespace std;
- bool test = true;
-
- const char* buffer = "SFPL 5th floor, outside carrol, the Asian side";
-
- wostringstream oss;
- oss.imbue(locale(locale::classic(), new gnu_ctype));
-
- // 1
- // template<class charT, class traits>
- // basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out,
- // const char* s);
- used = false;
- oss << buffer;
- VERIFY( used ); // Only required for char_type != char
- wstring str = oss.str();
- wchar_t c1 = oss.widen(buffer[0]);
- VERIFY( str[0] == c1 );
- wchar_t c2 = oss.widen(buffer[1]);
- VERIFY( str[1] == c2 );
-
- // 2
- // template<class charT, class traits>
- // basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out,
- // char c);
- used = false;
- oss.str(wstring());
- oss << 'b';
- VERIFY( used ); // Only required for char_type != char
- str = oss.str();
- wchar_t c3 = oss.widen('b');
- VERIFY( str[0] == c3 );
-}
-
-int main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc
deleted file mode 100644
index bf4480db26e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// 1999-08-16 bkoz
-
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-
-#include <string>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-void test08()
-{
- bool test = true;
- char* pt = NULL;
-
- // 2
- std::wostringstream woss;
- woss << pt;
- VERIFY( woss.bad() );
- VERIFY( woss.str().size() == 0 );
-
- woss.clear();
- woss << "";
- VERIFY( woss.good() );
-
- // 3
- wchar_t* wt = NULL;
- woss.clear();
- woss << wt;
- VERIFY( woss.bad() );
- VERIFY( woss.str().size() == 0 );
-
- woss.clear();
- woss << L"";
- VERIFY( woss.good() );
-}
-
-int main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/1.cc
deleted file mode 100644
index 3fa9e68fe56..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/1.cc
+++ /dev/null
@@ -1,82 +0,0 @@
-// 1999-08-16 bkoz
-// 1999-11-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-const int size = 1000;
-const char name_01[] = "ostream_inserter_other-1.tst";
-const char name_02[] = "ostream_inserter_other-1.txt";
-const char name_03[] = "ostream_inserter_other-2.tst";
-const char name_04[] = "ostream_inserter_other-2.txt";
-
-// fstream
-void
-test02()
-{
- typedef std::ios_base::iostate iostate;
- bool test = true;
-
- // basic_ostream<_CharT, _Traits>::operator<<(__streambuf_type* __sb)
- // filebuf-> NULL
- std::ifstream f_in1(name_01);
- std::ofstream f_out1(name_02);
- std::stringbuf* strbuf01 = NULL;
- iostate state01 = f_in1.rdstate();
- f_in1 >> strbuf01;
- iostate state02 = f_in1.rdstate();
- VERIFY( state01 != state02 );
- VERIFY( (state02 & std::ios_base::failbit) != 0 );
- state01 = f_out1.rdstate();
- f_out1 << strbuf01;
- state02 = f_out1.rdstate();
- VERIFY( state01 != state02 );
- VERIFY( (state02 & std::ios_base::badbit) != 0 );
-
- // filebuf->filebuf
- std::ifstream f_in(name_01);
- std::ofstream f_out(name_02);
- f_out << f_in.rdbuf();
- f_in.close();
- f_out.close();
-
- // filebuf->stringbuf->filebuf
- std::ifstream f_in2(name_03);
- std::ofstream f_out2(name_04); // should be different name
- std::stringbuf strbuf02;
- f_in2 >> &strbuf02;
- f_out2 << &strbuf02;
- f_in2.close();
- f_out2.close();
-}
-
-int
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/2.cc
deleted file mode 100644
index c82e5cf508b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/2.cc
+++ /dev/null
@@ -1,70 +0,0 @@
-// 1999-08-16 bkoz
-// 1999-11-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// via Brent Verner <brent@rcfile.org>
-// http://gcc.gnu.org/ml/libstdc++/2000-06/msg00005.html
-void
-test03(void)
-{
- using namespace std;
-
- typedef ios::pos_type pos_type;
-
- const char* TEST_IN = "ostream_inserter_other_in";
- const char* TEST_OUT = "ostream_inserter_other_out";
- pos_type i_read, i_wrote, rs, ws;
- double tf_size = BUFSIZ * 2.5;
- ofstream testfile(TEST_IN);
-
- for (int i = 0; i < tf_size; ++i)
- testfile.put('.');
- testfile.close();
-
- ifstream in(TEST_IN);
- ofstream out(TEST_OUT);
- out << in.rdbuf();
- in.seekg(0,ios_base::beg);
- out.seekp(0,ios_base::beg);
- rs = in.tellg();
- ws = out.tellp();
- in.seekg(0,ios_base::end);
- out.seekp(0,ios_base::end);
- i_read = in.tellg() - rs;
- i_wrote = out.tellp() - ws;
- in.close();
- out.close();
-}
-
-int
-main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/3.cc
deleted file mode 100644
index 89dca57cd54..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/3.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 1999-08-16 bkoz
-// 1999-11-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <ostream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/3272
-void test04()
-{
- using namespace std;
- bool test = true;
- istringstream istr("inside betty carter");
- ostringstream ostr;
- ostr << istr.rdbuf() << endl;
-
- if (ostr.rdstate() & ios_base::eofbit)
- test = false;
-
- VERIFY( test );
-}
-
-int
-main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/4.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/4.cc
deleted file mode 100644
index 1ba200aaca7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/4.cc
+++ /dev/null
@@ -1,154 +0,0 @@
-// 1999-08-16 bkoz
-// 1999-11-01 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.5.4 basic_ostream character inserters
-// @require@ %-*.tst %-*.txt
-// @diff@ %-*.tst %-*.txt
-
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-class test_buffer_1 : public std::streambuf
-{
-public:
- test_buffer_1(const std::string& s) : str(s), it(str.begin()) { }
-
-protected:
- virtual int underflow() { return (it != str.end() ? *it : EOF); }
- virtual int uflow() { return (it != str.end() ? *it++ : EOF); }
-
-private:
- const std::string str;
- std::string::const_iterator it;
-};
-
-
-class test_buffer_2 : public std::streambuf
-{
-public:
- test_buffer_2(const std::string& s) : str(s), it(str.begin()) { }
-
-protected:
- virtual int underflow() { return (it != str.end() ? *it : EOF); }
- virtual int uflow() { return (it != str.end() ? *it++ : EOF); }
- virtual std::streamsize showmanyc() { return std::distance(it, str.end()); }
-private:
- const std::string str;
- std::string::const_iterator it;
-};
-
-
-class test_buffer_3 : public std::streambuf
-{
-public:
- test_buffer_3(const std::string& s) : str(s), it(str.begin()) { }
-
-protected:
- virtual int underflow() { return (it != str.end() ? *it : EOF); }
- virtual int uflow() { return (it != str.end() ? *it++ : EOF); }
- virtual std::streamsize showmanyc()
- {
- std::streamsize ret = std::distance(it, str.end());
- return ret > 0 ? ret : -1;
- }
-private:
- const std::string str;
- std::string::const_iterator it;
-};
-
-class test_buffer_4 : public std::streambuf {
-public:
- test_buffer_4(const std::string& s) : str(s), it(str.begin())
- {
- if (it != str.end()) {
- buf[0] = *it++;
- setg(buf, buf, buf+1);
- }
- }
-
-protected:
- virtual int underflow() { return (it != str.end() ? *it : EOF); }
- virtual int uflow() { return (it != str.end() ? *it++ : EOF); }
- virtual std::streamsize showmanyc() {
- std::streamsize ret = std::distance(it, str.end());
- return ret > 0 ? ret : -1;
- }
-private:
- const std::string str;
- std::string::const_iterator it;
- char buf[1];
-};
-
-void test(const std::string& str, std::streambuf& buf)
-{
- bool test = true;
-
- std::ostringstream out;
- std::istream in(&buf);
-
- out << in.rdbuf();
-
- if (out.str() != str)
- VERIFY( false );
-}
-
-// libstdc++/6745
-// libstdc++/8071
-// libstdc++/8127
-// Jonathan Lennox <lennox@cs.columbia.edu>
-void test05()
-{
- std::string string_a("Hello, world!");
- std::string string_b("");
-
- test_buffer_1 buf1a(string_a);
- test_buffer_1 buf1b(string_b);
-
- test_buffer_2 buf2a(string_a);
- test_buffer_2 buf2b(string_b);
-
- test_buffer_3 buf3a(string_a);
- test_buffer_3 buf3b(string_b);
-
- test_buffer_4 buf4a(string_a);
- test_buffer_4 buf4b(string_b);
-
- test(string_a, buf1a);
- test(string_b, buf1b);
-
- test(string_a, buf2a);
- test(string_b, buf2b);
-
- test(string_a, buf3a);
- test(string_b, buf3b);
-
- test(string_a, buf4a);
- test(string_b, buf4b);
-}
-
-int
-main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9318-out.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9318-out.cc
deleted file mode 100644
index fcacbcb6483..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9318-out.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <sstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9318
-class Outbuf : public std::streambuf
-{
-public:
- typedef std::streambuf::traits_type traits_type;
-
- std::string result() const { return str; }
-
-protected:
- virtual int_type overflow(int_type c = traits_type::eof())
- {
- if (!traits_type::eq_int_type(c, traits_type::eof()))
- str.push_back(traits_type::to_char_type(c));
- return traits_type::not_eof(c);
- }
-
-private:
- std::string str;
-};
-
-void test10()
-{
- bool test = true;
-
- std::stringbuf sbuf("Bad Moon Rising", std::ios::in);
- Outbuf buf;
- std::ostream stream(&buf);
- stream << &sbuf;
-
- VERIFY( buf.result() == "Bad Moon Rising" );
-}
-
-int main()
-{
- test10();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9424-out.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9424-out.cc
deleted file mode 100644
index 61ec1a71eaf..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9424-out.cc
+++ /dev/null
@@ -1,113 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <cstring> // for memset, memcmp
-#include <streambuf>
-#include <sstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9424
-class Outbuf_2 : public std::streambuf
-{
- char buf[1];
-
-public:
- Outbuf_2()
- {
- setp(buf, buf + 1);
- }
-
- int_type overflow(int_type c)
- {
- int_type eof = traits_type::eof();
-
- if (pptr() < epptr())
- {
- if (traits_type::eq_int_type(c, eof))
- return traits_type::not_eof(c);
-
- *pptr() = traits_type::to_char_type(c);
- pbump(1);
- return c;
- }
-
- return eof;
- }
-};
-
-class Inbuf_2 : public std::streambuf
-{
- static const char buf[];
- const char* current;
- int size;
-
-public:
- Inbuf_2()
- {
- current = buf;
- size = std::strlen(buf);
- }
-
- int_type underflow()
- {
- if (current < buf + size)
- return traits_type::to_int_type(*current);
- return traits_type::eof();
- }
-
- int_type uflow()
- {
- if (current < buf + size)
- return traits_type::to_int_type(*current++);
- return traits_type::eof();
- }
-};
-
-const char Inbuf_2::buf[] = "Atteivlis";
-
-void test12()
-{
- bool test = true;
-
- Outbuf_2 outbuf2;
- std::ostream os (&outbuf2);
- Inbuf_2 inbuf2;
- os << &inbuf2;
- VERIFY( inbuf2.sgetc() == 't' );
- VERIFY( os.good() );
-}
-
-int main()
-{
- test12();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc
deleted file mode 100644
index 42ad89cbd1d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <ostream>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-struct buf: std::streambuf
-{
- virtual int_type overflow(int_type)
- { throw 0; }
-};
-
-template<typename T>
-void testthrow(T arg)
-{
- bool test = true;
- buf b;
- std::ostream os(&b);
- os.exceptions(std::ios::badbit);
-
- try
- {
- os << arg;
- }
- catch(int)
- {
- // Expected return is zero.
- VERIFY( os.bad() );
- }
- catch(...)
- {
- VERIFY( false );
- }
-}
-
-int main()
-{
- buf b;
-
- testthrow(&b);
-
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/1.cc
deleted file mode 100644
index cba75f250fa..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/1.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.2.3 class basic_ostream::sentry
-
-#include <ostream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9562
-void
-test01()
-{
- bool test = true;
-
- std::stringbuf strbuf01;
- std::ostream strm1(&strbuf01);
- const std::ostream::sentry sentry1(strm1);
-
- VERIFY( bool(sentry1) == true );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/2.cc
deleted file mode 100644
index 4e7562cfd12..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/2.cc
+++ /dev/null
@@ -1,71 +0,0 @@
-// 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.2.3 class basic_ostream::sentry
-
-#include <ostream>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9563
-struct buf: std::streambuf
-{
- std::ios *io_;
-
- buf (std::ios *io): io_ (io) { }
-
- virtual int sync ()
- {
- io_->setstate (std::ios::failbit);
- return 0;
- }
-};
-
-void
-test02()
-{
- bool test = true;
-
- buf b(0);
- std::ostream strm(&b);
-
- buf tb(&strm);
- std::ostream tied(&tb);
-
- strm.tie(&tied);
- std::ostream::sentry s(strm);
-
- VERIFY( !s );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc
deleted file mode 100644
index e675c8db029..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc
+++ /dev/null
@@ -1,164 +0,0 @@
-// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.2.1.6 class ios_base::init
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// char_traits specialization
-namespace std
-{
- template<>
- struct char_traits<unsigned char>
- {
- typedef unsigned char char_type;
- // Unsigned as wint_t in unsigned.
- typedef unsigned long int_type;
- typedef streampos pos_type;
- typedef streamoff off_type;
- typedef mbstate_t state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2)
- { __c1 = __c2; }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2)
- { return __c1 == __c2; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2)
- { return __c1 < __c2; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- {
- for (size_t __i = 0; __i < __n; ++__i)
- if (!eq(__s1[__i], __s2[__i]))
- return lt(__s1[__i], __s2[__i]) ? -1 : 1;
- return 0;
- }
-
- static size_t
- length(const char_type* __s)
- {
- const char_type* __p = __s;
- while (__p && *__p)
- ++__p;
- return (__p - __s);
- }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- {
- for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p)
- if (*__p == __a) return __p;
- return 0;
- }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- {
- for (char_type* __p = __s; __p < __s + __n; ++__p)
- assign(*__p, __a);
- return __s;
- }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c) { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return __c1 == __c2; }
-
- static int_type
- eof() { return static_cast<int_type>(-1); }
-
- static int_type
- not_eof(const int_type& __c)
- { return eq_int_type(__c, eof()) ? int_type(0) : __c; }
- };
-} // namespace std
-
-// libstdc++/3983
-// Sentry uses locale info, so have to try one formatted input/output.
-void test03()
-{
- using namespace std;
- bool test = true;
-
- // output streams
- basic_ofstream<unsigned char> ofs_uc;
-
- try
- {
- bool b = true;
- ofs_uc << b;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- VERIFY( test );
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_string<unsigned char>::size_type
- std::basic_string<unsigned char>::_Rep::_S_max_size;
-
-template
- unsigned char
- std::basic_string<unsigned char>::_Rep::_S_terminal;
-
-template
- std::basic_streambuf<unsigned char>::int_type
- std::basic_streambuf<unsigned char>::_S_pback_size;
-#endif
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc
deleted file mode 100644
index 5f68c585ad5..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc
+++ /dev/null
@@ -1,160 +0,0 @@
-// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.2.1.6 class ios_base::init
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// char_traits specialization
-namespace std
-{
- template<>
- struct char_traits<unsigned char>
- {
- typedef unsigned char char_type;
- // Unsigned as wint_t in unsigned.
- typedef unsigned long int_type;
- typedef streampos pos_type;
- typedef streamoff off_type;
- typedef mbstate_t state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2)
- { __c1 = __c2; }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2)
- { return __c1 == __c2; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2)
- { return __c1 < __c2; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- {
- for (size_t __i = 0; __i < __n; ++__i)
- if (!eq(__s1[__i], __s2[__i]))
- return lt(__s1[__i], __s2[__i]) ? -1 : 1;
- return 0;
- }
-
- static size_t
- length(const char_type* __s)
- {
- const char_type* __p = __s;
- while (__p && *__p)
- ++__p;
- return (__p - __s);
- }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- {
- for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p)
- if (*__p == __a) return __p;
- return 0;
- }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- {
- for (char_type* __p = __s; __p < __s + __n; ++__p)
- assign(*__p, __a);
- return __s;
- }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c) { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return __c1 == __c2; }
-
- static int_type
- eof() { return static_cast<int_type>(-1); }
-
- static int_type
- not_eof(const int_type& __c)
- { return eq_int_type(__c, eof()) ? int_type(0) : __c; }
- };
-} // namespace std
-
-// libstdc++/3983
-// Sentry uses locale info, so have to try one formatted input/output.
-void test03()
-{
- using namespace std;
- bool test = true;
-
- // output streams
- basic_ostringstream<unsigned char> oss_uc;
-
- try
- {
- bool b = true;
- oss_uc << b;
- }
- catch (bad_cast& obj)
- { }
- catch (exception& obj)
- { test = false; }
-
- VERIFY( test );
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_string<unsigned char>::size_type
- std::basic_string<unsigned char>::_Rep::_S_max_size;
-
-template
- unsigned char
- std::basic_string<unsigned char>::_Rep::_S_terminal;
-#endif
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/1.cc
deleted file mode 100644
index 05884fc123d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/1.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// 2000-06-29 bkoz
-
-// Copyright (C) 2000, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.2.4 basic_ostream seek members
-
-#include <ostream>
-#include <sstream>
-#include <fstream>
-#include <testsuite_hooks.h>
-
-
-void test01()
-{
- using namespace std;
- typedef ios::pos_type pos_type;
-
- bool test = true;
- const char str_lit01[] = "ostream_seeks-1.txt";
-
- // out
- // test default ctors leave things in the same positions...
- ostringstream ost1;
- pos_type p1 = ost1.tellp();
-
- ofstream ofs1;
- pos_type p2 = ofs1.tellp();
-
- VERIFY( p1 == p2 );
-
- // out
- // test ctors leave things in the same positions...
- ostringstream ost2("bob_marley:kaya");
- p1 = ost2.tellp();
-
- ofstream ofs2(str_lit01);
- p2 = ofs2.tellp();
-
- VERIFY( p1 == p2 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/2.cc
deleted file mode 100644
index e278daec21a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/tellp/char/2.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// 2000-03-23 bkoz
-
-// Copyright (C) 2000, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-//
-
-#include <sstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- using namespace std;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
- bool test = true;
-
- // tellp
- ostringstream ost;
- pos_type pos1;
- pos1 = ost.tellp();
- VERIFY( pos1 == pos_type(-1) );
- ost << "RZA ";
- pos1 = ost.tellp();
- VERIFY( pos1 == pos_type(4) );
- ost << "ghost dog: way of the samurai";
- pos1 = ost.tellp();
- VERIFY( pos1 == pos_type(33) );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostringstream/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostringstream/1.cc
deleted file mode 100644
index 4fd6be62f8b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostringstream/1.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.7.3 - Class basic_ostringstream
-// NB: This file is for testing basic_ostringstream with NO OTHER INCLUDES.
-
-#include <sstream>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::ostringstream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostringstream/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostringstream/2.cc
deleted file mode 100644
index a1ca0bf27ed..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostringstream/2.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.7.3 - Class basic_ostringstream
-// NB: This file is for testing basic_ostringstream with NO OTHER INCLUDES.
-
-#include <sstream>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- typedef short type_t;
- template class basic_ostringstream<type_t, char_traits<type_t> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostringstream/3.cc b/libstdc++-v3/testsuite/27_io/basic_ostringstream/3.cc
deleted file mode 100644
index 777b70226a7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostringstream/3.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_ostringstream<gnu_char_type, gnu_char_traits> gnu_osstr;
-
- try
- {
- gnu_osstr obj;
- }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostringstream/4.cc b/libstdc++-v3/testsuite/27_io/basic_ostringstream/4.cc
deleted file mode 100644
index 48c56383e4c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostringstream/4.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <ostream>
-#include <sstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::ostringstream test_type;
- typedef std::ostream base_type;
- const test_type& obj = test_type();
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostringstream/cons/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_ostringstream/cons/char/3.cc
deleted file mode 100644
index 3edad1a5080..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostringstream/cons/char/3.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// 2001-05-23 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.3.2 member functions (ostringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// 03: sanity checks for strings, stringbufs
-void
-test03()
-{
- bool test = false;
-
- // Empty string sanity check.
- std::string str01;
- std::string::iterator __i_start = str01.begin();
- std::string::iterator __i_end = str01.end();
- std::string::size_type len = str01.size();
- test = __i_start == __i_end;
- VERIFY( len == 0 );
-
- // Full string sanity check.
- std::string str02("these golden days, i spend waiting for you:\n"
- "Betty Carter on Verve with I'm Yours and You're Mine.");
- __i_start = str02.begin();
- __i_end = str02.end();
- len = str02.size();
- VERIFY( __i_start != __i_end );
- VERIFY( len != 0 );
-
- // Test an empty ostringstream for sanity.
- std::ostringstream ostrstream0;
- std::string str03 = ostrstream0.str();
- __i_start = str03.begin();
- __i_end = str03.end();
- len = str03.size();
- VERIFY( __i_start == __i_end );
- VERIFY( len == 0 );
- VERIFY( str01 == str03 );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostringstream/rdbuf/char/2832.cc b/libstdc++-v3/testsuite/27_io/basic_ostringstream/rdbuf/char/2832.cc
deleted file mode 100644
index 8019bba06f2..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostringstream/rdbuf/char/2832.cc
+++ /dev/null
@@ -1,76 +0,0 @@
-// 2001-05-23 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.3.2 member functions (ostringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void
-redirect_buffer(std::ios& stream, std::streambuf* new_buf)
-{ stream.rdbuf(new_buf); }
-
-std::streambuf*
-active_buffer(std::ios& stream)
-{ return stream.rdbuf(); }
-
-// libstdc++/2832
-void test02()
-{
- bool test = true;
- const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
- const std::string str00;
- const std::string str01(strlit01);
- std::string str02;
- std::stringbuf sbuf(str01);
- std::streambuf* pbasebuf0 = &sbuf;
-
- std::ostringstream sstrm1;
- VERIFY( sstrm1.str() == str00 );
- // derived rdbuf() always returns original streambuf, even though
- // it's no longer associated with the stream.
- std::stringbuf* const buf1 = sstrm1.rdbuf();
- // base rdbuf() returns the currently associated streambuf
- std::streambuf* pbasebuf1 = active_buffer(sstrm1);
- redirect_buffer(sstrm1, &sbuf);
- std::stringbuf* const buf2 = sstrm1.rdbuf();
- std::streambuf* pbasebuf2 = active_buffer(sstrm1);
- VERIFY( buf1 == buf2 );
- VERIFY( pbasebuf1 != pbasebuf2 );
- VERIFY( pbasebuf2 == pbasebuf0 );
-
- // derived rdbuf() returns the original buf, so str() doesn't change.
- VERIFY( sstrm1.str() != str01 );
- VERIFY( sstrm1.str() == str00 );
- // however, casting the active streambuf to a stringbuf shows what's up:
- std::stringbuf* psbuf = dynamic_cast<std::stringbuf*>(pbasebuf2);
- str02 = psbuf->str();
- VERIFY( str02 == str01 );
-
- // How confusing and non-intuitive is this?
- // These semantics are a joke, a serious defect, and incredibly lame.
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/1.cc
deleted file mode 100644
index 7a3b758ae72..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/1.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// 2001-05-23 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.3.2 member functions (ostringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
- std::ostringstream os01;
- const std::string str00;
- const std::string str01 = "123";
- std::string str02;
- const int i01 = 123;
- int a,b;
-
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
- // string str() const
- str02 = os01.str();
- VERIFY( str00 == str02 );
-
- // void str(const basic_string&)
- os01.str(str01);
- str02 = os01.str();
- VERIFY( str01 == str02 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/2.cc
deleted file mode 100644
index 310b298152b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_ostringstream/str/char/2.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// 2001-05-23 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.3.2 member functions (ostringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// user-reported error
-class derived_oss: public std::ostringstream
-{
-public:
- derived_oss() : std::ostringstream() { }
-};
-
-void
-test04()
-{
- bool test = true;
- derived_oss yy;
- yy << "buena vista social club\n";
- VERIFY( yy.str() == std::string("buena vista social club\n") );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/1.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/1.cc
deleted file mode 100644
index d666528dc67..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/1.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 - Template class basic_streambuf
-// NB: This file is for testing basic_streambuf with NO OTHER INCLUDES.
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::streambuf test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/2.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/2.cc
deleted file mode 100644
index b3a48269bf4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/2.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 - Template class basic_streambuf
-// NB: This file is for testing basic_streambuf with NO OTHER INCLUDES.
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef short type_t;
- template class basic_streambuf<type_t, char_traits<type_t> >;
- template class basic_streambuf<pod_char, char_traits<pod_char> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/3.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/3.cc
deleted file mode 100644
index ffc765f77f9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/3.cc
+++ /dev/null
@@ -1,147 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-class gnu_sbuf: public std::basic_streambuf<gnu_char_type, gnu_char_traits>
-{ };
-
-void test07()
-{
- bool test = true;
-
- try
- { gnu_sbuf obj; }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/cons/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/cons/char/1.cc
deleted file mode 100644
index 905852422a6..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/cons/char/1.cc
+++ /dev/null
@@ -1,111 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-class testbuf : public std::streambuf
-{
-public:
-
- // Typedefs:
- typedef std::streambuf::traits_type traits_type;
- typedef std::streambuf::char_type char_type;
-
- testbuf(): std::streambuf()
- { _M_mode = (std::ios_base::in | std::ios_base::out); }
-
- bool
- check_pointers()
- {
- bool test = true;
- VERIFY( this->eback() == NULL );
- VERIFY( this->gptr() == NULL );
- VERIFY( this->egptr() == NULL );
- VERIFY( this->pbase() == NULL );
- VERIFY( this->pptr() == NULL );
- VERIFY( this->epptr() == NULL );
- return test;
- }
-
- int_type
- pub_uflow()
- { return (this->uflow()); }
-
- int_type
- pub_overflow(int_type __c = traits_type::eof())
- { return (this->overflow(__c)); }
-
- int_type
- pub_pbackfail(int_type __c)
- { return (this->pbackfail(__c)); }
-
- void
- pub_setg(char* beg, char* cur, char *end)
- { this->setg(beg, cur, end); }
-
- void
- pub_setp(char* beg, char* end)
- { this->setp(beg, end); }
-
-protected:
- int_type
- underflow()
- {
- int_type __retval = traits_type::eof();
- if (this->gptr() < this->egptr())
- __retval = traits_type::not_eof(0);
- return __retval;
- }
-};
-
-void test01()
-{
- typedef testbuf::traits_type traits_type;
- typedef testbuf::int_type int_type;
-
- bool test = true;
- char* lit01 = "chicago underground trio/possible cube on delmark";
- testbuf buf01;
-
- // 27.5.2.1 basic_streambuf ctors
- // default ctor initializes
- // - all pointer members to null pointers
- // - locale to current global locale
- VERIFY( buf01.check_pointers() );
- VERIFY( buf01.getloc() == std::locale() );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/1.cc
deleted file mode 100644
index b574cdc6736..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/1.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-class testbuf : public std::streambuf
-{
-public:
- typedef std::streambuf::traits_type traits_type;
-
- testbuf() : std::streambuf() { }
-};
-
-// test the streambuf locale settings
-void test02()
-{
- testbuf buf;
- std::locale loc_c = std::locale::classic();
- loc_c = buf.getloc();
- buf.pubimbue(loc_c); //This should initialize _M_init to true
- std::locale loc_tmp = buf.getloc();
- VERIFY( loc_tmp == loc_c );
-}
-
-int main()
-{
- test02();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/9322.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/9322.cc
deleted file mode 100644
index fee82668f9d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/imbue/char/9322.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <cstring> // for memset, memcmp
-#include <streambuf>
-#include <sstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-class testbuf : public std::streambuf
-{
-public:
- typedef std::streambuf::traits_type traits_type;
-
- testbuf() : std::streambuf() { }
-};
-
-// libstdc++/9322
-void test08()
-{
- using std::locale;
- bool test = true;
-
- locale loc;
- testbuf ob;
- VERIFY( ob.getloc() == loc );
-
- locale::global(__gnu_cxx_test::try_named_locale("en_US"));
- VERIFY( ob.getloc() == loc );
-
- locale loc_de = __gnu_cxx_test::try_named_locale("de_DE");
- locale ret = ob.pubimbue(loc_de);
- VERIFY( ob.getloc() == loc_de );
- VERIFY( ret == loc );
-
- locale::global(loc);
- VERIFY( ob.getloc() == loc_de );
-}
-
-int main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc
deleted file mode 100644
index 4f98839d907..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.5.2.2.3 Get area
-
-#include <fstream>
-#include <testsuite_hooks.h>
-
-class Derived_fbuf : public std::filebuf
-{
-public:
- const char_type* pub_egptr() const
- { return egptr(); }
-
- const char_type* pub_gptr() const
- { return gptr(); }
-};
-
-// libstdc++/9701 (in_avail)
-void test01()
-{
- using namespace std;
- bool test = true;
- const char* name = "tmp_file1";
-
- Derived_fbuf df2;
- df2.open(name, ios_base::in | ios_base::out | ios_base::trunc);
-
- df2.sputn("Comomoc", 7);
-
- df2.pubseekoff(0, ios_base::beg);
- df2.sbumpc();
- df2.sputbackc('t');
-
- VERIFY( df2.pub_gptr() < df2.pub_egptr() );
- VERIFY( df2.in_avail() == df2.pub_egptr() - df2.pub_gptr() );
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/1.cc
deleted file mode 100644
index 386193b46c0..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/1.cc
+++ /dev/null
@@ -1,116 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-class testbuf : public std::streambuf
-{
-public:
-
- // Typedefs:
- typedef std::streambuf::traits_type traits_type;
- typedef std::streambuf::char_type char_type;
-
- testbuf(): std::streambuf()
- { _M_mode = (std::ios_base::in | std::ios_base::out); }
-
- bool
- check_pointers()
- {
- bool test = true;
- VERIFY( this->eback() == NULL );
- VERIFY( this->gptr() == NULL );
- VERIFY( this->egptr() == NULL );
- VERIFY( this->pbase() == NULL );
- VERIFY( this->pptr() == NULL );
- VERIFY( this->epptr() == NULL );
- return test;
- }
-
- int_type
- pub_uflow()
- { return (this->uflow()); }
-
- int_type
- pub_overflow(int_type __c = traits_type::eof())
- { return (this->overflow(__c)); }
-
- int_type
- pub_pbackfail(int_type __c)
- { return (this->pbackfail(__c)); }
-
- void
- pub_setg(char* beg, char* cur, char *end)
- { this->setg(beg, cur, end); }
-
- void
- pub_setp(char* beg, char* end)
- { this->setp(beg, end); }
-
-protected:
- int_type
- underflow()
- {
- int_type __retval = traits_type::eof();
- if (this->gptr() < this->egptr())
- __retval = traits_type::not_eof(0);
- return __retval;
- }
-};
-
-void test01()
-{
- typedef testbuf::traits_type traits_type;
- typedef testbuf::int_type int_type;
-
- bool test = true;
- char* lit01 = "chicago underground trio/possible cube on delmark";
- testbuf buf01;
-
- // pbackfail
- int i01 = 3;
- buf01.pub_setg(lit01, lit01, (lit01 + i01));
- VERIFY( i01 == buf01.in_avail() );
- int_type intt01 = traits_type::to_int_type('b');
- VERIFY( traits_type::eof() == buf01.pub_pbackfail(intt01) );
-
- // overflow
- VERIFY( traits_type::eof() == buf01.pub_overflow(intt01) );
- VERIFY( traits_type::eof() == buf01.pub_overflow() );
- VERIFY( buf01.sgetc() == traits_type::to_int_type(lit01[0]) );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/2.cc
deleted file mode 100644
index dcee654b213..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/2.cc
+++ /dev/null
@@ -1,80 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// test03
-// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00151.html
-template<typename charT, typename traits = std::char_traits<charT> >
- class basic_nullbuf : public std::basic_streambuf<charT, traits>
- {
- protected:
- typedef typename
- std::basic_streambuf<charT, traits>::int_type int_type;
- virtual int_type
- overflow(int_type c)
- { return traits::not_eof(c); }
- };
-
-typedef basic_nullbuf<char> nullbuf;
-
-template<typename T>
- char
- print(const T& x)
- {
- nullbuf ob;
- std::ostream out(&ob);
- out << x << std::endl;
- return (!out ? '0' : '1');
- }
-
-void test03()
-{
- bool test = true;
- const std::string control01("11111");
- std::string test01;
-
- test01 += print(true);
- test01 += print(3.14159);
- test01 += print(10);
- test01 += print('x');
- test01 += print("pipo");
-
- VERIFY( test01 == control01 );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/3599.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/3599.cc
deleted file mode 100644
index 1b6cf0cf332..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/overflow/char/3599.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/3599
-class testbuf : public std::streambuf
-{
-public:
- typedef std::streambuf::traits_type traits_type;
-
- testbuf() : std::streambuf() { }
-
-protected:
- int_type
- overflow(int_type c = traits_type::eof())
- { return traits_type::not_eof(0); }
-};
-
-void
-test07()
-{
- bool test = true;
- testbuf ob;
- std::ostream out(&ob);
-
- out << "gasp";
- VERIFY(out.good());
-
- out << std::endl;
- VERIFY(out.good());
-}
-
-int main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/sgetc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/sgetc/char/1.cc
deleted file mode 100644
index 9efa3a72a48..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/sgetc/char/1.cc
+++ /dev/null
@@ -1,118 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-class testbuf : public std::streambuf
-{
-public:
-
- // Typedefs:
- typedef std::streambuf::traits_type traits_type;
- typedef std::streambuf::char_type char_type;
-
- testbuf(): std::streambuf()
- { _M_mode = (std::ios_base::in | std::ios_base::out); }
-
- bool
- check_pointers()
- {
- bool test = true;
- VERIFY( this->eback() == NULL );
- VERIFY( this->gptr() == NULL );
- VERIFY( this->egptr() == NULL );
- VERIFY( this->pbase() == NULL );
- VERIFY( this->pptr() == NULL );
- VERIFY( this->epptr() == NULL );
- return test;
- }
-
- int_type
- pub_uflow()
- { return (this->uflow()); }
-
- int_type
- pub_overflow(int_type __c = traits_type::eof())
- { return (this->overflow(__c)); }
-
- int_type
- pub_pbackfail(int_type __c)
- { return (this->pbackfail(__c)); }
-
- void
- pub_setg(char* beg, char* cur, char *end)
- { this->setg(beg, cur, end); }
-
- void
- pub_setp(char* beg, char* end)
- { this->setp(beg, end); }
-
-protected:
- int_type
- underflow()
- {
- int_type __retval = traits_type::eof();
- if (this->gptr() < this->egptr())
- __retval = traits_type::not_eof(0);
- return __retval;
- }
-};
-
-void test01()
-{
- typedef testbuf::traits_type traits_type;
- typedef testbuf::int_type int_type;
-
- bool test = true;
- char* lit01 = "chicago underground trio/possible cube on delmark";
- testbuf buf01;
-
- // 27.5.2.3.1 get area
- // 27.5.2.2.3 get area
- // 27.5.2.4.3 get area
- int i01 = 3;
- buf01.pub_setg(lit01, lit01, (lit01 + i01));
- VERIFY( i01 == buf01.in_avail() );
-
- VERIFY( buf01.pub_uflow() == lit01[0] );
- VERIFY( buf01.sgetc() == traits_type::to_int_type(lit01[1]) );
- VERIFY( buf01.pub_uflow() == lit01[1] );
- VERIFY( buf01.sgetc() == traits_type::to_int_type(lit01[2]) );
- VERIFY( buf01.pub_uflow() == lit01[2] );
- VERIFY( buf01.sgetc() == traits_type::eof() );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/sgetn/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/sgetn/char/1.cc
deleted file mode 100644
index 2466de5299f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/sgetn/char/1.cc
+++ /dev/null
@@ -1,126 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-class testbuf : public std::streambuf
-{
-public:
-
- // Typedefs:
- typedef std::streambuf::traits_type traits_type;
- typedef std::streambuf::char_type char_type;
-
- testbuf(): std::streambuf()
- { _M_mode = (std::ios_base::in | std::ios_base::out); }
-
- bool
- check_pointers()
- {
- bool test = true;
- VERIFY( this->eback() == NULL );
- VERIFY( this->gptr() == NULL );
- VERIFY( this->egptr() == NULL );
- VERIFY( this->pbase() == NULL );
- VERIFY( this->pptr() == NULL );
- VERIFY( this->epptr() == NULL );
- return test;
- }
-
- int_type
- pub_uflow()
- { return (this->uflow()); }
-
- int_type
- pub_overflow(int_type __c = traits_type::eof())
- { return (this->overflow(__c)); }
-
- int_type
- pub_pbackfail(int_type __c)
- { return (this->pbackfail(__c)); }
-
- void
- pub_setg(char* beg, char* cur, char *end)
- { this->setg(beg, cur, end); }
-
- void
- pub_setp(char* beg, char* end)
- { this->setp(beg, end); }
-
-protected:
- int_type
- underflow()
- {
- int_type __retval = traits_type::eof();
- if (this->gptr() < this->egptr())
- __retval = traits_type::not_eof(0);
- return __retval;
- }
-};
-
-void test02()
-{
- typedef testbuf::traits_type traits_type;
- typedef testbuf::int_type int_type;
-
- bool test = true;
- char* lit01 = "chicago underground trio/possible cube on delmark";
- testbuf buf01;
-
- // 27.5.2.1 basic_streambuf ctors
- // default ctor initializes
- // - all pointer members to null pointers
- // - locale to current global locale
- VERIFY( buf01.check_pointers() );
- VERIFY( buf01.getloc() == std::locale() );
-
- // 27.5.2.2.5 Put area
- size_t i01 = traits_type::length(lit01);
- char carray01[i01];
- std::memset(carray01, 0, i01);
-
- buf01.pub_setg(lit01, lit01, lit01 + i01);
- buf01.sgetn(carray01, 0);
- VERIFY( carray01[0] == 0 );
- buf01.sgetn(carray01, 1);
- VERIFY( carray01[0] == 'c' );
- buf01.sgetn(carray01 + 1, i01 - 1);
- VERIFY( carray01[0] == 'c' );
- VERIFY( carray01[1] == 'h' );
- VERIFY( carray01[i01 - 1] == 'k' );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/sputbackc/char/9538.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/sputbackc/char/9538.cc
deleted file mode 100644
index b90e3d50858..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/sputbackc/char/9538.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <streambuf>
-#include <locale>
-#include <testsuite_hooks.h>
-
-class MyTraits : public std::char_traits<char>
-{
-public:
- static bool eq(char c1, char c2)
- {
- bool test = true;
- VERIFY( c1 != 'X' );
- VERIFY( c2 != 'X' );
- return std::char_traits<char>::eq(c1, c2);
- }
-};
-
-class MyBuf : public std::basic_streambuf<char, MyTraits>
-{
- char buffer[8];
-
-public:
- MyBuf()
- {
- std::memset(buffer, 'X', sizeof(buffer));
- std::memset(buffer + 2, 'f', 4);
- setg(buffer + 2, buffer + 2, buffer + 6);
- }
-};
-
-// libstdc++/9538
-void test08()
-{
- bool test = true;
-
- MyBuf mb;
- mb.sputbackc('a');
-}
-
-main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/sputc/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/sputc/char/1057.cc
deleted file mode 100644
index de849513c01..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/sputc/char/1057.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <string>
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-class nullsetpbuf : public std::streambuf
-{
- char foo[64];
-public:
- nullsetpbuf()
- {
- setp(foo, foo + 64);
- setp(NULL, NULL);
- }
-};
-
-// libstdc++/1057
-void test05()
-{
- std::string text1 = "abcdefghijklmn";
-
- nullsetpbuf nsp;
- // Immediate crash as sputc writes to null pointer
- nsp.sputc('a');
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1.cc
deleted file mode 100644
index f48f788f4f2..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1.cc
+++ /dev/null
@@ -1,124 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-class testbuf : public std::streambuf
-{
-public:
-
- // Typedefs:
- typedef std::streambuf::traits_type traits_type;
- typedef std::streambuf::char_type char_type;
-
- testbuf(): std::streambuf()
- { _M_mode = (std::ios_base::in | std::ios_base::out); }
-
- bool
- check_pointers()
- {
- bool test = true;
- VERIFY( this->eback() == NULL );
- VERIFY( this->gptr() == NULL );
- VERIFY( this->egptr() == NULL );
- VERIFY( this->pbase() == NULL );
- VERIFY( this->pptr() == NULL );
- VERIFY( this->epptr() == NULL );
- return test;
- }
-
- int_type
- pub_uflow()
- { return (this->uflow()); }
-
- int_type
- pub_overflow(int_type __c = traits_type::eof())
- { return (this->overflow(__c)); }
-
- int_type
- pub_pbackfail(int_type __c)
- { return (this->pbackfail(__c)); }
-
- void
- pub_setg(char* beg, char* cur, char *end)
- { this->setg(beg, cur, end); }
-
- void
- pub_setp(char* beg, char* end)
- { this->setp(beg, end); }
-
-protected:
- int_type
- underflow()
- {
- int_type __retval = traits_type::eof();
- if (this->gptr() < this->egptr())
- __retval = traits_type::not_eof(0);
- return __retval;
- }
-};
-
-void test01()
-{
- typedef testbuf::traits_type traits_type;
- typedef testbuf::int_type int_type;
-
- bool test = true;
- char* lit01 = "chicago underground trio/possible cube on delmark";
- testbuf buf01;
- int i01 = 3;
-
- // sputn/xsputn
- char* lit02 = "isotope 217: the unstable molecule on thrill jockey";
- int i02 = std::strlen(lit02);
- char carray[i02 + 1];
- std::memset(carray, 0, i02 + 1);
-
- buf01.pub_setp(carray, (carray + i02));
- buf01.sputn(lit02, 0);
- VERIFY( carray[0] == 0 );
- VERIFY( lit02[0] == 'i' );
- buf01.sputn(lit02, 1);
- VERIFY( lit02[0] == carray[0] );
- VERIFY( lit02[1] == 's' );
- VERIFY( carray[1] == 0 );
- buf01.sputn(lit02 + 1, 10);
- VERIFY( std::memcmp(lit02, carray, 10) == 0 );
- buf01.sputn(lit02 + 11, 20);
- VERIFY( std::memcmp(lit02, carray, 30) == 0 );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1057.cc
deleted file mode 100644
index 628e2e77d73..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/sputn/char/1057.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-class nullsetpbuf : public std::streambuf
-{
- char foo[64];
-public:
- nullsetpbuf()
- {
- setp(foo, foo + 64);
- setp(NULL, NULL);
- }
-};
-
-// libstdc++/1057
-void test05()
-{
- std::string text1 = "abcdefghijklmn";
-
- nullsetpbuf nsp;
- // Immediate crash as xsputn writes to null pointer
- nsp.sputn(text1.c_str(), text1.length());
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_streambuf/sync/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_streambuf/sync/char/1057.cc
deleted file mode 100644
index 8e2d3c0aef7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_streambuf/sync/char/1057.cc
+++ /dev/null
@@ -1,108 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <streambuf>
-#include <testsuite_hooks.h>
-
-class setpbuf : public std::streambuf
-{
- char buffer[4];
- std::string result;
-
-public:
-
- std::string&
- get_result()
- { return result; }
-
- setpbuf()
- {
- char foo [32];
- setp(foo, foo + 32);
- setp(buffer, buffer + 4);
- }
-
- ~setpbuf()
- { sync(); }
-
- virtual int_type
- overflow(int_type n)
- {
- if (sync() != 0)
- return traits_type::eof();
-
- result += traits_type::to_char_type(n);
-
- return n;
- }
-
- virtual int
- sync()
- {
- result.append(pbase(), pptr());
- setp(buffer, buffer + 4);
- return 0;
- }
-};
-
-// libstdc++/1057
-void test04()
-{
- bool test = true;
- std::string text = "abcdefghijklmn";
-
- // 01
- setpbuf sp1;
- // Here xsputn writes over sp1.result
- sp1.sputn(text.c_str(), text.length());
-
- // This crashes when result is accessed
- sp1.pubsync();
- VERIFY( sp1.get_result() == text );
-
- // 02
- setpbuf sp2;
- for (std::string::size_type i = 0; i < text.length(); ++i)
- {
- // sputc also writes over result
- sp2.sputc(text[i]);
- }
-
- // Crash here
- sp2.pubsync();
- VERIFY( sp2.get_result() == text );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/1.cc
deleted file mode 100644
index a91deab2f1d..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/1.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.7.1 - Template class basic_stringbuf
-// NB: This file is for testing basic_stringbuf with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::stringbuf test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
-
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef short type_t;
- template class basic_stringbuf<type_t, char_traits<type_t> >;
- template class basic_stringbuf<pod_char, char_traits<pod_char> >;
-} // test
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/2.cc
deleted file mode 100644
index f40868a179f..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/2.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1 - Template class basic_stringbuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// test05
-// libstdc++/1886
-// should be able to instantiate basic_stringbuf for non-standard types.
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef short type_t;
- template class basic_stringbuf<type_t, char_traits<type_t> >;
- template class basic_stringbuf<pod_char, char_traits<pod_char> >;
-} // test
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/3.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/3.cc
deleted file mode 100644
index 93358ccfe58..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/3.cc
+++ /dev/null
@@ -1,145 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1 - Template class basic_stringbuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_stringbuf<gnu_char_type, gnu_char_traits> gnu_ssbuf;
-
- try
- { gnu_ssbuf obj; }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/4.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/4.cc
deleted file mode 100644
index cd4c4311c6a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/4.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2003-04-07 bkoz
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1 - Template class basic_stringbuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-#include <testsuite_allocator.h>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef __gnu_cxx_test::tracker_alloc<char> alloc_type;
- template class basic_stringbuf<char, char_traits<char>, alloc_type>;
-} // test
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/5.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/5.cc
deleted file mode 100644
index 4f308b98cb7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/5.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1 - Template class basic_stringbuf
-
-#include <sstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::stringbuf test_type;
- typedef std::streambuf base_type;
- const test_type& obj = test_type();
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc
deleted file mode 100644
index 153d7df6a8a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/1.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::stringbuf strb_01(str_01);
-
-// test the streambuf/stringbuf locale settings
-void test02()
-{
- std::locale loc_c = std::locale::classic();
- loc_c = strb_01.getloc();
- strb_01.pubimbue(loc_c); //This should initialize _M_init to true
- std::locale loc_tmp = strb_01.getloc();
- VERIFY( loc_tmp == loc_c );
-}
-
-int main()
-{
- test02();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/9322.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/9322.cc
deleted file mode 100644
index 7006dda094a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/imbue/char/9322.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1.3 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9322
-void test03()
-{
- using std::locale;
- bool test = true;
-
- locale loc = std::locale::classic();
- std::stringbuf ob;
- VERIFY( ob.getloc() == loc );
-
- locale::global(__gnu_cxx_test::try_named_locale("en_US"));
- VERIFY( ob.getloc() == loc );
-
- locale loc_de = __gnu_cxx_test::try_named_locale("de_DE");
- locale ret = ob.pubimbue(loc_de);
- VERIFY( ob.getloc() == loc_de );
- VERIFY( ret == loc );
-
- locale::global(loc);
- VERIFY( ob.getloc() == loc_de );
-}
-
-int main()
-{
- using namespace std;
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc
deleted file mode 100644
index 928f9457cb4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/in_avail/char/1.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- // GET
- // int in_avail()
- strmof_1 = strb_01.in_avail();
- strmof_2 = strb_02.in_avail();
- VERIFY( strmof_1 != strmof_2 );
- VERIFY( strmof_1 == str_01.length() );
- VERIFY( strmof_2 == str_02.length() );
- strmof_1 = strb_03.in_avail();
- // zero cuz write-only, or eof()? zero, from showmany
- VERIFY( strmof_1 == 0 );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc
deleted file mode 100644
index 90845d0ad47..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/2.cc
+++ /dev/null
@@ -1,80 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <sstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// test03
-// http://gcc.gnu.org/ml/libstdc++/2000-q1/msg00151.html
-template<typename charT, typename traits = std::char_traits<charT> >
- class basic_nullbuf : public std::basic_stringbuf<charT, traits>
- {
- protected:
- typedef typename
- std::basic_stringbuf<charT, traits>::int_type int_type;
- virtual int_type
- overflow(int_type c)
- { return traits::not_eof(c); }
- };
-
-typedef basic_nullbuf<char> nullbuf;
-
-template<typename T>
- char
- print(const T& x)
- {
- nullbuf ob;
- std::ostream out(&ob);
- out << x << std::endl;
- return (!out ? '0' : '1');
- }
-
-void test03()
-{
- bool test = true;
- const std::string control01("11111");
- std::string test01;
-
- test01 += print(true);
- test01 += print(3.14159);
- test01 += print(10);
- test01 += print('x');
- test01 += print("pipo");
-
- VERIFY( test01 == control01 );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc
deleted file mode 100644
index a8e3a287464..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/3599.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <sstream>
-#include <ostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/3599
-class testbuf : public std::stringbuf
-{
-public:
- typedef std::stringbuf::traits_type traits_type;
-
- testbuf() : std::stringbuf() { }
-
-protected:
- int_type
- overflow(int_type c = traits_type::eof())
- { return traits_type::not_eof(0); }
-};
-
-void
-test07()
-{
- bool test = true;
- testbuf ob;
- std::ostream out(&ob);
-
- out << "gasp";
- VERIFY(out.good());
-
- out << std::endl;
- VERIFY(out.good());
-}
-
-int main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc
deleted file mode 100644
index abdd4def261..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/9988.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-class OverBuf : public std::stringbuf
-{
-public:
- int_type pub_overflow(int_type c = traits_type::eof())
- { return std::stringbuf::overflow(c); }
-};
-
-// libstdc++/9988
-// filebuf::overflow writes EOF to file
-void test15()
-{
- using namespace std;
- bool test = true;
-
- OverBuf sb;
-
- sb.sputc('a');
- sb.pub_overflow('b');
- sb.pub_overflow();
- sb.sputc('c');
-
- stringbuf sbin(sb.str(), ios_base::in);
- stringbuf::int_type c;
- c = sbin.sbumpc();
- VERIFY( c == 'a' );
- c = sbin.sbumpc();
- VERIFY( c == 'b' );
- c = sbin.sbumpc();
- VERIFY( c == 'c' );
- c = sbin.sbumpc();
- VERIFY( c == stringbuf::traits_type::eof() );
-}
-
-main()
-{
- test15();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc
deleted file mode 100644
index f075f9db759..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- // GET
- strmof_1 = strb_01.in_avail();
- strmof_2 = strb_02.in_avail();
- strmof_1 = strb_03.in_avail();
-
- // int_type sbumpc()
- // if read_cur not avail, return uflow(), else return *read_cur & increment
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- VERIFY( c1 != c2 );
- VERIFY( c1 == str_01[0] );
- VERIFY( c2 == str_02[0] ); //should equal first letter at this point
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- VERIFY( c1 != c2 );
- VERIFY( c1 != c3 );
- VERIFY( c2 != c4 );
- int_type c5 = strb_03.sbumpc();
- VERIFY( c5 == traits_type::eof() );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/9825.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/9825.cc
deleted file mode 100644
index df6fa264d0e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sbumpc/char/9825.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9825
-// filebuf::sputbackc breaks sbumpc
-void test12()
-{
- using namespace std;
- bool test = true;
-
- stringbuf sbuf;
- sbuf.sputn("crazy bees!", 11);
- sbuf.pubseekoff(0, ios_base::beg);
- sbuf.sbumpc();
- sbuf.sputbackc('x');
- stringbuf::int_type c = sbuf.sbumpc();
- VERIFY( c == 'x' );
- c = sbuf.sbumpc();
- VERIFY( c == 'r' );
- c = sbuf.sbumpc();
- VERIFY( c == 'a' );
-}
-
-main()
-{
- test12();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc
deleted file mode 100644
index 579206ff160..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc
+++ /dev/null
@@ -1,124 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // PUT
- strb_03.str(str_01); //reset
-
- // BUFFER MANAGEMENT & POSITIONING
-
- // seekoff
- // pubseekoff(off_type off, ios_base::seekdir way, ios_base::openmode which)
- // alters the stream position to off
- pos_type pt_1(off_type(-1));
- pos_type pt_2(off_type(0));
- off_type off_1 = 0;
- off_type off_2 = 0;
- strb_01.str(str_01); //in|out ("mykonos. . . or what?");
- strb_02.str(str_02); //in ("paris, or sainte-maxime?");
- strb_03.str(str_03); //out ("")
- //IN|OUT
- //beg
- pt_1 = strb_01.pubseekoff(2, std::ios_base::beg);
- off_1 = pt_1;
- VERIFY( off_1 >= 0 );
- c1 = strb_01.snextc(); //current in pointer +1
- VERIFY( c1 == 'o' );
- c2 = strb_01.sputc('x'); //test current out pointer
- str_tmp = std::string("myxonos. . . or what?");
- VERIFY( strb_01.str() == str_tmp );
- //cur
- pt_1 = strb_01.pubseekoff(2, std::ios_base::cur);
- off_1 = pt_1;
- VERIFY( off_1 == -1 ); // can't seekoff for in and out + cur in sstreams
- pt_1 = strb_01.pubseekoff(2, std::ios_base::cur, std::ios_base::in);
- off_1 = pt_1;
- pt_2 = strb_01.pubseekoff(2, std::ios_base::cur, std::ios_base::in);
- off_2 = pt_2;
- VERIFY( off_2 == off_1 + 2 );
- c1 = strb_01.snextc(); //current in pointer + 1
- VERIFY( c1 == ' ' );
- c2 = strb_01.sputc('x'); //test current out pointer
- str_tmp = std::string("myxxnos. . . or what?");
- VERIFY( strb_01.str() == str_tmp );
- //end
- pt_2 = strb_01.pubseekoff(2, std::ios_base::end);
- off_1 = pt_2;
- VERIFY( off_1 == -1 ); // not a valid position
- VERIFY( strb_01.str() == str_tmp );
- // end part two (from the filebuf tests)
- strb_01.pubseekoff(0, std::ios_base::end);
- strmsz_1 = strb_01.in_avail(); // 0 cuz at the end
- c1 = strb_01.sgetc();
- c2 = strb_01.sungetc();
- strmsz_2 = strb_01.in_avail(); // 1
- c3 = strb_01.sgetc();
- VERIFY( c1 != c2 );
- VERIFY( strmsz_2 != strmsz_1 );
- VERIFY( strmsz_2 == 1 );
- // end part three
- strmsz_1 = strb_01.str().size();
- strmsz_2 = strb_01.sputn(" ravi shankar meets carlos santana in LoHa", 90);
- strb_01.pubseekoff(0, std::ios_base::end);
- strb_01.sputc('<');
- str_tmp = strb_01.str();
- VERIFY( str_tmp.size() == strmsz_1 + strmsz_2 + 1 );
- // IN
- // OUT
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/2.cc
deleted file mode 100644
index 869cd46f56a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/2.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1.3 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test02(std::stringbuf& in, bool pass)
-{
- bool test = true;
- using namespace std;
- typedef streambuf::pos_type pos_type;
- typedef streambuf::off_type off_type;
- pos_type bad = pos_type(off_type(-1));
- pos_type p = 0;
-
- // seekoff
- p = in.pubseekoff(0, ios_base::beg, ios_base::in);
- if (pass)
- VERIFY( p != bad );
-
- p = in.pubseekoff(0, ios_base::beg, ios_base::out);
- VERIFY( p == bad );
-
- p = in.pubseekoff(0, ios_base::beg);
- VERIFY( p == bad );
-}
-
-int main()
-{
- using namespace std;
-
- // movie star, submarine scientist!
- stringbuf in1("Hedy Lamarr", ios_base::in);
- stringbuf in2(ios_base::in);
- stringbuf in3("", ios_base::in);
- test02(in1, true);
- test02(in2, false);
- test02(in3, false);
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc
deleted file mode 100644
index 12143c5add7..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/1.cc
+++ /dev/null
@@ -1,98 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- pos_type pt_1(off_type(-1));
- pos_type pt_2(off_type(0));
- off_type off_1 = 0;
- off_type off_2 = 0;
-
- // PUT
- strb_03.str(str_01); //reset
-
- // BUFFER MANAGEMENT & POSITIONING
-
- // seekpos
- // pubseekpos(pos_type sp, ios_base::openmode)
- // alters the stream position to sp
- strb_01.str(str_01); //in|out ("mykonos. . . or what?");
- strb_02.str(str_02); //in ("paris, or sainte-maxime?");
- strb_03.str(str_03); //out ("")
- //IN|OUT
- //beg
- pt_1 = strb_01.pubseekoff(2, std::ios_base::beg);
- off_1 = pt_1;
- VERIFY( off_1 >= 0 );
- pt_1 = strb_01.pubseekoff(0, std::ios_base::cur, std::ios_base::out);
- off_1 = pt_1;
- c1 = strb_01.snextc(); //current in pointer +1
- VERIFY( c1 == 'o' );
- c2 = strb_01.sputc('x'); //test current out pointer
- str_tmp = std::string("myxonos. . . or what?");
- VERIFY( strb_01.str() == str_tmp );
- strb_01.pubsync(); //resets pointers
- pt_2 = strb_01.pubseekpos(pt_1, std::ios_base::in|std::ios_base::out);
- off_2 = pt_2;
- VERIFY( off_1 == off_2 );
- c3 = strb_01.snextc(); //current in pointer +1
- VERIFY( c1 == c3 );
- c2 = strb_01.sputc('x'); //test current out pointer
- str_tmp = std::string("myxonos. . . or what?");
- VERIFY( strb_01.str() == str_tmp );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc
deleted file mode 100644
index c3c6a8ad683..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/2.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1.3 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test02(std::stringbuf& in, bool pass)
-{
- bool test = true;
- using namespace std;
- typedef streambuf::pos_type pos_type;
- typedef streambuf::off_type off_type;
- pos_type bad = pos_type(off_type(-1));
- pos_type p = 0;
-
- // seekpos
- p = in.pubseekpos(0, ios_base::in);
- if (pass)
- VERIFY( p != bad );
-
- p = in.pubseekpos(0, ios_base::out);
- VERIFY( p == bad );
-
- p = in.pubseekpos(0);
- if (pass)
- VERIFY( p != bad );
-}
-
-int main()
-{
- using namespace std;
-
- // movie star, submarine scientist!
- stringbuf in1("Hedy Lamarr", ios_base::in);
- stringbuf in2(ios_base::in);
- stringbuf in3("", ios_base::in);
- test02(in1, true);
- test02(in2, false);
- test02(in3, false);
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc
deleted file mode 100644
index e79da0eda3a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/1.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // PUT
- strb_03.str(str_01); //reset
-
- // BUFFER MANAGEMENT & POSITIONING
- // setbuf
- // pubsetbuf(char_type* s, streamsize n)
- str_tmp = std::string("naaaah, go to cebu");
- strb_01.pubsetbuf(const_cast<char*> (str_tmp.c_str()), str_tmp.size());
- VERIFY( strb_01.str() == str_tmp );
- strb_01.pubsetbuf(0,0);
- VERIFY( strb_01.str() == str_tmp );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc
deleted file mode 100644
index 0eade15314a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/2.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- using namespace std;
-
- bool test = true;
- char buf[512];
- const char* strlit = "how to tell a story and other essays: mark twain";
- const size_t strlitsize = std::strlen(strlit);
- stringbuf sbuf;
-
- sbuf.pubsetbuf(buf, 512);
- sbuf.sputn(strlit, strlitsize);
- VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
-}
-
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/3.cc
deleted file mode 100644
index 6a8d0b462e4..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/char/3.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test02()
-{
- using namespace std;
-
- bool test = true;
- char buf[512];
- const char* strlit = "how to tell a story and other essays: mark twain";
- const size_t strlitsize = std::strlen(strlit);
- string s("tmp");
- stringbuf sbuf(s, ios_base::out);
- sbuf.pubsetbuf(buf, strlitsize);
- sbuf.sputn(strlit, strlitsize);
- VERIFY( std::strncmp(strlit, buf, strlitsize) == 0 );
-}
-
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc
deleted file mode 100644
index c34109df6b1..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetc/char/1.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- // GET
- strmof_1 = strb_01.in_avail();
- strmof_2 = strb_02.in_avail();
- strmof_1 = strb_03.in_avail();
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // int_type sgetc()
- // if read_cur not avail, return uflow(), else return *read_cur
- int_type c6 = strb_01.sgetc();
- int_type c7 = strb_02.sgetc();
- VERIFY( c6 != c3 );
- VERIFY( c7 != c4 );
- int_type c8 = strb_01.sgetc();
- int_type c9 = strb_02.sgetc();
- VERIFY( c6 == c8 );
- VERIFY( c7 == c9 );
- c5 = strb_03.sgetc();
- VERIFY( c5 == traits_type::eof() );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc
deleted file mode 100644
index 420a318c86b..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sgetn/char/1.cc
+++ /dev/null
@@ -1,108 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- // GET
- strmof_1 = strb_01.in_avail();
- strmof_2 = strb_02.in_avail();
- strmof_1 = strb_03.in_avail();
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // int_type sgetc()
- // if read_cur not avail, return uflow(), else return *read_cur
- int_type c6 = strb_01.sgetc();
- int_type c7 = strb_02.sgetc();
- int_type c8 = strb_01.sgetc();
- int_type c9 = strb_02.sgetc();
- c5 = strb_03.sgetc();
-
- // int_type snextc()
- // calls sbumpc and if sbumpc != eof, return sgetc
- c6 = strb_01.snextc();
- c7 = strb_02.snextc();
- c5 = strb_03.snextc();
-
- // streamsize sgetn(char_type *s, streamsize n)
- // streamsize xsgetn(char_type *s, streamsize n)
- // assign up to n chars to s from input sequence, indexing in_cur as
- // approp and returning the number of chars assigned
- strmsz_1 = strb_01.in_avail();
- strmsz_2 = strb_02.in_avail();
- test = strmsz_1 != strmsz_2;
- VERIFY( strmsz_1 != str_01.length() );
- VERIFY( strmsz_2 != str_02.length() ); //because now we've moved into string
- char carray1[11] = "";
- strmsz_1 = strb_01.sgetn(carray1, 10);
- char carray2[20] = "";
- strmsz_2 = strb_02.sgetn(carray2, 10);
- VERIFY( strmsz_1 == strmsz_2 );
- VERIFY( strmsz_1 == 10 );
- c1 = strb_01.sgetc();
- c2 = strb_02.sgetc();
- VERIFY( c6 == c1 ); //just by co-incidence both o's
- VERIFY( c7 != c2 ); // n != i
- VERIFY( c1 == str_01[13] );
- VERIFY( c2 == str_02[13] ); //should equal fourteenth letter at this point
- strmsz_1 = strb_03.sgetn(carray1, 10);
- VERIFY( !strmsz_1 ); //zero
- strmsz_1 = strb_02.in_avail();
- strmsz_2 = strb_02.sgetn(carray2, strmsz_1 + 5);
- VERIFY( strmsz_1 == strmsz_2 ); //write off the end
- c4 = strb_02.sgetc(); // should be EOF
- VERIFY( c4 == traits_type::eof() );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc
deleted file mode 100644
index 63e3515c802..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/snextc/char/1.cc
+++ /dev/null
@@ -1,84 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- // GET
- strmof_1 = strb_01.in_avail();
- strmof_2 = strb_02.in_avail();
- strmof_1 = strb_03.in_avail();
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // int_type sgetc()
- // if read_cur not avail, return uflow(), else return *read_cur
- int_type c6 = strb_01.sgetc();
- int_type c7 = strb_02.sgetc();
- int_type c8 = strb_01.sgetc();
- int_type c9 = strb_02.sgetc();
- c5 = strb_03.sgetc();
-
- // int_type snextc()
- // calls sbumpc and if sbumpc != eof, return sgetc
- c6 = strb_01.snextc();
- c7 = strb_02.snextc();
- VERIFY( c6 != c8 );
- VERIFY( c7 != c9 );
- VERIFY( c6 == str_01[3] );
- VERIFY( c7 == str_02[3] ); //should equal fourth letter at this point
- c5 = strb_03.snextc();
- VERIFY( c5 == traits_type::eof() );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc
deleted file mode 100644
index ef7c68f72c0..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc
+++ /dev/null
@@ -1,122 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp, str_tmp2;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // PUT
- strb_03.str(str_01); //reset
- std::string::size_type sz1 = strb_03.str().length();
- std::string::size_type sz2 = strb_03.str().length();
-
- // streamsize sputn(const char_typs* s, streamsize n)
- // write up to n chars to out_cur from s, returning number assigned
- // NB *sputn will happily put '\0' into your stream if you give it a chance*
- str_tmp = strb_03.str();
- sz1 = str_tmp.length();
- strmsz_1 = strb_03.sputn("racadabras", 10);//"abracadabras or what?"
- sz2 = strb_03.str().length();
- strmsz_2 = strb_03.sputn(", i wanna reach out and", 10);
- sz2 = strb_03.str().length();
- str_tmp = strb_02.str();
- strmsz_1 = strb_02.sputn("racadabra", 10);
-
- // PUTBACK
-
- // int_type sputbackc(char_type c)
- // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
- // otherwise decrements in_cur and returns *gptr()
- strmsz_1 = strb_01.in_avail();
- str_tmp = strb_01.str();
- c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
- c2 = strb_01.sputbackc('z');//"mykonos. . .zor what?"
- c3 = strb_01.sgetc();
- str_tmp2 = strb_01.str();
- VERIFY( c1 != c2 );
- VERIFY( c3 == c2 );
- VERIFY( str_tmp2 == std::string("mzkonos. . . or what?") );
- VERIFY( str_tmp.size() == str_tmp2.size() );
- //test for _in_cur == _in_beg
- strb_01.str(str_tmp);
- strmsz_1 = strb_01.in_avail();
- c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
- c2 = strb_01.sputbackc('z');//"mykonos. . . or what?"
- c3 = strb_01.sgetc();
- VERIFY( c1 != c2 );
- VERIFY( c3 != c2 );
- VERIFY( c1 == c3 );
- VERIFY( c2 == traits_type::eof() );
- VERIFY( strb_01.str() == str_tmp );
- VERIFY( str_tmp.size() == strb_01.str().size() );
- // test for replacing char with identical one
- strb_01.str(str_01); //reset
- strmsz_1 = strb_01.in_avail();
- strb_01.sbumpc();
- strb_01.sbumpc();
- c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
- c2 = strb_01.sputbackc('y');//"mykonos. . . or what?"
- c3 = strb_01.sgetc();
- VERIFY( c1 != c2 );
- VERIFY( c3 == c2 );
- VERIFY( c1 != c3 );
- VERIFY( strb_01.str() == str_01 );
- VERIFY( str_01.size() == strb_01.str().size() );
- //test for ios_base::out
- strmsz_2 = strb_03.in_avail();
- c4 = strb_03.sputbackc('x');
- VERIFY( c4 == traits_type::eof() );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/9425.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/9425.cc
deleted file mode 100644
index e7dcaa1dbb9..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputbackc/char/9425.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.4 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/9439, libstdc++/9425
-// basic_filebuf<>::pbackfail calls basic_filebuf<>::seekoff, but
-// fails to check the return value
-void test09()
-{
- using namespace std;
- bool test = true;
-
- stringbuf sbuf;
- stringbuf::int_type r = sbuf.sputbackc('a');
- VERIFY( r == stringbuf::traits_type::eof() );
-}
-
-main()
-{
- test09();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc
deleted file mode 100644
index 8e486424840..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // PUT
- // int_type sputc(char_type c)
- // if out_cur not avail, return overflow. Else, stores c at out_cur,
- // increments out_cur, and returns c as int_type
- strb_03.str(str_01); //reset
- std::string::size_type sz1 = strb_03.str().length();
- c1 = strb_03.sputc('a');
- std::string::size_type sz2 = strb_03.str().length();
- VERIFY( sz1 == sz2 ); //cuz inserting at out_cur, which is at beg to start
- c2 = strb_03.sputc('b');
- VERIFY( c1 != c2 );
- VERIFY( strb_03.str() != str_01 );
- c3 = strb_02.sputc('a'); // should be EOF because this is read-only
- VERIFY( c3 == traits_type::eof() );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1057.cc
deleted file mode 100644
index d4f005e496c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/1057.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-class nullsetpbuf : public std::stringbuf
-{
- char foo[64];
-public:
- nullsetpbuf()
- {
- setp(foo, foo + 64);
- setp(NULL, NULL);
- }
-};
-
-// libstdc++/1057
-void test05()
-{
- std::string text1 = "abcdefghijklmn";
-
- nullsetpbuf nsp;
- // Immediate crash as sputc writes to null pointer
- nsp.sputc('a');
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/9404-1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/9404-1.cc
deleted file mode 100644
index 6d4019295d2..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputc/char/9404-1.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1.3 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-bool over_called;
-
-class Derived_stringbuf : public std::stringbuf
-{
-public:
- int_type overflow(int_type c)
- {
- over_called = true;
- return std::stringbuf::overflow(c);
- }
-
- const char_type* pub_epptr() const
- {
- return epptr();
- }
-
- const char_type* pub_pptr() const
- {
- return pptr();
- }
-};
-
-// libstdc++/9404
-void test04()
-{
- bool test = true;
-
- bool over_expected;
-
- // sputc
- Derived_stringbuf dsbuf_01;
- over_called = false;
- dsbuf_01.sputc('i');
- VERIFY( over_called );
- over_expected = dsbuf_01.pub_epptr() == dsbuf_01.pub_pptr();
- over_called = false;
- dsbuf_01.sputc('v');
- VERIFY( (!over_expected && !over_called)
- || (over_expected && over_called) );
- dsbuf_01.sputc('i');
- VERIFY( dsbuf_01.str() == "ivi" ); // Sanity check.
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc
deleted file mode 100644
index 525014c2a02..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // PUT
- strb_03.str(str_01); //reset
- std::string::size_type sz1 = strb_03.str().length();
- std::string::size_type sz2 = strb_03.str().length();
-
- // streamsize sputn(const char_typs* s, streamsize n)
- // write up to n chars to out_cur from s, returning number assigned
- // NB *sputn will happily put '\0' into your stream if you give it a chance*
- str_tmp = strb_03.str();
- sz1 = str_tmp.length();
- strmsz_1 = strb_03.sputn("racadabras", 10);//"abracadabras or what?"
- sz2 = strb_03.str().length();
- VERIFY( sz1 == sz2 ); //shouldn't have changed length
- VERIFY( strmsz_1 == 10 );
- VERIFY( str_tmp != strb_03.str() );
- strmsz_2 = strb_03.sputn(", i wanna reach out and", 23);
- VERIFY( strmsz_1 != strmsz_2 ); // should re-allocate, copy 10 chars.
- VERIFY( strmsz_1 == 10 );
- VERIFY( strmsz_2 == 23 );
- sz2 = strb_03.str().length();
- VERIFY( sz1 != sz2 ); // need to change length
- VERIFY( str_tmp != strb_03.str() );
- str_tmp = strb_02.str();
- strmsz_1 = strb_02.sputn("racadabra", 10);
- VERIFY( strmsz_1 == 0 );
- VERIFY( str_tmp == strb_02.str() );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1057.cc
deleted file mode 100644
index 2af2dff8c13..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/1057.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-class nullsetpbuf : public std::stringbuf
-{
- char foo[64];
-public:
- nullsetpbuf()
- {
- setp(foo, foo + 64);
- setp(NULL, NULL);
- }
-};
-
-// libstdc++/1057
-void test05()
-{
- std::string text1 = "abcdefghijklmn";
-
- nullsetpbuf nsp;
- // Immediate crash as xsputn writes to null pointer
- nsp.sputn(text1.c_str(), text1.length());
-}
-
-int main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/9404-2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/9404-2.cc
deleted file mode 100644
index 3cb743cc699..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sputn/char/9404-2.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.1.3 Overridden virtual functions
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-bool over_called;
-
-class Derived_stringbuf : public std::stringbuf
-{
-public:
- int_type overflow(int_type c)
- {
- over_called = true;
- return std::stringbuf::overflow(c);
- }
-
- const char_type* pub_epptr() const
- {
- return epptr();
- }
-
- const char_type* pub_pptr() const
- {
- return pptr();
- }
-};
-
-// libstdc++/9404
-void test04()
-{
- bool test = true;
-
- bool over_expected;
- Derived_stringbuf dsbuf_01;
-
- // sputn
- Derived_stringbuf dsbuf_02;
- over_called = false;
- dsbuf_02.sputn("sonne's", 7);
- VERIFY( over_called );
- over_expected = dsbuf_02.pub_epptr() == dsbuf_02.pub_pptr();
- over_called = false;
- dsbuf_02.sputn(" peak", 5);
- VERIFY( (!over_expected && !over_called)
- || (over_expected && over_called) );
- VERIFY( dsbuf_02.str() == "sonne's peak" ); // Sanity check.
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/1.cc
deleted file mode 100644
index 8de264b08e8..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/1.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test member functions
-void test03()
-{
- bool test = true;
-
- //stringbuf::str()
- VERIFY( strb_01.str() == str_01 );
- VERIFY( strb_02.str() == str_02 );
- VERIFY( strb_03.str() == str_03 );
-
- //stringbuf::str(string&)
- strb_03.str("none of the above, go to the oberoi in cairo, egypt.");
- strb_03.str(str_01);
- std::streamsize d1 = strb_01.in_avail();
- std::streamsize d2 = strb_03.in_avail();
- VERIFY( d1 ); // non-zero
- VERIFY( !d2 ); // zero, cuz ios_base::out
- VERIFY( d1 != d2 ); //these should be the same
- VERIFY( str_01.length() == d1 );
- VERIFY( strb_01.str() == strb_03.str() ); //ditto
-
- // stringbuf::str(string&) and stringbuf::stringbuf(string&), where the
- // string in question contains embedded NUL characters. Note that in this
- // embedded-NUL situation, the size must be passed to the string ctor.
- std::string str_nulls ("eschew \0 obfuscation", 20); // tested in 21_strings
- std::stringbuf strb_normal (str_01);
- std::stringbuf strb_nulls (str_nulls);
- strb_normal.str(str_nulls); // tried using 'strb_01' rather than declaring
- // another variable, but then test04 broke!
- VERIFY( strb_nulls.in_avail() == str_nulls.size() );
- VERIFY( strb_nulls.str().size() == 20 );
- VERIFY( strb_normal.in_avail() == str_nulls.size() );
-}
-
-int main()
-{
- test03();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/2.cc
deleted file mode 100644
index feabe74e1ae..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/2.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// http://gcc.gnu.org/ml/libstdc++/2003-02/msg00269.html
-// Growing and then seeking to ios_base::beg triggered a bug in str(),
-// which didn't notice the grow.
-void test07()
-{
- bool test = true;
-
- std::stringbuf strb_01;
- strb_01.sputc('s');
- strb_01.pubseekoff(0, std::ios_base::beg);
- std::string tmp = strb_01.str();
- VERIFY( tmp == "s" );
-
- std::string str("strivi,");
- std::stringbuf strb_02(str);
- strb_02.pubseekoff(0, std::ios_base::end);
- strb_02.sputn(" no better!", 11);
- strb_02.pubseekoff(0, std::ios_base::beg);
- tmp = strb_02.str();
- VERIFY( tmp == "strivi, no better!" );
-}
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3.cc
deleted file mode 100644
index 7fa42a6d1fd..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test06()
-{
- bool test = true;
-
- std::ostringstream os ("foo", std::ios_base::app);
- os << "bar";
-
- VERIFY( os.str() == "foobar" );
-}
-
-int main()
-{
- test06();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3955.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3955.cc
deleted file mode 100644
index d43fd89345a..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/str/char/3955.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/3955 -- ios_base::app overwrites from the beginning
-void test05()
-{
- bool test = true;
-
- std::ostringstream os ("foo");
- os << "bar";
-
- VERIFY( os.str() == "bar" );
-}
-
-int main()
-{
- test05();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc
deleted file mode 100644
index c7bb35240bd..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sungetc/char/1.cc
+++ /dev/null
@@ -1,151 +0,0 @@
-// 981208 bkoz test functionality of basic_stringbuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-std::string str_01("mykonos. . . or what?");
-std::string str_02("paris, or sainte-maxime?");
-std::string str_03;
-std::stringbuf strb_01(str_01);
-std::stringbuf strb_02(str_02, std::ios_base::in);
-std::stringbuf strb_03(str_03, std::ios_base::out);
-
-// test overloaded virtual functions
-void test04()
-{
- bool test = true;
- std::string str_tmp;
- std::stringbuf strb_tmp;
- std::streamsize strmsz_1, strmsz_2;
- std::streamoff strmof_1(-1), strmof_2;
- typedef std::stringbuf::int_type int_type;
- typedef std::stringbuf::traits_type traits_type;
- typedef std::stringbuf::pos_type pos_type;
- typedef std::stringbuf::off_type off_type;
-
- int_type c1 = strb_01.sbumpc();
- int_type c2 = strb_02.sbumpc();
- int_type c3 = strb_01.sbumpc();
- int_type c4 = strb_02.sbumpc();
- int_type c5 = strb_03.sbumpc();
-
- // PUT
- strb_03.str(str_01); //reset
- std::string::size_type sz1 = strb_03.str().length();
- std::string::size_type sz2 = strb_03.str().length();
-
- // streamsize sputn(const char_typs* s, streamsize n)
- // write up to n chars to out_cur from s, returning number assigned
- // NB *sputn will happily put '\0' into your stream if you give it a chance*
- str_tmp = strb_03.str();
- sz1 = str_tmp.length();
- strmsz_1 = strb_03.sputn("racadabras", 10);//"abracadabras or what?"
- sz2 = strb_03.str().length();
- strmsz_2 = strb_03.sputn(", i wanna reach out and", 10);
- sz2 = strb_03.str().length();
- str_tmp = strb_02.str();
- strmsz_1 = strb_02.sputn("racadabra", 10);
-
- // PUTBACK
-
- // int_type sputbackc(char_type c)
- // if in_cur not avail || ! traits::eq(c, gptr() [-1]), return pbfail
- // otherwise decrements in_cur and returns *gptr()
- strmsz_1 = strb_01.in_avail();
- str_tmp = strb_01.str();
- c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
- c2 = strb_01.sputbackc('z');//"mykonos. . .zor what?"
- c3 = strb_01.sgetc();
- //test for _in_cur == _in_beg
- strb_01.str(str_tmp);
- strmsz_1 = strb_01.in_avail();
- c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
- c2 = strb_01.sputbackc('z');//"mykonos. . . or what?"
- c3 = strb_01.sgetc();
- // test for replacing char with identical one
- strb_01.str(str_01); //reset
- strmsz_1 = strb_01.in_avail();
- strb_01.sbumpc();
- strb_01.sbumpc();
- c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
- c2 = strb_01.sputbackc('y');//"mykonos. . . or what?"
- c3 = strb_01.sgetc();
- //test for ios_base::out
- strmsz_2 = strb_03.in_avail();
- c4 = strb_03.sputbackc('x');
-
- // int_type sungetc()
- // if in_cur not avail, return pbackfail(), else decrement and
- // return to_int_type(*gptr())
- for (int i = 0; i<12; ++i)
- strb_01.sbumpc();
- strmsz_1 = strb_01.in_avail();
- str_tmp = strb_01.str();
- c1 = strb_01.sgetc(); //"mykonos. . . 'o'r what?"
- c2 = strb_01.sungetc();//"mykonos. . . or what?"
- c3 = strb_01.sgetc();
- VERIFY( c1 != c2 );
- VERIFY( c3 == c2 );
- VERIFY( c1 != c3 );
- VERIFY( c2 == ' ' );
- VERIFY( strb_01.str() == str_01 );
- VERIFY( str_01.size() == strb_01.str().size() );
- //test for _in_cur == _in_beg
- strb_01.str(str_tmp);
- strmsz_1 = strb_01.in_avail();
- c1 = strb_01.sgetc(); //"'m'ykonos. . . or what?"
- c2 = strb_01.sungetc();//"mykonos. . . or what?"
- c3 = strb_01.sgetc();
- VERIFY( c1 != c2 );
- VERIFY( c3 != c2 );
- VERIFY( c1 == c3 );
- VERIFY( c2 == traits_type::eof() );
- VERIFY( strb_01.str() == str_01 );
- VERIFY( str_01.size() == strb_01.str().size() );
- // test for replacing char with identical one
- strb_01.str(str_01); //reset
- strmsz_1 = strb_01.in_avail();
- strb_01.sbumpc();
- strb_01.sbumpc();
- c1 = strb_01.sgetc(); //"my'k'onos. . . or what?"
- c2 = strb_01.sungetc();//"mykonos. . . or what?"
- c3 = strb_01.sgetc();
- VERIFY( c1 != c2 );
- VERIFY( c3 == c2 );
- VERIFY( c1 != c3 );
- VERIFY( strb_01.str() == str_01 );
- VERIFY( str_01.size() == strb_01.str().size() );
- //test for ios_base::out
- strmsz_2 = strb_03.in_avail();
- c4 = strb_03.sungetc();
- VERIFY( c4 == traits_type::eof() );
-}
-
-int main()
-{
- test04();
- return 0;
-}
-
-
-
-// more candy!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sync/char/1057.cc b/libstdc++-v3/testsuite/27_io/basic_stringbuf/sync/char/1057.cc
deleted file mode 100644
index 85717200d88..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringbuf/sync/char/1057.cc
+++ /dev/null
@@ -1,108 +0,0 @@
-// 1999-10-11 bkoz
-
-// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.5.2 template class basic_streambuf
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-class setpbuf : public std::stringbuf
-{
- char buffer[4];
- std::string result;
-
-public:
-
- std::string&
- get_result()
- { return result; }
-
- setpbuf()
- {
- char foo [32];
- setp(foo, foo + 32);
- setp(buffer, buffer + 4);
- }
-
- ~setpbuf()
- { sync(); }
-
- virtual int_type
- overflow(int_type n)
- {
- if (sync() != 0)
- return traits_type::eof();
-
- result += traits_type::to_char_type(n);
-
- return n;
- }
-
- virtual int
- sync()
- {
- result.append(pbase(), pptr());
- setp(buffer, buffer + 4);
- return 0;
- }
-};
-
-// libstdc++/1057
-void test04()
-{
- bool test = true;
- std::string text = "abcdefghijklmn";
-
- // 01
- setpbuf sp1;
- // Here xsputn writes over sp1.result
- sp1.sputn(text.c_str(), text.length());
-
- // This crashes when result is accessed
- sp1.pubsync();
- VERIFY( sp1.get_result() == text );
-
- // 02
- setpbuf sp2;
- for (std::string::size_type i = 0; i < text.length(); ++i)
- {
- // sputc also writes over result
- sp2.sputc(text[i]);
- }
-
- // Crash here
- sp2.pubsync();
- VERIFY( sp2.get_result() == text );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/1.cc
deleted file mode 100644
index e53b91da148..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/1.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.7.4 - Template class basic_stringstream
-// NB: This file is for testing basic_stringstream with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/7216
-void test01()
-{
- // Check for required typedefs
- typedef std::stringstream test_type;
- typedef test_type::char_type char_type;
- typedef test_type::traits_type traits_type;
- typedef test_type::int_type int_type;
- typedef test_type::pos_type pos_type;
- typedef test_type::off_type off_type;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/2.cc
deleted file mode 100644
index abadf8271e6..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/2.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.7.4 - Template class basic_stringstream
-// NB: This file is for testing basic_stringstream with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-namespace test
-{
- using namespace std;
- using __gnu_cxx_test::pod_char;
- typedef short type_t;
- template class basic_stringstream<type_t, char_traits<type_t> >;
- template class basic_stringstream<pod_char, char_traits<pod_char> >;
-} // test
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc
deleted file mode 100644
index d877dbb7baf..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/3.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-// 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-// NB: This file is for testing basic_filebuf with NO OTHER INCLUDES.
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// { dg-do compile }
-
-// libstdc++/2020
-// should be able to use custom char_type, custom traits type
-class gnu_char_type
-{
- unsigned long character;
-public:
- // operator ==
- bool
- operator==(const gnu_char_type& __lhs)
- { return character == __lhs.character; }
-
- // operator <
- bool
- operator<(const gnu_char_type& __lhs)
- { return character < __lhs.character; }
-
- // default ctor
- gnu_char_type() { }
-
- // to_char_type
- gnu_char_type(const unsigned long& __l) : character(__l) { }
-
- // to_int_type
- operator unsigned long() const { return character; }
-};
-
-// char_traits specialization
-struct gnu_char_traits
-{
- typedef gnu_char_type char_type;
- typedef long int_type;
- typedef long pos_type;
- typedef unsigned long off_type;
- typedef long state_type;
-
- static void
- assign(char_type& __c1, const char_type& __c2) { }
-
- static bool
- eq(const char_type& __c1, const char_type& __c2) { return true; }
-
- static bool
- lt(const char_type& __c1, const char_type& __c2) { return true; }
-
- static int
- compare(const char_type* __s1, const char_type* __s2, size_t __n)
- { return 0; }
-
- static size_t
- length(const char_type* __s) { return 0; }
-
- static const char_type*
- find(const char_type* __s, size_t __n, const char_type& __a)
- { return __s; }
-
- static char_type*
- move(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return __s1; }
-
- static char_type*
- assign(char_type* __s, size_t __n, char_type __a)
- { return __s; }
-
- static char_type
- to_char_type(const int_type& __c)
- { return char_type(); }
-
- static int_type
- to_int_type(const char_type& __c)
- { return int_type(); }
-
- static bool
- eq_int_type(const int_type& __c1, const int_type& __c2)
- { return true; }
-
- static int_type
- eof()
- { return int_type(); }
-
- static int_type
- not_eof(const int_type& __c)
- { return int_type(); }
-};
-
-void test07()
-{
- bool test = true;
- typedef std::basic_stringstream<gnu_char_type, gnu_char_traits> gnu_sstr;
-
- try
- {
- gnu_sstr obj;
- }
- catch(std::exception& obj)
- {
- test = false;
- VERIFY( test );
- }
-}
-
-#if !__GXX_WEAK__
-// Explicitly instantiate for systems with no COMDAT or weak support.
-template
- std::basic_streambuf<gnu_char_type>::int_type
- std::basic_streambuf<gnu_char_type>::_S_pback_size;
-#endif
-
-int main()
-{
- test07();
- return 0;
-}
-
-
-
-// more surf!!!
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc
deleted file mode 100644
index dcd5dc3dc64..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 2003-03-26 B enjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.8.1.1 - Template class basic_filebuf
-
-#include <iostream>
-#include <sstream>
-
-void test01()
-{
- // Check for required base class.
- typedef std::stringstream test_type;
- typedef std::iostream base_type;
- const test_type& obj = test_type();
- const base_type* base = &obj;
-}
-
-int main()
-{
- test01();
- return 0;
-}
-
-// more surf!!!
-
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc
deleted file mode 100644
index 5e4fe022e75..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc
+++ /dev/null
@@ -1,70 +0,0 @@
-// 2003-04-01 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.6 - Member functions [lib.stringstream.members]
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void
-redirect_buffer(std::ios& stream, std::streambuf* new_buf)
-{ stream.rdbuf(new_buf); }
-
-std::streambuf*
-active_buffer(std::ios& stream)
-{ return stream.rdbuf(); }
-
-// libstdc++/2832
-void test02()
-{
- bool test = true;
- const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
- const std::string str00;
- const std::string str01(strlit01);
- std::string str02;
- std::stringbuf sbuf;
- std::streambuf* pbasebuf0 = &sbuf;
-
- std::stringstream sstrm1;
- // derived rdbuf() always returns original streambuf, even though
- // it's no longer associated with the stream.
- std::stringbuf* const buf1 = sstrm1.rdbuf();
- // base rdbuf() returns the currently associated streambuf
- std::streambuf* pbasebuf1 = active_buffer(sstrm1);
- redirect_buffer(sstrm1, &sbuf);
- std::stringbuf* const buf2 = sstrm1.rdbuf();
- std::streambuf* pbasebuf2 = active_buffer(sstrm1);
- VERIFY( buf1 == buf2 );
- VERIFY( pbasebuf1 != pbasebuf2 );
- VERIFY( pbasebuf2 == pbasebuf0 );
-
- // How confusing and non-intuitive is this?
- // These semantics are a joke, a serious defect, and incredibly lame.
-}
-
-int main()
-{
- test02();
- return 0;
-}
-
-
-
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc
deleted file mode 100644
index 79b1e9cb35e..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/1.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-// 2001-05-24 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.6 member functions (stringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
- std::stringstream is01;
- const std::string str00;
- const std::string str01 = "123";
- std::string str02;
- const int i01 = 123;
- int a,b;
-
- std::ios_base::iostate state1, state2, statefail, stateeof;
- statefail = std::ios_base::failbit;
- stateeof = std::ios_base::eofbit;
-
- // string str() const
- str02 = is01.str();
- VERIFY( str00 == str02 );
-
- // void str(const basic_string&)
- is01.str(str01);
- str02 = is01.str();
- VERIFY( str01 == str02 );
- state1 = is01.rdstate();
- is01 >> a;
- state2 = is01.rdstate();
- VERIFY( a = i01 );
- // 22.2.2.1.2 num_get virtual functions
- // p 13
- // in any case, if stage 2 processing was terminated by the test for
- // in == end then err != ios_base::eofbit is performed.
- VERIFY( state1 != state2 );
- VERIFY( state2 == stateeof );
-
- is01.str(str01);
- is01 >> b;
- VERIFY( b != a );
- // as is01.good() is false, istream::sentry blocks extraction.
-
- is01.clear();
- state1 = is01.rdstate();
- is01 >> b;
- state2 = is01.rdstate();
- VERIFY( b == a );
- VERIFY( state1 != state2 );
- VERIFY( state2 == stateeof );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc
deleted file mode 100644
index 04f2746bcde..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc
+++ /dev/null
@@ -1,76 +0,0 @@
-// 2001-05-24 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.6 member functions (stringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void
-redirect_buffer(std::ios& stream, std::streambuf* new_buf)
-{ stream.rdbuf(new_buf); }
-
-std::streambuf*
-active_buffer(std::ios& stream)
-{ return stream.rdbuf(); }
-
-// libstdc++/2832
-void test02()
-{
- bool test = true;
- const char* strlit01 = "fuck war";
- const char* strlit02 = "two less cars abstract riot crew, critical mass/SF";
- const std::string str00;
- const std::string str01(strlit01);
- std::string str02;
- std::stringbuf sbuf(str01);
- std::streambuf* pbasebuf0 = &sbuf;
-
- std::stringstream sstrm1;
- VERIFY( sstrm1.str() == str00 );
- // derived rdbuf() always returns original streambuf, even though
- // it's no longer associated with the stream.
- std::stringbuf* const buf1 = sstrm1.rdbuf();
- // base rdbuf() returns the currently associated streambuf
- std::streambuf* pbasebuf1 = active_buffer(sstrm1);
- redirect_buffer(sstrm1, &sbuf);
- std::stringbuf* const buf2 = sstrm1.rdbuf();
- std::streambuf* pbasebuf2 = active_buffer(sstrm1);
- VERIFY( buf1 == buf2 );
- VERIFY( pbasebuf1 != pbasebuf2 );
- VERIFY( pbasebuf2 == pbasebuf0 );
-
- // derived rdbuf() returns the original buf, so str() doesn't change.
- VERIFY( sstrm1.str() != str01 );
- VERIFY( sstrm1.str() == str00 );
- // however, casting the active streambuf to a stringbuf shows what's up:
- std::stringbuf* psbuf = dynamic_cast<std::stringbuf*>(pbasebuf2);
- str02 = psbuf->str();
- VERIFY( str02 == str01 );
-
- // How confusing and non-intuitive is this?
- // These semantics are a joke, a serious defect, and incredibly lame.
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc
deleted file mode 100644
index 47901a6e498..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/3.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// 2001-05-24 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.6 member functions (stringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-void
-test03()
-{
- bool test = true;
-
- //
- // 1: Automatic formatting of a compound string
- //
- int i = 1024;
- int *pi = &i;
- double d = 3.14159;
- double *pd = &d;
- std::string blank;
- std::ostringstream ostrst01;
- std::ostringstream ostrst02(blank);
-
- // No buffer, so should be created.
- ostrst01 << "i: " << i << " i's address: " << pi << "\n"
- << "d: " << d << " d's address: " << pd << std::endl;
- // Buffer, so existing buffer should be overwritten.
- ostrst02 << "i: " << i << " i's address: " << pi << "\n"
- << "d: " << d << " d's address: " << pd << std::endl;
-
- std::string msg01 = ostrst01.str();
- std::string msg02 = ostrst02.str();
- VERIFY( msg01 == msg02 );
- VERIFY( msg02 != blank );
-
- // stringstream
- std::string str1("");
- std::string str3("this is a somewhat string");
- std::stringstream ss1(str1, std::ios_base::in|std::ios_base::out);
- std::stringstream ss2(str3, std::ios_base::in|std::ios_base::out);
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc b/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc
deleted file mode 100644
index 7d77fc2c63c..00000000000
--- a/libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/4.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 2001-05-24 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.7.6 member functions (stringstream_members)
-
-#include <sstream>
-#include <testsuite_hooks.h>
-
-// libstdc++/8466
-void test04()
-{
- bool test = true;
-
- const char* strlit00 = "orvieto";
- const std::string str00 = strlit00;
-
- std::ostringstream oss;
-
- oss.str(str00);
- oss << "cortona";
- VERIFY( str00 == strlit00 );
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/fpos/1.cc b/libstdc++-v3/testsuite/27_io/fpos/1.cc
deleted file mode 100644
index 4f33fd02461..00000000000
--- a/libstdc++-v3/testsuite/27_io/fpos/1.cc
+++ /dev/null
@@ -1,71 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.3 template class fpos
-
-#include <cwchar> // for mbstate_t
-#include <ios>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- bool test = true;
-
- typedef std::mbstate_t state_type;
- state_type state01;
- state_type state02;
-
- std::streampos pos01;
- std::streampos pos02;
-
- std::streamoff off01;
- std::streamoff off02;
-
- std::streamsize size01;
- std::streamsize size02;
-
- // 27.4.3.1 fpos members
- // void state(state_type s);
- // state_type state();
-#if 0
-// XXX Need to have some sanity checking for the mbstate_t type, or
-// whatever the insantiating type for class fpos happens to be for
-// streampos, as things like equality operators and assignment
-// operators, increment and deincrement operators need to be in place.
- pos01.state(state02);
- state01 = pos01.state();
- VERIFY( state01 == state02 );
-#endif
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/fpos/2.cc b/libstdc++-v3/testsuite/27_io/fpos/2.cc
deleted file mode 100644
index 46c64b8bef5..00000000000
--- a/libstdc++-v3/testsuite/27_io/fpos/2.cc
+++ /dev/null
@@ -1,103 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.3 template class fpos
-
-#include <cwchar> // for mbstate_t
-#include <ios>
-#include <testsuite_hooks.h>
-
-// 27.4.3.2 fpos requirements/invariants
-void test02()
-{
- bool test = true;
-
- typedef std::mbstate_t state_type;
- state_type state01;
- state_type state02;
-
- std::streamoff off01;
- std::streamoff off02 = 997;
-
- int i01 = 0;
- int i02 = 999;
-
- // p(i), p = i
- std::streampos pos01(i02);
- std::streampos pos02 = i02;
- VERIFY( pos01 == pos02 );
-
- // p(o), p = o
- // NB: P(o) is only required.
- std::streampos pos03(off02);
- std::streampos pos04 = off02;
- VERIFY( pos03 == pos04 );
-
- // O(p)
- std::streamoff off03(pos04);
- VERIFY( off03 == off02 );
-
- // p == q, p!= q
- VERIFY( pos01 == pos02 );
- VERIFY( pos02 != pos03 );
-
- // q = p + o
- // p += o
- pos03 = pos03 + off02;
- pos04 += off02;
- VERIFY( pos03 == pos04 );
- std::streampos pos05 = pos03;
- std::streampos pos06 = pos03 + off02;
- VERIFY ( pos05 == pos03 );
-
- // q = p - o
- // p -= o
- pos03 = pos03 - off02;
- pos04 -= off02;
- VERIFY( pos03 == pos04 );
- std::streampos pos07 = pos03;
- std::streampos pos08 = pos03 - off02;
- VERIFY ( pos07 == pos03 );
-
- // o = p - q
- VERIFY( 0 == pos03 - pos04 );
-
- // streamsize -> streamoff
- // streamoff -> streamsize
- off01 = off02;
- std::streamsize size01(off02);
- std::streamoff off04(size01);
- VERIFY( off01 == off04 );
-}
-
-int main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/fpos/3.cc b/libstdc++-v3/testsuite/27_io/fpos/3.cc
deleted file mode 100644
index 777de9e7ad0..00000000000
--- a/libstdc++-v3/testsuite/27_io/fpos/3.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// 1999-09-20 bkoz
-
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.4.3 template class fpos
-
-#include <cwchar> // for mbstate_t
-#include <ios>
-#include <testsuite_hooks.h>
-
-void test03()
-{
- bool test = true;
-
- typedef std::mbstate_t state_type;
- state_type state01;
- state_type state02;
-
- std::streamoff off01;
- std::streamoff off02 = 997;
-
- int i01 = 0;
- int i02 = 999;
-
- // casts to const streamoff
- // (yes, I know this is weak code)
- const std::streampos pos01 = 0;
- off01 = pos01;
-
- // equality/inequality with const args
- const std::streampos pos02(54);
- std::streampos pos03(44);
- VERIFY( !(pos03 == pos02) );
- VERIFY( pos03 != pos02 );
- VERIFY( !(pos02 == pos03) );
- VERIFY( pos02 != pos03 );
-
- // default values
- std::streampos pos04;
- VERIFY( std::streamoff(pos04) == 0 );
-}
-
-int main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/callbacks/1.cc b/libstdc++-v3/testsuite/27_io/ios_base/callbacks/1.cc
deleted file mode 100644
index 09cfee4affd..00000000000
--- a/libstdc++-v3/testsuite/27_io/ios_base/callbacks/1.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// 1999-11-10 bkoz
-
-// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.4.2.6 ios_base callbacks
-
-#include <string>
-#include <sstream>
-#include <testsuite_hooks.h>
-
-const std::string str01("the nubians of plutonia");
-std::string str02;
-
-void
-callb01(std::ios_base::event e, std::ios_base& b, int i)
-{ str02 += "the nubians"; }
-
-void
-callb02(std::ios_base::event e, std::ios_base& b, int i)
-{ str02 += " of "; }
-
-void
-callb03(std::ios_base::event e, std::ios_base& b, int i)
-{ str02 += "plutonia"; }
-
-void test01()
-{
- bool test = true;
- std::locale loc("C");
- std::stringbuf strbuf01;
- std::ios ios01(&strbuf01);
-
- ios01.register_callback(callb03, 1);
- ios01.register_callback(callb02, 1);
- ios01.register_callback(callb01, 1);
- ios01.imbue(loc);
- VERIFY( str01 == str02 );
-}
-
-
-int main(void)
-{
- test01();
- return 0;
-}
-
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/state/1.cc b/libstdc++-v3/testsuite/27_io/ios_base/state/1.cc
deleted file mode 100644
index bc6a356edd3..00000000000
--- a/libstdc++-v3/testsuite/27_io/ios_base/state/1.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <sstream>
-#include <locale>
-#include <testsuite_hooks.h>
-
-void
-test02()
-{
- bool test = true;
- const std::string strue("true");
- const std::string sfalse("false");
- std::string str01;
- std::string str02;
-
- std::locale loc_c = std::locale::classic();
- std::ostringstream ostr01;
- ostr01.imbue(loc_c);
- std::ios_base::fmtflags ff = ostr01.flags(std::ios_base::boolalpha);
-
- ostr01 << true;
- str02 = ostr01.str();
- VERIFY( str02 == strue );
-
- ostr01.str(str01);
- ostr01 << false;
- str02 = ostr01.str();
- VERIFY( str02 == sfalse );
-}
-
-int
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/storage/1.cc b/libstdc++-v3/testsuite/27_io/ios_base/storage/1.cc
deleted file mode 100644
index dac74cd35da..00000000000
--- a/libstdc++-v3/testsuite/27_io/ios_base/storage/1.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// 2000-12-19 bkoz
-
-// Copyright (C) 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.4.2.5 ios_base storage functions
-
-// XXX This test will not work for some versions of irix6 because of
-// XXX bug(s) in libc malloc for very large allocations. However
-// XXX -lmalloc seems to work.
-// See http://gcc.gnu.org/ml/gcc/2002-05/msg01012.html
-// { dg-options "-lmalloc" { target mips*-*-irix6* } }
-
-#include <sstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00413.html
-void test01()
-{
- bool test = true;
-
- using namespace std;
-
- long x1 = ios::xalloc();
- long x2 = ios::xalloc();
- long x3 = ios::xalloc();
- long x4 = ios::xalloc();
-
- ostringstream out("the element of crime, lars von trier");
- out.pword(++x4); // should not crash
-}
-
-int main(void)
-{
- __gnu_cxx_test::set_memory_limits();
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc b/libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc
deleted file mode 100644
index 751b6be2583..00000000000
--- a/libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc
+++ /dev/null
@@ -1,129 +0,0 @@
-// 2000-12-19 bkoz
-
-// Copyright (C) 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.4.2.5 ios_base storage functions
-
-// XXX This test will not work for some versions of irix6 because of
-// XXX bug(s) in libc malloc for very large allocations. However
-// XXX -lmalloc seems to work.
-// See http://gcc.gnu.org/ml/gcc/2002-05/msg01012.html
-// { dg-options "-lmalloc" { target mips*-*-irix6* } }
-
-#include <sstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/3129
-void test02()
-{
- bool test = true;
- int max = std::numeric_limits<int>::max() - 1;
- std::stringbuf strbuf;
- std::ios ios(&strbuf);
-
- ios.exceptions(std::ios::badbit);
-
- long l = 0;
- void* v = 0;
-
- // pword
- ios.pword(1) = v;
- VERIFY( ios.pword(1) == v );
-
- try
- {
- v = ios.pword(max);
- }
- catch(std::ios_base::failure& obj)
- {
- // Ok.
- VERIFY( ios.bad() );
- }
- catch(...)
- {
- VERIFY( test = false );
- }
- VERIFY( v == 0 );
-
- VERIFY( ios.pword(1) == v );
-
- // max is different code path from max-1
- v = &test;
- try
- {
- v = ios.pword(std::numeric_limits<int>::max());
- }
- catch(std::ios_base::failure& obj)
- {
- // Ok.
- VERIFY( ios.bad() );
- }
- catch(...)
- {
- VERIFY( test = false );
- }
- VERIFY( v == &test );
-
- // iword
- ios.iword(1) = 1;
- VERIFY( ios.iword(1) == 1 );
-
- try
- {
- l = ios.iword(max);
- }
- catch(std::ios_base::failure& obj)
- {
- // Ok.
- VERIFY( ios.bad() );
- }
- catch(...)
- {
- VERIFY( test = false );
- }
- VERIFY( l == 0 );
-
- VERIFY( ios.iword(1) == 1 );
-
- // max is different code path from max-1
- l = 1;
- try
- {
- l = ios.iword(std::numeric_limits<int>::max());
- }
- catch(std::ios_base::failure& obj)
- {
- // Ok.
- VERIFY( ios.bad() );
- }
- catch(...)
- {
- VERIFY( test = false );
- }
- VERIFY( l == 1 );
-
-}
-
-int main(void)
-{
- __gnu_cxx_test::set_memory_limits();
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/storage/3.cc b/libstdc++-v3/testsuite/27_io/ios_base/storage/3.cc
deleted file mode 100644
index 2c9816a397e..00000000000
--- a/libstdc++-v3/testsuite/27_io/ios_base/storage/3.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// 2000-12-19 bkoz
-
-// Copyright (C) 2000, 2002, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.4.2.5 ios_base storage functions
-
-// XXX This test will not work for some versions of irix6 because of
-// XXX bug(s) in libc malloc for very large allocations. However
-// XXX -lmalloc seems to work.
-// See http://gcc.gnu.org/ml/gcc/2002-05/msg01012.html
-// { dg-options "-lmalloc" { target mips*-*-irix6* } }
-
-#include <sstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-class derived : public std::ios_base
-{
-public:
- derived() {}
-};
-
-void test03()
-{
- derived d;
-
- d.pword(0) = &d;
- d.iword(0) = 1;
-}
-
-int main(void)
-{
- __gnu_cxx_test::set_memory_limits();
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc b/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc
deleted file mode 100644
index dcc0d5fcab4..00000000000
--- a/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// 1999-05-21 bkoz
-// 2000-05-21 Benjamin Kosnik <bkoz@redhat.com>
-// 2001-01-17 Loren J. Rittle <ljrittle@acm.org>
-
-// Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.4.2.4 ios_base static members
-// @require@ %-*.tst
-// @diff@ %-*.tst %-*.txt
-
-#include <cstdio>
-#include <sstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// N.B. Once we have called sync_with_stdio(false), we can never go back.
-
-void
-test01()
-{
- std::ios_base::sync_with_stdio();
- std::freopen("ios_base_members_static-1.txt", "w", stdout);
-
- for (int i = 0; i < 2; i++)
- {
- std::printf("1");
- std::cout << "2";
- std::putc('3', stdout);
- std::cout << '4';
- std::fputs("5", stdout);
- std::cout << 6;
- std::putchar('7');
- std::cout << 8 << '9';
- std::printf("0\n");
- }
-}
-
-int main(void)
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/2.cc b/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/2.cc
deleted file mode 100644
index b645b4a98fd..00000000000
--- a/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/2.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// 1999-05-21 bkoz
-// 2000-05-21 Benjamin Kosnik <bkoz@redhat.com>
-// 2001-01-17 Loren J. Rittle <ljrittle@acm.org>
-
-// Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.4.2.4 ios_base static members
-// @require@ %-*.tst
-// @diff@ %-*.tst %-*.txt
-
-#include <cstdio>
-#include <sstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// N.B. Once we have called sync_with_stdio(false), we can never go back.
-
-void test02()
-{
- bool test = true;
-
- std::stringbuf strbuf01;
- std::ios ios01(&strbuf01);
-
- // 1: basic invocation
- VERIFY( ios01.sync_with_stdio() );
- VERIFY( ios01.sync_with_stdio(false) ); //returns previous state
-
- // 2: need to test interleaving of C and C++ io on a file object.
- VERIFY( std::cout.good() );
- VERIFY( !std::cout.sync_with_stdio(0) );
- VERIFY( std::cout.good() );
- VERIFY( !std::cout.sync_with_stdio(0) );
- VERIFY( std::cout.good() );
-}
-
-int main(void)
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/1.cc b/libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/1.cc
deleted file mode 100644
index b3901d8f7b8..00000000000
--- a/libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/1.cc
+++ /dev/null
@@ -1,108 +0,0 @@
-// 981027 ncm work with libstdc++v3
-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
-// Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <sstream>
-#include <locale>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-struct MyNP : std::numpunct<char>
-{
- std::string do_truename() const;
- std::string do_falsename() const;
-};
-
-std::string MyNP::do_truename() const
-{
- std::string s("yea");
- return s;
-}
-
-std::string MyNP::do_falsename() const
-{
- std::string s("nay");
- return s;
-}
-
-void
-test01()
-{
- bool test = true;
- const char lit[] = "1 0\ntrue false\n: true:\n:true :\n: false:\n: 1:"
- "\n:1 :\n: 0:\nyea nay\n: yea:\n:yea :\n: nay:\n";
- std::ostringstream oss;
- oss << true << " " << false << std::endl;
- oss << std::boolalpha;
- oss << true << " " << false << std::endl;
-
- oss << ":" << std::setw(6) << std::internal << true << ":" << std::endl;
- oss << ":" << std::setw(6) << std::left << true << ":" << std::endl;
- oss << ":" << std::setw(6) << std::right << false << ":" << std::endl;
- oss << std::noboolalpha;
- oss << ":" << std::setw(3) << std::internal << true << ":" << std::endl;
- oss << ":" << std::setw(3) << std::left << true << ":" << std::endl;
- oss << ":" << std::setw(3) << std::right << false << ":" << std::endl;
-
- std::locale loc = std::locale (std::locale::classic(), new MyNP);
- oss.imbue(loc);
-
- oss << std::boolalpha;
- oss << true << " " << false << std::endl;
-
- oss << ":" << std::setw(6) << std::internal << true << ":" << std::endl;
- oss << ":" << std::setw(6) << std::left << true << ":" << std::endl;
- oss << ":" << std::setw(6) << std::right << false << ":" << std::endl;
-
- VERIFY( oss.good() );
- VERIFY( oss.str() == lit );
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
-
-// Projected output:
-/*
-1 0
-true false
-: true:
-:true :
-: false:
-: 1:
-:1 :
-: 0:
-yea nay
-: yea:
-:yea :
-: nay:
-*/
diff --git a/libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/2.cc b/libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/2.cc
deleted file mode 100644
index 12b52aa0134..00000000000
--- a/libstdc++-v3/testsuite/27_io/manipulators/adjustfield/char/2.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (C) 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <sstream>
-#include <locale>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-void test02()
-{
- bool test = true;
- const std::string str_blank;
- std::string str_tmp;
- std::stringbuf strbuf;
- std::ostream o(&strbuf);
-
- o << std::setw(6) << std::right << "san";
- VERIFY( strbuf.str() == " san" );
- strbuf.str(str_blank);
-
- o << std::setw(6) << std::internal << "fran";
- VERIFY( strbuf.str() == " fran" );
- strbuf.str(str_blank);
-
- o << std::setw(6) << std::left << "cisco";
- VERIFY( strbuf.str() == "cisco " );
- strbuf.str(str_blank);
-}
-
-int
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/manipulators/basefield/char/1.cc b/libstdc++-v3/testsuite/27_io/manipulators/basefield/char/1.cc
deleted file mode 100644
index 10336f50f1c..00000000000
--- a/libstdc++-v3/testsuite/27_io/manipulators/basefield/char/1.cc
+++ /dev/null
@@ -1,128 +0,0 @@
-// 981027 ncm work with libstdc++v3
-
-// Copyright (C) 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <sstream>
-#include <locale>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-struct MyNP : std::numpunct<char>
-{
- std::string do_grouping() const;
- char do_thousands_sep() const;
-};
-
-std::string MyNP::do_grouping() const { std::string s("\3"); return s; }
-char MyNP::do_thousands_sep() const { return ' '; }
-
-
-void test01()
-{
- bool test = true;
-
- const char lit[] = "0123 456\n: 01 234 567:\n:0123 456 :\n"
- ": 012 345:\n: 01 234:\n:0726 746 425:\n"
- ":04 553 207 :\n: 0361 100:\n: 0173:\n"
- "0x12 345 678\n|0x000012 345 678|\n|0x12 345 6780000|\n"
- "|00000x12 345 678|\n|0x000012 345 678|\n";
-
- std::ostringstream oss;
- oss.imbue(std::locale(std::locale(), new MyNP));
-
- // Octals
- oss << std::oct << std::showbase;
- oss << 0123456l << std::endl;
-
- oss << ":" << std::setw(11);
- oss << 01234567l << ":" << std::endl;
-
- oss << ":" << std::setw(11) << std::left;
- oss << 0123456l << ":" << std::endl;
-
- oss << ":" << std::setw(11) << std::right;
- oss << 012345l << ":" << std::endl;
-
- oss << ":" << std::setw(11) << std::internal;
- oss << 01234l << ":" << std::endl;
-
- oss << ":" << std::setw(11);
- oss << 123456789l << ":" << std::endl;
-
- oss << ":" << std::setw(11) << std::left;
- oss << 1234567l << ":" << std::endl;
-
- oss << ":" << std::setw(11) << std::right;
- oss << 123456l << ":" << std::endl;
-
- oss << ":" << std::setw(11) << std::internal;
- oss << 123l << ":" << std::endl;
-
- // Hexadecimals
- oss << std::hex << std::setfill('0');
- oss << 0x12345678l << std::endl;
-
- oss << "|" << std::setw(16);
- oss << 0x12345678l << "|" << std::endl;
-
- oss << "|" << std::setw(16) << std::left;
- oss << 0x12345678l << "|" << std::endl;
-
- oss << "|" << std::setw(16) << std::right;
- oss << 0x12345678l << "|" << std::endl;
-
- oss << "|" << std::setw(16) << std::internal;
- oss << 0x12345678l << "|" << std::endl;
-
- VERIFY( oss.good() );
- VERIFY( oss.str() == lit );
-}
-int
-main()
-{
- test01();
- return 0;
-}
-
-// Projected output:
-/*
-0123 456
-: 01 234 567:
-:0123 456 :
-: 012 345:
-: 01 234:
-:0726 746 425:
-:04 553 207 :
-: 0361 100:
-: 0173:
-0x12 345 678
-|0x000012 345 678|
-|0x12 345 6780000|
-|00000x12 345 678|
-|0x000012 345 678|
-*/
diff --git a/libstdc++-v3/testsuite/27_io/manipulators/standard/char/1.cc b/libstdc++-v3/testsuite/27_io/manipulators/standard/char/1.cc
deleted file mode 100644
index 71822372fc8..00000000000
--- a/libstdc++-v3/testsuite/27_io/manipulators/standard/char/1.cc
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.6.3 - Standard manipulators
-
-#include <sstream>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
- using namespace std;
- bool test = true;
-
- string s("john coltrane, a love supreme");
- istringstream iss(s);
- ostringstream oss;
-
- // resetiosflags
- resetiosflags(ios_base::boolalpha);
- iss >> resetiosflags(ios_base::boolalpha);
- VERIFY(iss.good());
- oss << resetiosflags(ios_base::boolalpha);
- VERIFY(oss.good());
-
- // setiosflags
- setiosflags(ios_base::skipws);
- iss >> setiosflags(ios_base::skipws);
- VERIFY(iss.good());
- oss << setiosflags(ios_base::skipws);
- VERIFY(oss.good());
-
- // setbase
- setbase(8);
- iss >> setbase(8);
- VERIFY(iss.good());
- oss << setbase(8);
- VERIFY(oss.good());
-
- // setfil
- setfill('a');
- iss >> setfill('a');
- VERIFY(iss.good());
- oss << setfill('a');
- VERIFY(oss.good());
-
- // setprecision
- setprecision(4);
- iss >> setprecision(4);
- VERIFY(iss.good());
- oss << setprecision(4);
- VERIFY(oss.good());
-
- // setprecision
- setw(7);
- iss >> setw(7);
- VERIFY(iss.good());
- oss << setw(7);
- VERIFY(oss.good());
-}
-
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/manipulators/standard/char/2.cc b/libstdc++-v3/testsuite/27_io/manipulators/standard/char/2.cc
deleted file mode 100644
index b7ee2b4b6f5..00000000000
--- a/libstdc++-v3/testsuite/27_io/manipulators/standard/char/2.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// Some members need to be explicitly instantiated, so that users can build
-// their own code with -fno-implicit-templates and not suffer from a zillion
-// link errors.
-
-// { dg-options "-fno-implicit-templates" }
-
-#include <fstream>
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <iomanip>
-#include <testsuite_hooks.h>
-
-
-// PR libstdc++/3829
-void
-test01()
-{
- using namespace std;
- bool test = true;
- string x (" this is text");
- istringstream sin (x);
- ostringstream sout;
-
- // same order as in bits/std_iomanip.h
- sin >> resetiosflags(ios_base::dec)
- >> setiosflags(ios_base::dec)
- >> setbase(ios_base::dec)
- >> setfill('c')
- >> setprecision(5)
- >> setw(20)
- >> ws;
- VERIFY(sin.good());
-
- sout << resetiosflags(ios_base::dec)
- << setiosflags(ios_base::dec)
- << setbase(ios_base::dec)
- << setfill('c')
- << setprecision(5)
- << setw(20)
- << ends << flush << endl;
- VERIFY(sout.good());
-}
-
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/1.cc b/libstdc++-v3/testsuite/27_io/objects/char/1.cc
deleted file mode 100644
index 6ab05e861f1..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/1.cc
+++ /dev/null
@@ -1,98 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// Include all the headers except for iostream.
-#include <algorithm>
-#include <bitset>
-#include <complex>
-#include <deque>
-#include <exception>
-#include <fstream>
-#include <functional>
-#include <iomanip>
-#include <ios>
-#include <iosfwd>
-#include <istream>
-#include <iterator>
-#include <limits>
-#include <list>
-#include <locale>
-#include <map>
-#include <memory>
-#include <new>
-#include <numeric>
-#include <ostream>
-#include <queue>
-#include <set>
-#include <sstream>
-#include <stack>
-#include <stdexcept>
-#include <streambuf>
-#include <string>
-#include <typeinfo>
-#include <utility>
-#include <valarray>
-#include <vector>
-#include <cassert>
-#include <cctype>
-#include <cerrno>
-#include <cfloat>
-#include <ciso646>
-#include <climits>
-#include <clocale>
-#include <cmath>
-#include <csetjmp>
-#include <csignal>
-#include <cstdarg>
-#include <cstddef>
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-#include <ctime>
-#include <testsuite_hooks.h>
-
-// Include iostream last, just to make is as difficult as possible to
-// properly initialize the standard iostream objects.
-#include <iostream>
-
-// Make sure all the standard streams are defined.
-void test01()
-{
- bool test = true;
-
- char array1[20];
- typedef std::ios::traits_type ctraits_type;
- ctraits_type::int_type i = 15;
- ctraits_type::copy(array1, "testing istream", i);
- array1[i] = '\0';
- std::cout << "testing cout" << std::endl;
- std::cerr << "testing cerr" << std::endl;
- VERIFY( std::cerr.flags() & std::ios_base::unitbuf );
- std::clog << "testing clog" << std::endl;
- // std::cin >> array1; // requires somebody to type something in.
- VERIFY( std::cin.tie() == &std::cout );
-}
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/2.cc b/libstdc++-v3/testsuite/27_io/objects/char/2.cc
deleted file mode 100644
index 912d3ccf723..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/2.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-
-// Interactive test, to be exercised as follows:
-// assign stderr to stdout in shell command line,
-// pipe stdout to cat process and/or redirect stdout to file.
-// a.out >& output
-// "hello fine world\n" should be written to stdout, and output, in
-// proper order. This is a version of the scott snyder test taken
-// from: http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00108.html
-void test04()
-{
- using namespace std;
-
- cout << "hello ";
- cout.flush();
- cerr << "fine ";
- cerr.flush();
- cout << "world" << endl;
- cout.flush();
-}
-
-int
-main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/2523-1_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/2523-1_xin.cc
deleted file mode 100644
index 32acbb28b04..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/2523-1_xin.cc
+++ /dev/null
@@ -1,89 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// Include all the headers except for iostream.
-#include <algorithm>
-#include <bitset>
-#include <complex>
-#include <deque>
-#include <exception>
-#include <fstream>
-#include <functional>
-#include <iomanip>
-#include <ios>
-#include <iosfwd>
-#include <istream>
-#include <iterator>
-#include <limits>
-#include <list>
-#include <locale>
-#include <map>
-#include <memory>
-#include <new>
-#include <numeric>
-#include <ostream>
-#include <queue>
-#include <set>
-#include <sstream>
-#include <stack>
-#include <stdexcept>
-#include <streambuf>
-#include <string>
-#include <typeinfo>
-#include <utility>
-#include <valarray>
-#include <vector>
-#include <cassert>
-#include <cctype>
-#include <cerrno>
-#include <cfloat>
-#include <ciso646>
-#include <climits>
-#include <clocale>
-#include <cmath>
-#include <csetjmp>
-#include <csignal>
-#include <cstdarg>
-#include <cstddef>
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-#include <ctime>
-#include <testsuite_hooks.h>
-
-// Include iostream last, just to make is as difficult as possible to
-// properly initialize the standard iostream objects.
-#include <iostream>
-
-// libstdc++/2523
-void test02()
-{
- using namespace std;
- int i;
- cin >> i;
- cout << "i == " << i << endl;
-}
-
-int
-main()
-{
- test02();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/2523-1_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/2523-1_xin.in
deleted file mode 100644
index ec308096e18..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/2523-1_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-5588885
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/2523-2_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/2523-2_xin.cc
deleted file mode 100644
index 6a2429a65d2..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/2523-2_xin.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-
-// libstdc++/2523
-void test03()
-{
- using namespace std;
- ios_base::sync_with_stdio(false);
-
- int i;
- cin >> i;
- cout << "i == " << i << endl;
-}
-
-int
-main()
-{
- test03();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/2523-2_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/2523-2_xin.in
deleted file mode 100644
index aaee5e5621a..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/2523-2_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-33332
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/3045.cc b/libstdc++-v3/testsuite/27_io/objects/char/3045.cc
deleted file mode 100644
index ad190d0f2b5..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/3045.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <fstream>
-#include <iostream>
-#include <testsuite_hooks.h>
-
-class gnu_filebuf: public std::filebuf
-{
- int i;
-public:
- gnu_filebuf(int j = 1): i(j) { }
- ~gnu_filebuf() { --i; }
- int get_i() { return i;}
-};
-
-const int initial = 4;
-gnu_filebuf buf(initial);
-
-// libstdc++/3045, in a vague way.
-void test01()
-{
- bool test = true;
- int k1;
-
- // 1 normal
- k1 = buf.get_i();
- VERIFY( k1 == initial );
- {
- std::cout.rdbuf(&buf);
- }
- k1 = buf.get_i();
- VERIFY( k1 == initial );
-
- // 2 syncd off
- k1 = buf.get_i();
- VERIFY( k1 == initial );
- {
- std::cout.rdbuf(&buf);
- std::ios_base::sync_with_stdio(false); // make sure doesn't clobber buf
- }
- k1 = buf.get_i();
- VERIFY( k1 == initial );
-
- // 3 callling init
- k1 = buf.get_i();
- VERIFY( k1 == initial );
- {
- std::cout.rdbuf(&buf);
- std::ios_base::Init make_sure_initialized;
- }
- k1 = buf.get_i();
- VERIFY( k1 == initial );
-}
-
-int main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/3647.cc b/libstdc++-v3/testsuite/27_io/objects/char/3647.cc
deleted file mode 100644
index 4cdcc82af4c..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/3647.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// 2002-01-08 bkoz
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-// 27.6.1.5 - Template class basic_iostream
-// NB: This file is for testing iostream with NO OTHER INCLUDES.
-
-#include <iostream>
-
-// libstdc++/3647
-void test07()
-{
- // Should not block.
- std::cout << std::cin.rdbuf()->in_avail() << std::endl;
-}
-
-int main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/3_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/3_xin.cc
deleted file mode 100644
index b40b4c41046..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/3_xin.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-
-// Interactive test, to be exercised as follows:
-// run test under truss(1) or strace(1). Look at
-// size and pattern of write system calls.
-// Should be 2 or 3 write(1,[...]) calls when run interactively
-// depending upon buffering mode enforced.
-void test05()
-{
- std::cout << "hello" << ' ' << "world" << std::endl;
- std::cout << "Enter your name: ";
- std::string s;
- std::cin >> s;
- std::cout << "hello " << s << std::endl;
-}
-
-int
-main()
-{
- test05();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/3_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/3_xin.in
deleted file mode 100644
index a26c12687d7..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/3_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-JOHN HUME and DAVID TRIMBLE
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/4_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/4_xin.cc
deleted file mode 100644
index ae0d8638b27..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/4_xin.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-
-// http://gcc.gnu.org/ml/libstdc++/2002-08/msg00060.html
-// Should only have to hit enter once.
-void
-test10()
-{
- using namespace std;
- cout << "Press ENTER once\n";
- cin.ignore(1);
- cout << "_M_gcount: "<< cin.gcount() << endl;
-}
-
-int
-main()
-{
- test10();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/4_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/4_xin.in
deleted file mode 100644
index 8b137891791..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/4_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/5268.cc b/libstdc++-v3/testsuite/27_io/objects/char/5268.cc
deleted file mode 100644
index 36f9019dae7..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/5268.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// As a special exception, you may use this file as part of a free software
-// library without restriction. Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License. This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
-
-#include <sstream>
-#include <iostream>
-
-// libstdc++/5268
-void test04()
-{
- std::stringbuf b1;
- std::cout.rdbuf( &b1 );
- std::cout << "hello\n";
-}
-
-int main()
-{
- test04();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/5280_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/5280_xin.cc
deleted file mode 100644
index 82830a9b04d..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/5280_xin.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-
-// libstdc++/5280
-// Interactive test: input "1234^D^D" for i should terminate for EOF.
-void test06()
-{
- using namespace std;
- int i;
- cin >> i;
- if (!cin.good())
- {
- cerr << endl;
- cerr << "i == " << i << endl;
- cerr << "cin.rdstate() == " << cin.rdstate() << endl;
- cerr << "cin.bad() == " << cin.bad() << endl;
- cerr << "cin.fail() == " << cin.fail() << endl;
- cerr << "cin.eof() == " << cin.eof() << endl;
- }
- else
- cerr << "i == " << i << endl;
-}
-
-int
-main()
-{
- test06();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/5280_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/5280_xin.in
deleted file mode 100644
index 274c0052dd5..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/5280_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-1234 \ No newline at end of file
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/6548_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/6548_xin.cc
deleted file mode 100644
index ce6133bc39b..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/6548_xin.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/6548
-void test07()
-{
- bool test = true;
- std::cout << "Enter 'test':";
- std::string s;
- std::getline(std::cin, s, '\n');
- VERIFY( s == "test" );
-}
-
-int
-main()
-{
- test07();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/6548_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/6548_xin.in
deleted file mode 100644
index 9daeafb9864..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/6548_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-test
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.cc
deleted file mode 100644
index 9802f092a1f..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-
-// libstdc++/6648
-// Interactive tests: each one (run alone) must terminate upon a single '\n'.
-void test08()
-{
- bool test = true;
- char buff[2048];
- std::cout << "Enter name: ";
- std::cin.getline(buff, 2048);
-}
-
-int
-main()
-{
- test08();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.in
deleted file mode 100644
index 9dd5f1f2e27..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/6648-1_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-Kofi A. Annan
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.cc
deleted file mode 100644
index e25a8c3e765..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-
-void test09()
-{
- bool test = true;
- std::cout << "Enter favorite beach: ";
- std::cin.ignore(2048, '\n');
-}
-
-int
-main()
-{
- test09();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.in
deleted file mode 100644
index 0b2c7cf282e..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/6648-2_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-Oak St. Beach, Chicago
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/7744_xin.cc b/libstdc++-v3/testsuite/27_io/objects/char/7744_xin.cc
deleted file mode 100644
index 977af9a4429..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/7744_xin.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-#include <iostream>
-#include <testsuite_hooks.h>
-
-// libstdc++/7744
-void test11()
-{
- bool test = true;
- std::ios::sync_with_stdio(false);
-
- std::cout << "Type in the characters 'abc' and press <ENTER>: ";
- std::cin.peek();
-
- // The number of unread characters should be 4 (a, b, c, \\n)
- VERIFY( 4 == std::cin.rdbuf()->in_avail() );
-}
-
-int
-main()
-{
- test11();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/7744_xin.in b/libstdc++-v3/testsuite/27_io/objects/char/7744_xin.in
deleted file mode 100644
index 8baef1b4abc..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/char/7744_xin.in
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/1.cc
deleted file mode 100644
index bd946edd721..00000000000
--- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/1.cc
+++ /dev/null
@@ -1,101 +0,0 @@
-// 2000-08-02 bkoz
-
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// Include all the headers except for iostream.
-#include <algorithm>
-#include <bitset>
-#include <complex>
-#include <deque>
-#include <exception>
-#include <fstream>
-#include <functional>
-#include <iomanip>
-#include <ios>
-#include <iosfwd>
-#include <istream>
-#include <iterator>
-#include <limits>
-#include <list>
-#include <locale>
-#include <map>
-#include <memory>
-#include <new>
-#include <numeric>
-#include <ostream>
-#include <queue>
-#include <set>
-#include <sstream>
-#include <stack>
-#include <stdexcept>
-#include <streambuf>
-#include <string>
-#include <typeinfo>
-#include <utility>
-#include <valarray>
-#include <vector>
-#include <cassert>
-#include <cctype>
-#include <cerrno>
-#include <cfloat>
-#include <ciso646>
-#include <climits>
-#include <clocale>
-#include <cmath>
-#include <csetjmp>
-#include <csignal>
-#include <cstdarg>
-#include <cstddef>
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-#include <ctime>
-#include <cwchar>
-#include <cwctype>
-#include <testsuite_hooks.h>
-
-// Include iostream last, just to make is as difficult as possible to
-// properly initialize the standard iostream objects.
-#include <iostream>
-
-// Make sure all the standard streams are defined.
-void
-test01()
-{
- bool test = true;
-
- wchar_t array2[20];
- typedef std::wios::traits_type wtraits_type;
- wtraits_type::int_type wi = 15;
- wtraits_type::copy(array2, L"testing istream", wi);
- std::wcout << L"testing wcout" << std::endl;
- std::wcerr << L"testing wcerr" << std::endl;
- VERIFY( std::wcerr.flags() & std::ios_base::unitbuf );
- std::wclog << L"testing wclog" << std::endl;
- // std::wcin >> array2; // requires somebody to type something in.
- VERIFY( std::wcin.tie() == &std::wcout );
-}
-
-
-int
-main()
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/types/1.cc b/libstdc++-v3/testsuite/27_io/types/1.cc
deleted file mode 100644
index 9ec9bb75755..00000000000
--- a/libstdc++-v3/testsuite/27_io/types/1.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (C) 2002 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.4.2.1 - Types [lib.ios.types]
-
-#include <ios>
-#include <testsuite_hooks.h>
-
-// libstdc++/7219
-// Annex D, deprecated.
-void test01()
-{
-#if _GLIBCPP_DEPRECATED
- std::ios_base::streampos spos;
- std::ios_base::streamoff soff;
-#endif
-}
-
-int main(void)
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/27_io/types/2.cc b/libstdc++-v3/testsuite/27_io/types/2.cc
deleted file mode 100644
index c64e20b78fb..00000000000
--- a/libstdc++-v3/testsuite/27_io/types/2.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (C) 2003 Free Software Foundation
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-// 27.4.2.1 - Types [lib.ios.types]
-
-#include <ios>
-#include <testsuite_hooks.h>
-
-void test01()
-{
- std::streamsize ssize;
- std::streamoff soff;
-
- // No signed/unsigned warnings.
- long l = ssize;
-
- // Wrapped in pos_type is EOF.
- soff = -1;
-}
-
-int main(void)
-{
- test01();
- return 0;
-}
diff --git a/libstdc++-v3/testsuite/data/filebuf_members-1.tst b/libstdc++-v3/testsuite/data/filebuf_members-1.tst
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/libstdc++-v3/testsuite/data/filebuf_members-1.tst
+++ /dev/null
diff --git a/libstdc++-v3/testsuite/data/filebuf_members-1.txt b/libstdc++-v3/testsuite/data/filebuf_members-1.txt
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/libstdc++-v3/testsuite/data/filebuf_members-1.txt
+++ /dev/null
diff --git a/libstdc++-v3/testsuite/data/filebuf_virtuals-1.tst b/libstdc++-v3/testsuite/data/filebuf_virtuals-1.tst
deleted file mode 100644
index cb3c57f7dfd..00000000000
--- a/libstdc++-v3/testsuite/data/filebuf_virtuals-1.tst
+++ /dev/null
@@ -1,158 +0,0 @@
-// 990117 bkoz
-// test functionality of basic_filebuf for char_type == char
-// this is a data file for 27filebuf.cc
-
-// Copyright (C) 1997-1999 Cygnus Solutions
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-/mnt/cdrom/sarah_vaughan/sarah_vaughan.allofme
-/mnt/cdrom/sarah_vaughan/sarah_vaughan.speaklow
-
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_01_the_way_i_feel
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_02_seduction_kidnap
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_03_just_a_ny_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_04_butterflies_i_remem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_05_luxury_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_06_my_house
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_07_the_women_gather
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_08_the_life_i_led
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_09_when_i_die
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_10_revolutionary_dreams
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_11_winter_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_12_a_certain_peace_i_nap
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_13_poem_for_a_lady_whose
-
-/mnt/cdrom/marley-songs_of_freedom/disk_1/
-/mnt/cdrom/marley-songs_of_freedom/disk_2/
-/mnt/cdrom/marley-songs_of_freedom/disk_4/
-
-/mnt/cdrom/marley-songs_of_freedom/disk_1/back out
-/mnt/cdrom/marley-songs_of_freedom/disk_1/bend down low
-/mnt/cdrom/marley-songs_of_freedom/disk_1/bus dem shut (pyaka)
-/mnt/cdrom/marley-songs_of_freedom/disk_1/caution
-/mnt/cdrom/marley-songs_of_freedom/disk_1/do it twice
-/mnt/cdrom/marley-songs_of_freedom/disk_1/don't rock the boat
-/mnt/cdrom/marley-songs_of_freedom/disk_1/duppy conqueror
-/mnt/cdrom/marley-songs_of_freedom/disk_1/hammer
-/mnt/cdrom/marley-songs_of_freedom/disk_1/hypocrites
-/mnt/cdrom/marley-songs_of_freedom/disk_1/i'm still waiting
-/mnt/cdrom/marley-songs_of_freedom/disk_1/judge not
-/mnt/cdrom/marley-songs_of_freedom/disk_1/mellow mood
-/mnt/cdrom/marley-songs_of_freedom/disk_1/mr brown
-/mnt/cdrom/marley-songs_of_freedom/disk_1/nice time
-/mnt/cdrom/marley-songs_of_freedom/disk_1/one cup of coffee
-/mnt/cdrom/marley-songs_of_freedom/disk_1/one love_people get ready
-/mnt/cdrom/marley-songs_of_freedom/disk_1/put it on
-/mnt/cdrom/marley-songs_of_freedom/disk_1/simmer down
-/mnt/cdrom/marley-songs_of_freedom/disk_1/small axe
-/mnt/cdrom/marley-songs_of_freedom/disk_1/soul rebel
-/mnt/cdrom/marley-songs_of_freedom/disk_1/soul shake down party
-/mnt/cdrom/marley-songs_of_freedom/disk_1/stir it up (original)
-/mnt/cdrom/marley-songs_of_freedom/disk_1/sun is shining
-/mnt/cdrom/marley-songs_of_freedom/disk_1/thank you lord (original)
-/mnt/cdrom/marley-songs_of_freedom/disk_2/acoustic medley
-/mnt/cdrom/marley-songs_of_freedom/disk_2/burnin' and lootin'
-/mnt/cdrom/marley-songs_of_freedom/disk_2/concrete jungle
-/mnt/cdrom/marley-songs_of_freedom/disk_2/craven choke puppy
-/mnt/cdrom/marley-songs_of_freedom/disk_2/get up stand up
-/mnt/cdrom/marley-songs_of_freedom/disk_2/guava jelly
-/mnt/cdrom/marley-songs_of_freedom/disk_2/high tide or low tide
-/mnt/cdrom/marley-songs_of_freedom/disk_2/i shot the sheriff
-/mnt/cdrom/marley-songs_of_freedom/disk_2/i'm hurting inside
-/mnt/cdrom/marley-songs_of_freedom/disk_2/iron lion zion
-/mnt/cdrom/marley-songs_of_freedom/disk_2/lick samba
-/mnt/cdrom/marley-songs_of_freedom/disk_2/lively up yourself
-/mnt/cdrom/marley-songs_of_freedom/disk_2/natty dread
-/mnt/cdrom/marley-songs_of_freedom/disk_2/no more trouble
-/mnt/cdrom/marley-songs_of_freedom/disk_2/rastaman chant
-/mnt/cdrom/marley-songs_of_freedom/disk_2/screw face
-/mnt/cdrom/marley-songs_of_freedom/disk_2/slave driver
-/mnt/cdrom/marley-songs_of_freedom/disk_2/trenchtown rock
-/mnt/cdrom/marley-songs_of_freedom/disk_4/africa unite
-/mnt/cdrom/marley-songs_of_freedom/disk_4/babylon system
-/mnt/cdrom/marley-songs_of_freedom/disk_4/bad card
-/mnt/cdrom/marley-songs_of_freedom/disk_4/coming in from the cold (12
-/mnt/cdrom/marley-songs_of_freedom/disk_4/could you be loved (12 mix
-/mnt/cdrom/marley-songs_of_freedom/disk_4/forever loving jah
-/mnt/cdrom/marley-songs_of_freedom/disk_4/give thanks and praise
-/mnt/cdrom/marley-songs_of_freedom/disk_4/one drop
-/mnt/cdrom/marley-songs_of_freedom/disk_4/one dub
-/mnt/cdrom/marley-songs_of_freedom/disk_4/rastaman live up
-/mnt/cdrom/marley-songs_of_freedom/disk_4/real situation
-/mnt/cdrom/marley-songs_of_freedom/disk_4/redemption song (live in pi
-/mnt/cdrom/marley-songs_of_freedom/disk_4/ride natty ride (12 mix)
-/mnt/cdrom/marley-songs_of_freedom/disk_4/so much trouble in the worl
-/mnt/cdrom/marley-songs_of_freedom/disk_4/survival
-/mnt/cdrom/marley-songs_of_freedom/disk_4/why should i (previously un
-/mnt/cdrom/marley-songs_of_freedom/disk_4/zimbabwe
-
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_01_pandemonium
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_02_sync_disjecta
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_03_object_unknown
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_04_it's_nice_not
-/mnt/cdrom/dj_spooky_rid-2dim_warefare/djspooky_05_dialectical_tra
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_06_post-human_soph
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_07_quilombo_ex
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_08_rekonstruction
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_09_scientifik
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_10_a_conversation
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_11_peace_in_zaire
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_13_degree_zero
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_14_roman_planeta
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_15_bass_digitalis
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_16_polyphony_of
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_17_riddim_warfare
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_18_the_nerd
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_20_theme_of_the
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_21_twilight_fugue
-
-/mnt/cdrom/stuff_smith_mosaic/disk3/01_desert_sands
-/mnt/cdrom/stuff_smith_mosaic/disk3/02_soft_winds
-/mnt/cdrom/stuff_smith_mosaic/disk3/03_time_and_again
-/mnt/cdrom/stuff_smith_mosaic/disk3/04_it_don't_mean_a_thing
-/mnt/cdrom/stuff_smith_mosaic/disk3/05_in_a_mellotone
-/mnt/cdrom/stuff_smith_mosaic/disk3/06_i_know_that_you_know
-/mnt/cdrom/stuff_smith_mosaic/disk3/07_heat_wave
-/mnt/cdrom/stuff_smith_mosaic/disk3/08_things_ain't_what_they_used_to_be
-/mnt/cdrom/stuff_smith_mosaic/disk3/09_body_and_soul
-
-So I take a break, wander down to the park to stand, then lean into
-the concrete railing demarking the beginnings of space, oceanic
-space. I watch the waves break, and form, and ease back out to sea and
-wrap my arms around myself and hug tightly because it's early in the
-morning and windy, and the sun is late getting out of bed today, which
-is good because if there was brilliant light illuminating all the
-beauty around me I would be shocked, stunned, forced to retreat back
-into my cabana in a daze, blinded by hummingbirds and callilillies and
-un-named red, yellow, and blue flowers. Green envelopes me, waves
-sooth me. I can see the wind flip the top of the waves seaward, right
-before they break. The sea seems so calm from my perch above the fray
-that I wonder if maybe there is just some part of the deepest, most
-abstract ocean where there is a large creature who happily chews
-plankton and wags its tail in gentle, adulating waves that spread and
-move and gracefully glide thousands of miles, to crash upon a beach,
-one after the other, politely waiting for a turn to dance with the
-seashore.
-
-I know: it is what the Mexican schoolchildren call "la vibora de la
-mer," the serpent of the sea.
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/data/filebuf_virtuals-1.txt b/libstdc++-v3/testsuite/data/filebuf_virtuals-1.txt
deleted file mode 100644
index cb3c57f7dfd..00000000000
--- a/libstdc++-v3/testsuite/data/filebuf_virtuals-1.txt
+++ /dev/null
@@ -1,158 +0,0 @@
-// 990117 bkoz
-// test functionality of basic_filebuf for char_type == char
-// this is a data file for 27filebuf.cc
-
-// Copyright (C) 1997-1999 Cygnus Solutions
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-/mnt/cdrom/sarah_vaughan/sarah_vaughan.allofme
-/mnt/cdrom/sarah_vaughan/sarah_vaughan.speaklow
-
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_01_the_way_i_feel
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_02_seduction_kidnap
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_03_just_a_ny_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_04_butterflies_i_remem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_05_luxury_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_06_my_house
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_07_the_women_gather
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_08_the_life_i_led
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_09_when_i_die
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_10_revolutionary_dreams
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_11_winter_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_12_a_certain_peace_i_nap
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_13_poem_for_a_lady_whose
-
-/mnt/cdrom/marley-songs_of_freedom/disk_1/
-/mnt/cdrom/marley-songs_of_freedom/disk_2/
-/mnt/cdrom/marley-songs_of_freedom/disk_4/
-
-/mnt/cdrom/marley-songs_of_freedom/disk_1/back out
-/mnt/cdrom/marley-songs_of_freedom/disk_1/bend down low
-/mnt/cdrom/marley-songs_of_freedom/disk_1/bus dem shut (pyaka)
-/mnt/cdrom/marley-songs_of_freedom/disk_1/caution
-/mnt/cdrom/marley-songs_of_freedom/disk_1/do it twice
-/mnt/cdrom/marley-songs_of_freedom/disk_1/don't rock the boat
-/mnt/cdrom/marley-songs_of_freedom/disk_1/duppy conqueror
-/mnt/cdrom/marley-songs_of_freedom/disk_1/hammer
-/mnt/cdrom/marley-songs_of_freedom/disk_1/hypocrites
-/mnt/cdrom/marley-songs_of_freedom/disk_1/i'm still waiting
-/mnt/cdrom/marley-songs_of_freedom/disk_1/judge not
-/mnt/cdrom/marley-songs_of_freedom/disk_1/mellow mood
-/mnt/cdrom/marley-songs_of_freedom/disk_1/mr brown
-/mnt/cdrom/marley-songs_of_freedom/disk_1/nice time
-/mnt/cdrom/marley-songs_of_freedom/disk_1/one cup of coffee
-/mnt/cdrom/marley-songs_of_freedom/disk_1/one love_people get ready
-/mnt/cdrom/marley-songs_of_freedom/disk_1/put it on
-/mnt/cdrom/marley-songs_of_freedom/disk_1/simmer down
-/mnt/cdrom/marley-songs_of_freedom/disk_1/small axe
-/mnt/cdrom/marley-songs_of_freedom/disk_1/soul rebel
-/mnt/cdrom/marley-songs_of_freedom/disk_1/soul shake down party
-/mnt/cdrom/marley-songs_of_freedom/disk_1/stir it up (original)
-/mnt/cdrom/marley-songs_of_freedom/disk_1/sun is shining
-/mnt/cdrom/marley-songs_of_freedom/disk_1/thank you lord (original)
-/mnt/cdrom/marley-songs_of_freedom/disk_2/acoustic medley
-/mnt/cdrom/marley-songs_of_freedom/disk_2/burnin' and lootin'
-/mnt/cdrom/marley-songs_of_freedom/disk_2/concrete jungle
-/mnt/cdrom/marley-songs_of_freedom/disk_2/craven choke puppy
-/mnt/cdrom/marley-songs_of_freedom/disk_2/get up stand up
-/mnt/cdrom/marley-songs_of_freedom/disk_2/guava jelly
-/mnt/cdrom/marley-songs_of_freedom/disk_2/high tide or low tide
-/mnt/cdrom/marley-songs_of_freedom/disk_2/i shot the sheriff
-/mnt/cdrom/marley-songs_of_freedom/disk_2/i'm hurting inside
-/mnt/cdrom/marley-songs_of_freedom/disk_2/iron lion zion
-/mnt/cdrom/marley-songs_of_freedom/disk_2/lick samba
-/mnt/cdrom/marley-songs_of_freedom/disk_2/lively up yourself
-/mnt/cdrom/marley-songs_of_freedom/disk_2/natty dread
-/mnt/cdrom/marley-songs_of_freedom/disk_2/no more trouble
-/mnt/cdrom/marley-songs_of_freedom/disk_2/rastaman chant
-/mnt/cdrom/marley-songs_of_freedom/disk_2/screw face
-/mnt/cdrom/marley-songs_of_freedom/disk_2/slave driver
-/mnt/cdrom/marley-songs_of_freedom/disk_2/trenchtown rock
-/mnt/cdrom/marley-songs_of_freedom/disk_4/africa unite
-/mnt/cdrom/marley-songs_of_freedom/disk_4/babylon system
-/mnt/cdrom/marley-songs_of_freedom/disk_4/bad card
-/mnt/cdrom/marley-songs_of_freedom/disk_4/coming in from the cold (12
-/mnt/cdrom/marley-songs_of_freedom/disk_4/could you be loved (12 mix
-/mnt/cdrom/marley-songs_of_freedom/disk_4/forever loving jah
-/mnt/cdrom/marley-songs_of_freedom/disk_4/give thanks and praise
-/mnt/cdrom/marley-songs_of_freedom/disk_4/one drop
-/mnt/cdrom/marley-songs_of_freedom/disk_4/one dub
-/mnt/cdrom/marley-songs_of_freedom/disk_4/rastaman live up
-/mnt/cdrom/marley-songs_of_freedom/disk_4/real situation
-/mnt/cdrom/marley-songs_of_freedom/disk_4/redemption song (live in pi
-/mnt/cdrom/marley-songs_of_freedom/disk_4/ride natty ride (12 mix)
-/mnt/cdrom/marley-songs_of_freedom/disk_4/so much trouble in the worl
-/mnt/cdrom/marley-songs_of_freedom/disk_4/survival
-/mnt/cdrom/marley-songs_of_freedom/disk_4/why should i (previously un
-/mnt/cdrom/marley-songs_of_freedom/disk_4/zimbabwe
-
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_01_pandemonium
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_02_sync_disjecta
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_03_object_unknown
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_04_it's_nice_not
-/mnt/cdrom/dj_spooky_rid-2dim_warefare/djspooky_05_dialectical_tra
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_06_post-human_soph
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_07_quilombo_ex
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_08_rekonstruction
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_09_scientifik
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_10_a_conversation
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_11_peace_in_zaire
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_13_degree_zero
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_14_roman_planeta
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_15_bass_digitalis
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_16_polyphony_of
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_17_riddim_warfare
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_18_the_nerd
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_20_theme_of_the
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_21_twilight_fugue
-
-/mnt/cdrom/stuff_smith_mosaic/disk3/01_desert_sands
-/mnt/cdrom/stuff_smith_mosaic/disk3/02_soft_winds
-/mnt/cdrom/stuff_smith_mosaic/disk3/03_time_and_again
-/mnt/cdrom/stuff_smith_mosaic/disk3/04_it_don't_mean_a_thing
-/mnt/cdrom/stuff_smith_mosaic/disk3/05_in_a_mellotone
-/mnt/cdrom/stuff_smith_mosaic/disk3/06_i_know_that_you_know
-/mnt/cdrom/stuff_smith_mosaic/disk3/07_heat_wave
-/mnt/cdrom/stuff_smith_mosaic/disk3/08_things_ain't_what_they_used_to_be
-/mnt/cdrom/stuff_smith_mosaic/disk3/09_body_and_soul
-
-So I take a break, wander down to the park to stand, then lean into
-the concrete railing demarking the beginnings of space, oceanic
-space. I watch the waves break, and form, and ease back out to sea and
-wrap my arms around myself and hug tightly because it's early in the
-morning and windy, and the sun is late getting out of bed today, which
-is good because if there was brilliant light illuminating all the
-beauty around me I would be shocked, stunned, forced to retreat back
-into my cabana in a daze, blinded by hummingbirds and callilillies and
-un-named red, yellow, and blue flowers. Green envelopes me, waves
-sooth me. I can see the wind flip the top of the waves seaward, right
-before they break. The sea seems so calm from my perch above the fray
-that I wonder if maybe there is just some part of the deepest, most
-abstract ocean where there is a large creature who happily chews
-plankton and wags its tail in gentle, adulating waves that spread and
-move and gracefully glide thousands of miles, to crash upon a beach,
-one after the other, politely waiting for a turn to dance with the
-seashore.
-
-I know: it is what the Mexican schoolchildren call "la vibora de la
-mer," the serpent of the sea.
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/data/filebuf_virtuals-2.tst b/libstdc++-v3/testsuite/data/filebuf_virtuals-2.tst
deleted file mode 100644
index f25bba46d92..00000000000
--- a/libstdc++-v3/testsuite/data/filebuf_virtuals-2.tst
+++ /dev/null
@@ -1 +0,0 @@
-ac23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZracadabras23456789:;< \ No newline at end of file
diff --git a/libstdc++-v3/testsuite/data/filebuf_virtuals-3.tst b/libstdc++-v3/testsuite/data/filebuf_virtuals-3.tst
deleted file mode 100644
index 0a81f511290..00000000000
--- a/libstdc++-v3/testsuite/data/filebuf_virtuals-3.tst
+++ /dev/null
@@ -1,7 +0,0 @@
-bd2
-456x
-9m;uva?@ABCDEFGHIJKLMNOPQRSTUVWXYZracadabras, i wanna
-because because
-because. . .
-of the wonderful things he does!!
-ok \ No newline at end of file
diff --git a/libstdc++-v3/testsuite/data/ifstream_members-1.tst b/libstdc++-v3/testsuite/data/ifstream_members-1.tst
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/libstdc++-v3/testsuite/data/ifstream_members-1.tst
+++ /dev/null
diff --git a/libstdc++-v3/testsuite/data/ifstream_members-1.txt b/libstdc++-v3/testsuite/data/ifstream_members-1.txt
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/libstdc++-v3/testsuite/data/ifstream_members-1.txt
+++ /dev/null
diff --git a/libstdc++-v3/testsuite/data/ios_base_members_static-1.tst b/libstdc++-v3/testsuite/data/ios_base_members_static-1.tst
deleted file mode 100644
index 8d1e93a0002..00000000000
--- a/libstdc++-v3/testsuite/data/ios_base_members_static-1.tst
+++ /dev/null
@@ -1,2 +0,0 @@
-1234567890
-1234567890
diff --git a/libstdc++-v3/testsuite/data/istream_extractor_other-1.tst b/libstdc++-v3/testsuite/data/istream_extractor_other-1.tst
deleted file mode 100644
index 717a04c5f4d..00000000000
--- a/libstdc++-v3/testsuite/data/istream_extractor_other-1.tst
+++ /dev/null
@@ -1,65 +0,0 @@
-// 990811 bkoz
-
-// Copyright (C) 1999 Cygnus Solutions
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/King Tubby's - Repatriation
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/Vivian Jackson and the Prop
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/Michael Rose - Born Free (d
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/King Tubby's - Love Thy Nei
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Vivian Jackson and the Defe
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Vivian Jackson and the Ralp
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Tommy McCook and Don D. Jnr
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Big Youth and Vivian Jackso
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/King Tubby's - Big Youth Fi
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Upsetter Mix - Rally Dub
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Dicky Burton - God Is Watch
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Pablo and Vivian Jackson -
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/King Tubby's - Rock King Tu
-/mnt/cdrom/TORTOISE_millions_now_living/tortoise_5
-/mnt/cdrom/TORTOISE_millions_now_living/tortoise_6
-/mnt/cdrom/bettycarter_i'myours,you'remine/This time
-/mnt/cdrom/bettycarter_i'myours,you'remine/I'm Yours, You're Mine
-/mnt/cdrom/bettycarter_i'myours,you'remine/Lonely House
-/mnt/cdrom/bettycarter_i'myours,you'remine/Close Your Eyes
-/mnt/cdrom/bettycarter_i'myours,you'remine/Useless Landscape
-/mnt/cdrom/bettycarter_i'myours,you'remine/East of the Sun
-/mnt/cdrom/bettycarter_i'myours,you'remine/September Song
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Naima's Love Song
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Stay As Sweet As You Are
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Make Him Believe
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/I Should Care
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Once Upon a Summertime
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/You Go To My Head
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/In the Still Of the Night
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/When It's Sleepy Time Down
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/The Love We Had Yesterday
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Dip Bag
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/You're Mine, Too
-/mnt/cdrom/c_adderly_somethin'_else/Autumn Leaves
-/mnt/cdrom/c_adderly_somethin'_else/Love For Sale
-/mnt/cdrom/c_adderly_somethin'_else/Somethin' Else
-/mnt/cdrom/c_adderly_somethin'_else/One For Daddy-O
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/data/istream_extractor_other-1.txt b/libstdc++-v3/testsuite/data/istream_extractor_other-1.txt
deleted file mode 100644
index 717a04c5f4d..00000000000
--- a/libstdc++-v3/testsuite/data/istream_extractor_other-1.txt
+++ /dev/null
@@ -1,65 +0,0 @@
-// 990811 bkoz
-
-// Copyright (C) 1999 Cygnus Solutions
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/King Tubby's - Repatriation
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/Vivian Jackson and the Prop
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/Michael Rose - Born Free (d
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/King Tubby's - Love Thy Nei
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Vivian Jackson and the Defe
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Vivian Jackson and the Ralp
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Tommy McCook and Don D. Jnr
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Big Youth and Vivian Jackso
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/King Tubby's - Big Youth Fi
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Upsetter Mix - Rally Dub
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Dicky Burton - God Is Watch
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Pablo and Vivian Jackson -
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/King Tubby's - Rock King Tu
-/mnt/cdrom/TORTOISE_millions_now_living/tortoise_5
-/mnt/cdrom/TORTOISE_millions_now_living/tortoise_6
-/mnt/cdrom/bettycarter_i'myours,you'remine/This time
-/mnt/cdrom/bettycarter_i'myours,you'remine/I'm Yours, You're Mine
-/mnt/cdrom/bettycarter_i'myours,you'remine/Lonely House
-/mnt/cdrom/bettycarter_i'myours,you'remine/Close Your Eyes
-/mnt/cdrom/bettycarter_i'myours,you'remine/Useless Landscape
-/mnt/cdrom/bettycarter_i'myours,you'remine/East of the Sun
-/mnt/cdrom/bettycarter_i'myours,you'remine/September Song
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Naima's Love Song
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Stay As Sweet As You Are
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Make Him Believe
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/I Should Care
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Once Upon a Summertime
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/You Go To My Head
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/In the Still Of the Night
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/When It's Sleepy Time Down
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/The Love We Had Yesterday
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Dip Bag
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/You're Mine, Too
-/mnt/cdrom/c_adderly_somethin'_else/Autumn Leaves
-/mnt/cdrom/c_adderly_somethin'_else/Love For Sale
-/mnt/cdrom/c_adderly_somethin'_else/Somethin' Else
-/mnt/cdrom/c_adderly_somethin'_else/One For Daddy-O
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/data/istream_extractor_other-2.tst b/libstdc++-v3/testsuite/data/istream_extractor_other-2.tst
deleted file mode 100644
index 717a04c5f4d..00000000000
--- a/libstdc++-v3/testsuite/data/istream_extractor_other-2.tst
+++ /dev/null
@@ -1,65 +0,0 @@
-// 990811 bkoz
-
-// Copyright (C) 1999 Cygnus Solutions
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/King Tubby's - Repatriation
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/Vivian Jackson and the Prop
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/Michael Rose - Born Free (d
-/mnt/cdrom/yabbyyou_jesusdread/disk_2/King Tubby's - Love Thy Nei
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Vivian Jackson and the Defe
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Vivian Jackson and the Ralp
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Tommy McCook and Don D. Jnr
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Big Youth and Vivian Jackso
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/King Tubby's - Big Youth Fi
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Upsetter Mix - Rally Dub
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Dicky Burton - God Is Watch
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/Pablo and Vivian Jackson -
-/mnt/cdrom/yabbyyou_jesusdread/disk_1/King Tubby's - Rock King Tu
-/mnt/cdrom/TORTOISE_millions_now_living/tortoise_5
-/mnt/cdrom/TORTOISE_millions_now_living/tortoise_6
-/mnt/cdrom/bettycarter_i'myours,you'remine/This time
-/mnt/cdrom/bettycarter_i'myours,you'remine/I'm Yours, You're Mine
-/mnt/cdrom/bettycarter_i'myours,you'remine/Lonely House
-/mnt/cdrom/bettycarter_i'myours,you'remine/Close Your Eyes
-/mnt/cdrom/bettycarter_i'myours,you'remine/Useless Landscape
-/mnt/cdrom/bettycarter_i'myours,you'remine/East of the Sun
-/mnt/cdrom/bettycarter_i'myours,you'remine/September Song
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Naima's Love Song
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Stay As Sweet As You Are
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Make Him Believe
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/I Should Care
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Once Upon a Summertime
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/You Go To My Head
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/In the Still Of the Night
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/When It's Sleepy Time Down
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/The Love We Had Yesterday
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/Dip Bag
-/mnt/cdrom/bettycarter_it'snotaboutthemelo/You're Mine, Too
-/mnt/cdrom/c_adderly_somethin'_else/Autumn Leaves
-/mnt/cdrom/c_adderly_somethin'_else/Love For Sale
-/mnt/cdrom/c_adderly_somethin'_else/Somethin' Else
-/mnt/cdrom/c_adderly_somethin'_else/One For Daddy-O
-
-
-
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/data/istream_seeks-1.tst b/libstdc++-v3/testsuite/data/istream_seeks-1.tst
deleted file mode 100644
index 5d9eafa2a36..00000000000
--- a/libstdc++-v3/testsuite/data/istream_seeks-1.tst
+++ /dev/null
@@ -1,7 +0,0 @@
-bd2
-456x
-9mzuv>?@ABCDEFGHIJKLMNOPQRSTUVWXYZracadabras, i wannaz
-because because
-because. .
-of the wonderful things he does!!
-ok \ No newline at end of file
diff --git a/libstdc++-v3/testsuite/data/istream_seeks-1.txt b/libstdc++-v3/testsuite/data/istream_seeks-1.txt
deleted file mode 100644
index 5d9eafa2a36..00000000000
--- a/libstdc++-v3/testsuite/data/istream_seeks-1.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-bd2
-456x
-9mzuv>?@ABCDEFGHIJKLMNOPQRSTUVWXYZracadabras, i wannaz
-because because
-because. .
-of the wonderful things he does!!
-ok \ No newline at end of file
diff --git a/libstdc++-v3/testsuite/data/istream_seeks-2.tst b/libstdc++-v3/testsuite/data/istream_seeks-2.tst
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/libstdc++-v3/testsuite/data/istream_seeks-2.tst
+++ /dev/null
diff --git a/libstdc++-v3/testsuite/data/istream_seeks-3.tst b/libstdc++-v3/testsuite/data/istream_seeks-3.tst
deleted file mode 100644
index dc45fc9330a..00000000000
--- a/libstdc++-v3/testsuite/data/istream_seeks-3.tst
+++ /dev/null
@@ -1,10 +0,0 @@
-0-0 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-1 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-2 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-3 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-4 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-5 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-6 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-7 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-8 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
-0-9 lootpack, peanut butter wolf, rob swift, madlib, quasimoto
diff --git a/libstdc++-v3/testsuite/data/istream_unformatted-1.tst b/libstdc++-v3/testsuite/data/istream_unformatted-1.tst
deleted file mode 100644
index 9b770a55c3a..00000000000
--- a/libstdc++-v3/testsuite/data/istream_unformatted-1.tst
+++ /dev/null
@@ -1,1500 +0,0 @@
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
diff --git a/libstdc++-v3/testsuite/data/istream_unformatted-1.txt b/libstdc++-v3/testsuite/data/istream_unformatted-1.txt
deleted file mode 100644
index 9b770a55c3a..00000000000
--- a/libstdc++-v3/testsuite/data/istream_unformatted-1.txt
+++ /dev/null
@@ -1,1500 +0,0 @@
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
-1234567890
diff --git a/libstdc++-v3/testsuite/data/ofstream_members-1.tst b/libstdc++-v3/testsuite/data/ofstream_members-1.tst
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/libstdc++-v3/testsuite/data/ofstream_members-1.tst
+++ /dev/null
diff --git a/libstdc++-v3/testsuite/data/ostream_inserter_char-1.tst b/libstdc++-v3/testsuite/data/ostream_inserter_char-1.tst
deleted file mode 100644
index 0b0acc85640..00000000000
--- a/libstdc++-v3/testsuite/data/ostream_inserter_char-1.tst
+++ /dev/null
@@ -1,1000 +0,0 @@
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
diff --git a/libstdc++-v3/testsuite/data/ostream_inserter_char-1.txt b/libstdc++-v3/testsuite/data/ostream_inserter_char-1.txt
deleted file mode 100644
index 0b0acc85640..00000000000
--- a/libstdc++-v3/testsuite/data/ostream_inserter_char-1.txt
+++ /dev/null
@@ -1,1000 +0,0 @@
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
-123456789
diff --git a/libstdc++-v3/testsuite/data/ostream_inserter_other-1.tst b/libstdc++-v3/testsuite/data/ostream_inserter_other-1.tst
deleted file mode 100644
index cb3c57f7dfd..00000000000
--- a/libstdc++-v3/testsuite/data/ostream_inserter_other-1.tst
+++ /dev/null
@@ -1,158 +0,0 @@
-// 990117 bkoz
-// test functionality of basic_filebuf for char_type == char
-// this is a data file for 27filebuf.cc
-
-// Copyright (C) 1997-1999 Cygnus Solutions
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-/mnt/cdrom/sarah_vaughan/sarah_vaughan.allofme
-/mnt/cdrom/sarah_vaughan/sarah_vaughan.speaklow
-
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_01_the_way_i_feel
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_02_seduction_kidnap
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_03_just_a_ny_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_04_butterflies_i_remem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_05_luxury_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_06_my_house
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_07_the_women_gather
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_08_the_life_i_led
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_09_when_i_die
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_10_revolutionary_dreams
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_11_winter_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_12_a_certain_peace_i_nap
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_13_poem_for_a_lady_whose
-
-/mnt/cdrom/marley-songs_of_freedom/disk_1/
-/mnt/cdrom/marley-songs_of_freedom/disk_2/
-/mnt/cdrom/marley-songs_of_freedom/disk_4/
-
-/mnt/cdrom/marley-songs_of_freedom/disk_1/back out
-/mnt/cdrom/marley-songs_of_freedom/disk_1/bend down low
-/mnt/cdrom/marley-songs_of_freedom/disk_1/bus dem shut (pyaka)
-/mnt/cdrom/marley-songs_of_freedom/disk_1/caution
-/mnt/cdrom/marley-songs_of_freedom/disk_1/do it twice
-/mnt/cdrom/marley-songs_of_freedom/disk_1/don't rock the boat
-/mnt/cdrom/marley-songs_of_freedom/disk_1/duppy conqueror
-/mnt/cdrom/marley-songs_of_freedom/disk_1/hammer
-/mnt/cdrom/marley-songs_of_freedom/disk_1/hypocrites
-/mnt/cdrom/marley-songs_of_freedom/disk_1/i'm still waiting
-/mnt/cdrom/marley-songs_of_freedom/disk_1/judge not
-/mnt/cdrom/marley-songs_of_freedom/disk_1/mellow mood
-/mnt/cdrom/marley-songs_of_freedom/disk_1/mr brown
-/mnt/cdrom/marley-songs_of_freedom/disk_1/nice time
-/mnt/cdrom/marley-songs_of_freedom/disk_1/one cup of coffee
-/mnt/cdrom/marley-songs_of_freedom/disk_1/one love_people get ready
-/mnt/cdrom/marley-songs_of_freedom/disk_1/put it on
-/mnt/cdrom/marley-songs_of_freedom/disk_1/simmer down
-/mnt/cdrom/marley-songs_of_freedom/disk_1/small axe
-/mnt/cdrom/marley-songs_of_freedom/disk_1/soul rebel
-/mnt/cdrom/marley-songs_of_freedom/disk_1/soul shake down party
-/mnt/cdrom/marley-songs_of_freedom/disk_1/stir it up (original)
-/mnt/cdrom/marley-songs_of_freedom/disk_1/sun is shining
-/mnt/cdrom/marley-songs_of_freedom/disk_1/thank you lord (original)
-/mnt/cdrom/marley-songs_of_freedom/disk_2/acoustic medley
-/mnt/cdrom/marley-songs_of_freedom/disk_2/burnin' and lootin'
-/mnt/cdrom/marley-songs_of_freedom/disk_2/concrete jungle
-/mnt/cdrom/marley-songs_of_freedom/disk_2/craven choke puppy
-/mnt/cdrom/marley-songs_of_freedom/disk_2/get up stand up
-/mnt/cdrom/marley-songs_of_freedom/disk_2/guava jelly
-/mnt/cdrom/marley-songs_of_freedom/disk_2/high tide or low tide
-/mnt/cdrom/marley-songs_of_freedom/disk_2/i shot the sheriff
-/mnt/cdrom/marley-songs_of_freedom/disk_2/i'm hurting inside
-/mnt/cdrom/marley-songs_of_freedom/disk_2/iron lion zion
-/mnt/cdrom/marley-songs_of_freedom/disk_2/lick samba
-/mnt/cdrom/marley-songs_of_freedom/disk_2/lively up yourself
-/mnt/cdrom/marley-songs_of_freedom/disk_2/natty dread
-/mnt/cdrom/marley-songs_of_freedom/disk_2/no more trouble
-/mnt/cdrom/marley-songs_of_freedom/disk_2/rastaman chant
-/mnt/cdrom/marley-songs_of_freedom/disk_2/screw face
-/mnt/cdrom/marley-songs_of_freedom/disk_2/slave driver
-/mnt/cdrom/marley-songs_of_freedom/disk_2/trenchtown rock
-/mnt/cdrom/marley-songs_of_freedom/disk_4/africa unite
-/mnt/cdrom/marley-songs_of_freedom/disk_4/babylon system
-/mnt/cdrom/marley-songs_of_freedom/disk_4/bad card
-/mnt/cdrom/marley-songs_of_freedom/disk_4/coming in from the cold (12
-/mnt/cdrom/marley-songs_of_freedom/disk_4/could you be loved (12 mix
-/mnt/cdrom/marley-songs_of_freedom/disk_4/forever loving jah
-/mnt/cdrom/marley-songs_of_freedom/disk_4/give thanks and praise
-/mnt/cdrom/marley-songs_of_freedom/disk_4/one drop
-/mnt/cdrom/marley-songs_of_freedom/disk_4/one dub
-/mnt/cdrom/marley-songs_of_freedom/disk_4/rastaman live up
-/mnt/cdrom/marley-songs_of_freedom/disk_4/real situation
-/mnt/cdrom/marley-songs_of_freedom/disk_4/redemption song (live in pi
-/mnt/cdrom/marley-songs_of_freedom/disk_4/ride natty ride (12 mix)
-/mnt/cdrom/marley-songs_of_freedom/disk_4/so much trouble in the worl
-/mnt/cdrom/marley-songs_of_freedom/disk_4/survival
-/mnt/cdrom/marley-songs_of_freedom/disk_4/why should i (previously un
-/mnt/cdrom/marley-songs_of_freedom/disk_4/zimbabwe
-
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_01_pandemonium
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_02_sync_disjecta
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_03_object_unknown
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_04_it's_nice_not
-/mnt/cdrom/dj_spooky_rid-2dim_warefare/djspooky_05_dialectical_tra
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_06_post-human_soph
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_07_quilombo_ex
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_08_rekonstruction
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_09_scientifik
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_10_a_conversation
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_11_peace_in_zaire
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_13_degree_zero
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_14_roman_planeta
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_15_bass_digitalis
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_16_polyphony_of
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_17_riddim_warfare
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_18_the_nerd
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_20_theme_of_the
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_21_twilight_fugue
-
-/mnt/cdrom/stuff_smith_mosaic/disk3/01_desert_sands
-/mnt/cdrom/stuff_smith_mosaic/disk3/02_soft_winds
-/mnt/cdrom/stuff_smith_mosaic/disk3/03_time_and_again
-/mnt/cdrom/stuff_smith_mosaic/disk3/04_it_don't_mean_a_thing
-/mnt/cdrom/stuff_smith_mosaic/disk3/05_in_a_mellotone
-/mnt/cdrom/stuff_smith_mosaic/disk3/06_i_know_that_you_know
-/mnt/cdrom/stuff_smith_mosaic/disk3/07_heat_wave
-/mnt/cdrom/stuff_smith_mosaic/disk3/08_things_ain't_what_they_used_to_be
-/mnt/cdrom/stuff_smith_mosaic/disk3/09_body_and_soul
-
-So I take a break, wander down to the park to stand, then lean into
-the concrete railing demarking the beginnings of space, oceanic
-space. I watch the waves break, and form, and ease back out to sea and
-wrap my arms around myself and hug tightly because it's early in the
-morning and windy, and the sun is late getting out of bed today, which
-is good because if there was brilliant light illuminating all the
-beauty around me I would be shocked, stunned, forced to retreat back
-into my cabana in a daze, blinded by hummingbirds and callilillies and
-un-named red, yellow, and blue flowers. Green envelopes me, waves
-sooth me. I can see the wind flip the top of the waves seaward, right
-before they break. The sea seems so calm from my perch above the fray
-that I wonder if maybe there is just some part of the deepest, most
-abstract ocean where there is a large creature who happily chews
-plankton and wags its tail in gentle, adulating waves that spread and
-move and gracefully glide thousands of miles, to crash upon a beach,
-one after the other, politely waiting for a turn to dance with the
-seashore.
-
-I know: it is what the Mexican schoolchildren call "la vibora de la
-mer," the serpent of the sea.
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/data/ostream_inserter_other-2.tst b/libstdc++-v3/testsuite/data/ostream_inserter_other-2.tst
deleted file mode 100644
index cb3c57f7dfd..00000000000
--- a/libstdc++-v3/testsuite/data/ostream_inserter_other-2.tst
+++ /dev/null
@@ -1,158 +0,0 @@
-// 990117 bkoz
-// test functionality of basic_filebuf for char_type == char
-// this is a data file for 27filebuf.cc
-
-// Copyright (C) 1997-1999 Cygnus Solutions
-//
-// This file is part of the GNU ISO C++ Library. This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING. If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
-
-/mnt/cdrom/sarah_vaughan/sarah_vaughan.allofme
-/mnt/cdrom/sarah_vaughan/sarah_vaughan.speaklow
-
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_01_the_way_i_feel
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_02_seduction_kidnap
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_03_just_a_ny_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_04_butterflies_i_remem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_05_luxury_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_06_my_house
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_07_the_women_gather
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_08_the_life_i_led
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_09_when_i_die
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_10_revolutionary_dreams
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_11_winter_poem
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_12_a_certain_peace_i_nap
-/mnt/cdrom/nikkigiovanni_thewayifeel/ng_13_poem_for_a_lady_whose
-
-/mnt/cdrom/marley-songs_of_freedom/disk_1/
-/mnt/cdrom/marley-songs_of_freedom/disk_2/
-/mnt/cdrom/marley-songs_of_freedom/disk_4/
-
-/mnt/cdrom/marley-songs_of_freedom/disk_1/back out
-/mnt/cdrom/marley-songs_of_freedom/disk_1/bend down low
-/mnt/cdrom/marley-songs_of_freedom/disk_1/bus dem shut (pyaka)
-/mnt/cdrom/marley-songs_of_freedom/disk_1/caution
-/mnt/cdrom/marley-songs_of_freedom/disk_1/do it twice
-/mnt/cdrom/marley-songs_of_freedom/disk_1/don't rock the boat
-/mnt/cdrom/marley-songs_of_freedom/disk_1/duppy conqueror
-/mnt/cdrom/marley-songs_of_freedom/disk_1/hammer
-/mnt/cdrom/marley-songs_of_freedom/disk_1/hypocrites
-/mnt/cdrom/marley-songs_of_freedom/disk_1/i'm still waiting
-/mnt/cdrom/marley-songs_of_freedom/disk_1/judge not
-/mnt/cdrom/marley-songs_of_freedom/disk_1/mellow mood
-/mnt/cdrom/marley-songs_of_freedom/disk_1/mr brown
-/mnt/cdrom/marley-songs_of_freedom/disk_1/nice time
-/mnt/cdrom/marley-songs_of_freedom/disk_1/one cup of coffee
-/mnt/cdrom/marley-songs_of_freedom/disk_1/one love_people get ready
-/mnt/cdrom/marley-songs_of_freedom/disk_1/put it on
-/mnt/cdrom/marley-songs_of_freedom/disk_1/simmer down
-/mnt/cdrom/marley-songs_of_freedom/disk_1/small axe
-/mnt/cdrom/marley-songs_of_freedom/disk_1/soul rebel
-/mnt/cdrom/marley-songs_of_freedom/disk_1/soul shake down party
-/mnt/cdrom/marley-songs_of_freedom/disk_1/stir it up (original)
-/mnt/cdrom/marley-songs_of_freedom/disk_1/sun is shining
-/mnt/cdrom/marley-songs_of_freedom/disk_1/thank you lord (original)
-/mnt/cdrom/marley-songs_of_freedom/disk_2/acoustic medley
-/mnt/cdrom/marley-songs_of_freedom/disk_2/burnin' and lootin'
-/mnt/cdrom/marley-songs_of_freedom/disk_2/concrete jungle
-/mnt/cdrom/marley-songs_of_freedom/disk_2/craven choke puppy
-/mnt/cdrom/marley-songs_of_freedom/disk_2/get up stand up
-/mnt/cdrom/marley-songs_of_freedom/disk_2/guava jelly
-/mnt/cdrom/marley-songs_of_freedom/disk_2/high tide or low tide
-/mnt/cdrom/marley-songs_of_freedom/disk_2/i shot the sheriff
-/mnt/cdrom/marley-songs_of_freedom/disk_2/i'm hurting inside
-/mnt/cdrom/marley-songs_of_freedom/disk_2/iron lion zion
-/mnt/cdrom/marley-songs_of_freedom/disk_2/lick samba
-/mnt/cdrom/marley-songs_of_freedom/disk_2/lively up yourself
-/mnt/cdrom/marley-songs_of_freedom/disk_2/natty dread
-/mnt/cdrom/marley-songs_of_freedom/disk_2/no more trouble
-/mnt/cdrom/marley-songs_of_freedom/disk_2/rastaman chant
-/mnt/cdrom/marley-songs_of_freedom/disk_2/screw face
-/mnt/cdrom/marley-songs_of_freedom/disk_2/slave driver
-/mnt/cdrom/marley-songs_of_freedom/disk_2/trenchtown rock
-/mnt/cdrom/marley-songs_of_freedom/disk_4/africa unite
-/mnt/cdrom/marley-songs_of_freedom/disk_4/babylon system
-/mnt/cdrom/marley-songs_of_freedom/disk_4/bad card
-/mnt/cdrom/marley-songs_of_freedom/disk_4/coming in from the cold (12
-/mnt/cdrom/marley-songs_of_freedom/disk_4/could you be loved (12 mix
-/mnt/cdrom/marley-songs_of_freedom/disk_4/forever loving jah
-/mnt/cdrom/marley-songs_of_freedom/disk_4/give thanks and praise
-/mnt/cdrom/marley-songs_of_freedom/disk_4/one drop
-/mnt/cdrom/marley-songs_of_freedom/disk_4/one dub
-/mnt/cdrom/marley-songs_of_freedom/disk_4/rastaman live up
-/mnt/cdrom/marley-songs_of_freedom/disk_4/real situation
-/mnt/cdrom/marley-songs_of_freedom/disk_4/redemption song (live in pi
-/mnt/cdrom/marley-songs_of_freedom/disk_4/ride natty ride (12 mix)
-/mnt/cdrom/marley-songs_of_freedom/disk_4/so much trouble in the worl
-/mnt/cdrom/marley-songs_of_freedom/disk_4/survival
-/mnt/cdrom/marley-songs_of_freedom/disk_4/why should i (previously un
-/mnt/cdrom/marley-songs_of_freedom/disk_4/zimbabwe
-
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_01_pandemonium
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_02_sync_disjecta
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_03_object_unknown
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_04_it's_nice_not
-/mnt/cdrom/dj_spooky_rid-2dim_warefare/djspooky_05_dialectical_tra
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_06_post-human_soph
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_07_quilombo_ex
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_08_rekonstruction
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_09_scientifik
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_10_a_conversation
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_11_peace_in_zaire
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_13_degree_zero
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_14_roman_planeta
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_15_bass_digitalis
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_16_polyphony_of
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_17_riddim_warfare
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_18_the_nerd
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_20_theme_of_the
-/mnt/cdrom/dj_spooky_riddim_warefare/djspooky_21_twilight_fugue
-
-/mnt/cdrom/stuff_smith_mosaic/disk3/01_desert_sands
-/mnt/cdrom/stuff_smith_mosaic/disk3/02_soft_winds
-/mnt/cdrom/stuff_smith_mosaic/disk3/03_time_and_again
-/mnt/cdrom/stuff_smith_mosaic/disk3/04_it_don't_mean_a_thing
-/mnt/cdrom/stuff_smith_mosaic/disk3/05_in_a_mellotone
-/mnt/cdrom/stuff_smith_mosaic/disk3/06_i_know_that_you_know
-/mnt/cdrom/stuff_smith_mosaic/disk3/07_heat_wave
-/mnt/cdrom/stuff_smith_mosaic/disk3/08_things_ain't_what_they_used_to_be
-/mnt/cdrom/stuff_smith_mosaic/disk3/09_body_and_soul
-
-So I take a break, wander down to the park to stand, then lean into
-the concrete railing demarking the beginnings of space, oceanic
-space. I watch the waves break, and form, and ease back out to sea and
-wrap my arms around myself and hug tightly because it's early in the
-morning and windy, and the sun is late getting out of bed today, which
-is good because if there was brilliant light illuminating all the
-beauty around me I would be shocked, stunned, forced to retreat back
-into my cabana in a daze, blinded by hummingbirds and callilillies and
-un-named red, yellow, and blue flowers. Green envelopes me, waves
-sooth me. I can see the wind flip the top of the waves seaward, right
-before they break. The sea seems so calm from my perch above the fray
-that I wonder if maybe there is just some part of the deepest, most
-abstract ocean where there is a large creature who happily chews
-plankton and wags its tail in gentle, adulating waves that spread and
-move and gracefully glide thousands of miles, to crash upon a beach,
-one after the other, politely waiting for a turn to dance with the
-seashore.
-
-I know: it is what the Mexican schoolchildren call "la vibora de la
-mer," the serpent of the sea.
-
-
-
-
-
diff --git a/libstdc++-v3/testsuite/data/ostream_seeks-1.tst b/libstdc++-v3/testsuite/data/ostream_seeks-1.tst
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/libstdc++-v3/testsuite/data/ostream_seeks-1.tst
+++ /dev/null