Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d29de343
Commit
d29de343
authored
Aug 22, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix so failures are diagnosed
From-SVN: r35881
parent
f2a32740
Hide whitespace changes
Inline
Side-by-side
Showing
59 changed files
with
77 additions
and
72 deletions
+77
-72
gcc/testsuite/g++.old-deja/g++.brendan/code-gen1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/code-gen2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/code-gen3.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/code-gen6.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/copy1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
+4
-1
gcc/testsuite/g++.old-deja/g++.brendan/ctors1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/ctors2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/dtors1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/dtors2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/dtors3.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/misc7.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/nest21.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/new2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/new3.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/operators5.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/overload2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/overload7.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C
+3
-4
gcc/testsuite/g++.old-deja/g++.brendan/redecl2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/reference1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/sizeof5.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/arg5.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/arg7.C
+3
-4
gcc/testsuite/g++.old-deja/g++.law/arm4.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/arm5.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/arm7.C
+4
-5
gcc/testsuite/g++.old-deja/g++.law/array1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/bit-fields2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/code-gen1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/code-gen5.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/copy1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/ctors12.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/ctors16.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/ctors2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/ctors8.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/cvt12.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/cvt2.C
+4
-1
gcc/testsuite/g++.old-deja/g++.law/cvt7.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/dtors3.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/dtors5.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/enum9.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/global-init1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/init11.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/init14.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/init9.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/operators15.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/operators16.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/operators27.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/operators30.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/operators8.C
+6
-4
gcc/testsuite/g++.old-deja/g++.law/patches1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/refs1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/scope2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/temps2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/temps5.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/temps6.C
+1
-1
gcc/testsuite/g++.old-deja/g++.law/virtual4.C
+1
-1
No files found.
gcc/testsuite/g++.old-deja/g++.brendan/code-gen1.C
View file @
d29de343
...
...
@@ -25,7 +25,7 @@ int main ()
if
(
test2
(
global_base
)
==
0
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
return
0
;
}
...
...
gcc/testsuite/g++.old-deja/g++.brendan/code-gen2.C
View file @
d29de343
...
...
@@ -10,7 +10,7 @@ int main ()
char
*
tmp
=
&
buff
[
0
];
// also fails for char *tmp = buff;
if
((
__SIZE_TYPE__
)
tmp
!=
(
__SIZE_TYPE__
)
&
buff
[
0
])
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.brendan/code-gen3.C
View file @
d29de343
...
...
@@ -26,7 +26,7 @@ int test2 (struct base formal_base, int v1)
formal_base
.
f1
=
formal_base
.
f2
;
// prevent warnings
if
(
v1
!=
0x5e5e
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.brendan/code-gen6.C
View file @
d29de343
...
...
@@ -24,7 +24,7 @@ int main ()
tres_floats
tf
(
v1
,
v2
,
v3
);
if
((
tf
.
get_f1
()
!=
v1
)
||
(
tf
.
get_f2
()
!=
v2
)
||
(
tf
.
get_f3
()
!=
v3
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.brendan/copy1.C
View file @
d29de343
...
...
@@ -15,7 +15,7 @@ main ()
C
c2
(
c1
);
if
(
count
!=
1
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
View file @
d29de343
...
...
@@ -26,5 +26,5 @@ main()
A
b
(
a
);
printf
(
"FAIL
\n
"
);
return
0
;
return
1
;
}
gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
View file @
d29de343
...
...
@@ -37,5 +37,8 @@ main () {
if
(
b
.
doubleval
==
23
.
2
)
cout
<<
"PASS
\n
"
;
else
cout
<<
"FAIL
\n
"
;
{
cout
<<
"FAIL
\n
"
;
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.brendan/ctors1.C
View file @
d29de343
...
...
@@ -15,7 +15,7 @@ base global_base(0x55, 0xff);
int
main
()
{
if
((
global_base
.
f1
!=
0x55
)
||
(
global_base
.
f2
!=
0xff
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
...
...
gcc/testsuite/g++.old-deja/g++.brendan/ctors2.C
View file @
d29de343
...
...
@@ -16,7 +16,7 @@ base global_base(0x55, 0x7e);
int
main
()
{
if
((
global_base
.
f1
!=
0x55
)
||
(
global_base
.
f2
!=
0x7e
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
...
...
gcc/testsuite/g++.old-deja/g++.brendan/dtors1.C
View file @
d29de343
...
...
@@ -43,7 +43,7 @@ int main ()
{
test2
();
if
((
base_destructed
!=
0x781f
)
||
(
derived_destructed
!=
0xf178
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
...
...
gcc/testsuite/g++.old-deja/g++.brendan/dtors2.C
View file @
d29de343
...
...
@@ -55,7 +55,7 @@ int main ()
test
();
if
(
errors
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.brendan/dtors3.C
View file @
d29de343
...
...
@@ -44,7 +44,7 @@ int main ()
delete
dp
;
if
((
member_destructor_calls
!=
8
)
||
(
middle_destructor_calls
!=
2
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.brendan/misc7.C
View file @
d29de343
...
...
@@ -9,7 +9,7 @@ int main()
*
pi
=
4
;
if
(
i
!=
4
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.brendan/nest21.C
View file @
d29de343
...
...
@@ -90,7 +90,7 @@ int main()
if
(
strcmp
(
output
,
" 1-a1-11-12-a2-12-1"
)
==
0
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
return
0
;
}
gcc/testsuite/g++.old-deja/g++.brendan/new2.C
View file @
d29de343
...
...
@@ -41,7 +41,7 @@ int main ()
derived_ptr
=
new
derived
();
if
((
new_call_count
!=
2
)
||
(
errors
!=
0
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.brendan/new3.C
View file @
d29de343
...
...
@@ -32,5 +32,5 @@ int main()
if
(
pass
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.brendan/operators5.C
View file @
d29de343
...
...
@@ -44,7 +44,7 @@ int main ()
k
=
!
k
;
// fib it!
if
(
k
.
i
!=
610
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.brendan/overload2.C
View file @
d29de343
...
...
@@ -37,7 +37,7 @@ int main ()
derived_object
.
method
(
message
);
if
(
proper_method_called
!=
1
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.brendan/overload7.C
View file @
d29de343
...
...
@@ -37,5 +37,5 @@ int main()
if
(
x
.
first
==
10
&&
x
.
second
==
20
&&
y
==
12
.
34
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C
View file @
d29de343
...
...
@@ -47,7 +47,7 @@ void printargs(char** argv) {
int
PTcl
::
one
(
int
,
char
**
argv
)
{
cout
<<
"FAIL
\n
"
;
printargs
(
argv
);
return
0
;
return
1
;
}
int
PTcl
::
two
(
int
,
char
**
argv
)
{
...
...
@@ -59,11 +59,10 @@ int PTcl::two(int, char** argv) {
int
PTcl
::
three
(
int
,
char
**
argv
)
{
cout
<<
"FAIL
\n
"
;
printargs
(
argv
);
return
0
;
return
1
;
}
int
main
(
int
argc
,
char
**
argv
)
{
PTcl
obj
;
obj
.
dispatcher
(
1
,
argc
,
argv
);
return
0
;
return
obj
.
dispatcher
(
1
,
argc
,
argv
);
}
gcc/testsuite/g++.old-deja/g++.brendan/redecl2.C
View file @
d29de343
...
...
@@ -32,7 +32,7 @@ int main ()
sender_2
();
sender_3
();
if
(
ii_sum
!=
13
||
jj_sum
!=
25
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.brendan/reference1.C
View file @
d29de343
...
...
@@ -35,7 +35,7 @@ int main ()
if
(
call_count
==
1
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
return
0
;
}
...
...
gcc/testsuite/g++.old-deja/g++.brendan/sizeof5.C
View file @
d29de343
...
...
@@ -13,5 +13,5 @@ main ()
if
(
i
>
0
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/arg5.C
View file @
d29de343
...
...
@@ -10,7 +10,7 @@ extern "C" {
int
main
()
{
if
(
pow
(
2
.
0
,
3
.
0
)
!=
8
.
0
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/arg7.C
View file @
d29de343
...
...
@@ -9,8 +9,8 @@
// Given the following overloaded function definitions
void
ovf
(
unsigned
long
,
short
,
short
)
{
printf
(
"PASS
\n
"
)
;
}
void
ovf
(
int
,
short
,
unsigned
long
)
{
printf
(
"FAIL
\n
"
)
;
}
int
ovf
(
unsigned
long
,
short
,
short
)
{
printf
(
"PASS
\n
"
);
return
0
;
}
int
ovf
(
int
,
short
,
unsigned
long
)
{
printf
(
"FAIL
\n
"
);
return
1
;
}
// and the call
//
...
...
@@ -28,6 +28,5 @@ int main(int, char**)
unsigned
int
x
=
0
;
unsigned
int
y
=
0
;
ovf
(
pixmap
,
x
,
y
);
return
0
;
return
ovf
(
pixmap
,
x
,
y
);
}
gcc/testsuite/g++.old-deja/g++.law/arm4.C
View file @
d29de343
...
...
@@ -21,7 +21,7 @@ int main(void)
S
x
(
int
(
a
));
if
(
count
>
0
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
return
0
;
...
...
gcc/testsuite/g++.old-deja/g++.law/arm5.C
View file @
d29de343
...
...
@@ -19,6 +19,6 @@ int main( void) {
if
(
&
c
==
&
b
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
return
0
;
}
gcc/testsuite/g++.old-deja/g++.law/arm7.C
View file @
d29de343
...
...
@@ -26,16 +26,15 @@ Derived::operator Base&() {
return
*
b
;
}
void
f
(
Base
&
b
)
{
int
f
(
Base
&
b
)
{
if
(
b
.
i
==
99
)
printf
(
"PASS
\n
"
);
{
printf
(
"PASS
\n
"
);
return
0
;
}
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
int
main
()
{
Derived
d
(
99
);
f
(
d
);
return
0
;
return
f
(
d
);
}
gcc/testsuite/g++.old-deja/g++.law/array1.C
View file @
d29de343
...
...
@@ -25,7 +25,7 @@ foo* foo::array = new foo [5];
int
main
()
{
if
(
i
!=
5
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/bit-fields2.C
View file @
d29de343
...
...
@@ -28,7 +28,7 @@ main(int argc, char **argv)
struct
foo
bar
;
if
(
offsetof
(
struct
foo
,
c
)
>
sizeof
(
unsigned
int
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
return
0
;
...
...
gcc/testsuite/g++.old-deja/g++.law/code-gen1.C
View file @
d29de343
...
...
@@ -14,7 +14,7 @@ int main()
if
(
i
==
2
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/code-gen5.C
View file @
d29de343
...
...
@@ -268,7 +268,7 @@ int main()
int
i
,
j
;
if
(
makeforms
(
cen
,
a
,
b
)
!=
10
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
...
...
gcc/testsuite/g++.old-deja/g++.law/copy1.C
View file @
d29de343
...
...
@@ -61,6 +61,6 @@ int main()
if
(
pass
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/ctors12.C
View file @
d29de343
...
...
@@ -14,7 +14,7 @@ public:
complex
()
{
re
=
im
=
0
;
magic
=
MAGIC
;
}
complex
(
double
d
)
{
re
=
d
;
im
=
0
;
magic
=
MAGIC
;
}
complex
(
double
d
,
double
d2
)
{
re
=
d
;
im
=
d2
;
magic
=
MAGIC
;
}
~
complex
()
{
if
(
magic
!=
MAGIC
)
{
printf
(
"FAIL
\n
"
);
exit
(
0
);}}
~
complex
()
{
if
(
magic
!=
MAGIC
)
{
printf
(
"FAIL
\n
"
);
exit
(
1
);}}
friend
ostream
&
operator
<<
(
ostream
&
o
,
const
complex
&
c
)
{
return
o
<<
"("
<<
c
.
re
<<
","
<<
c
.
im
<<
")"
;
}
};
...
...
gcc/testsuite/g++.old-deja/g++.law/ctors16.C
View file @
d29de343
...
...
@@ -43,7 +43,7 @@ int main() {
D
d
;
E
e
;
if
(
strncmp
(
"ABCABDABE"
,
stuff
,
9
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/ctors2.C
View file @
d29de343
...
...
@@ -63,7 +63,7 @@ int main() {
||
strcmp
(
Sig
::
sigTable
[
3
].
Magic
,
"FLOA"
)
||
strcmp
(
Sig
::
sigTable
[
4
].
Magic
,
"DOUB"
)
||
strcmp
(
Sig
::
sigTable
[
5
].
Magic
,
"COMP"
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/ctors8.C
View file @
d29de343
...
...
@@ -20,5 +20,5 @@ int main()
&&
arr
[
1
].
index
==
-
1
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/cvt12.C
View file @
d29de343
...
...
@@ -25,5 +25,5 @@ int main()
if
(
x
==
5
&&
y
==
5
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/cvt2.C
View file @
d29de343
...
...
@@ -27,7 +27,10 @@ A(const char* s)
// s still ok here
ifstream
inf
(
s
);
if
(
strncmp
(
"aaa"
,
s
,
3
))
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
exit
(
1
);
}
else
printf
(
"PASS
\n
"
);
}
...
...
gcc/testsuite/g++.old-deja/g++.law/cvt7.C
View file @
d29de343
...
...
@@ -61,7 +61,7 @@ int main()
printf
(
"PASS
\n
"
);
break
;
default
:
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
B
b
(
a
);
...
...
gcc/testsuite/g++.old-deja/g++.law/dtors3.C
View file @
d29de343
...
...
@@ -23,7 +23,7 @@ public:
if
(
killed
)
{
printf
(
"FAIL
\n
"
);
exit
(
0
);
exit
(
1
);
}
return
*
this
;
}
...
...
gcc/testsuite/g++.old-deja/g++.law/dtors5.C
View file @
d29de343
...
...
@@ -29,5 +29,5 @@ int main() {
if
(
things
==
0
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/enum9.C
View file @
d29de343
...
...
@@ -7,7 +7,7 @@
main
()
{
if
(
sizeof
(
E
)
!=
4
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
return
0
;
...
...
gcc/testsuite/g++.old-deja/g++.law/global-init1.C
View file @
d29de343
...
...
@@ -14,7 +14,7 @@ int main ()
{
S
*
cls
=
the_s
();
if
(
cls
->
a
!=
6
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/init11.C
View file @
d29de343
...
...
@@ -20,5 +20,5 @@ int main()
if
(
Ack
.
a
==
5
&&
Ack
.
b
==
7
&&
Ack
.
c
==
3
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/init14.C
View file @
d29de343
...
...
@@ -20,7 +20,7 @@ int main()
if
(
Ack
.
a
!=
5
||
Ack
.
b
!=
7
||
Ack
.
c
!=
3
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/init9.C
View file @
d29de343
...
...
@@ -29,7 +29,7 @@ int main() {
&&
ob
[
3
][
0
].
get_a
()
==
7
&&
ob
[
3
][
1
].
get_a
()
==
8
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
return
0
;
}
gcc/testsuite/g++.old-deja/g++.law/operators15.C
View file @
d29de343
...
...
@@ -20,7 +20,7 @@ int main(void)
::
delete
ps1
;
// Wrong T::operator delete() is called here
if
(
delete_counter
!=
-
1
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
return
0
;
...
...
gcc/testsuite/g++.old-deja/g++.law/operators16.C
View file @
d29de343
...
...
@@ -25,5 +25,5 @@ int main(void)
if
(
pass
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/operators27.C
View file @
d29de343
...
...
@@ -26,7 +26,7 @@ int main(void)
{
K
*
pK
=
new
(
std
::
nothrow
)
K
(
10
);
if
(
FLAG
!=
1
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
return
0
;
...
...
gcc/testsuite/g++.old-deja/g++.law/operators30.C
View file @
d29de343
...
...
@@ -21,5 +21,5 @@ int main ()
if
(
a
==
0
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/operators8.C
View file @
d29de343
...
...
@@ -3,7 +3,7 @@
class
shape
{
public
:
virtual
void
vDisplay
(
void
)
const
=
0
;
virtual
int
vDisplay
(
void
)
const
=
0
;
protected
:
int
X
;
int
Y
;
...
...
@@ -16,8 +16,9 @@ class square :public shape {
Y
=
y
;
width
=
width_
;
}
void
vDisplay
(
void
)
const
{
int
vDisplay
(
void
)
const
{
printf
(
"PASS
\n
"
);
return
0
;
}
protected
:
int
width
;
...
...
@@ -32,8 +33,9 @@ class triangle :public shape {
width
=
width_
;
height
=
height_
;
}
void
vDisplay
(
void
)
const
{
int
vDisplay
(
void
)
const
{
printf
(
"FAIL
\n
"
);
return
1
;
}
protected
:
int
width
;
...
...
@@ -44,6 +46,6 @@ int main() {
shape
*
s1
=
new
square
(
4
,
4
,
5
);
shape
*
s2
=
new
triangle
(
6
,
6
,
2
,
3
);
*
s1
=
*
s2
;
s1
->
vDisplay
();
return
s1
->
vDisplay
();
}
gcc/testsuite/g++.old-deja/g++.law/patches1.C
View file @
d29de343
...
...
@@ -18,7 +18,7 @@ int main()
if
(
type
(
0
.
0
)
!=
2
)
++
i
;
if
(
i
>
0
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/refs1.C
View file @
d29de343
...
...
@@ -38,5 +38,5 @@ int main() {
if
(
i
==
3
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/scope2.C
View file @
d29de343
...
...
@@ -40,5 +40,5 @@ int main ()
if
(
overloaded_delete
==
1
)
printf
(
"PASS
\n
"
);
else
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
}
gcc/testsuite/g++.old-deja/g++.law/temps2.C
View file @
d29de343
...
...
@@ -48,7 +48,7 @@ int main()
// method() returns a reference to the same object.
f1
().
method
().
method
();
if
(
fail
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/temps5.C
View file @
d29de343
...
...
@@ -35,7 +35,7 @@ int
main
(
void
)
{
if
(
f
(
2
).
val
!=
5
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/temps6.C
View file @
d29de343
...
...
@@ -18,7 +18,7 @@ int main()
{
test
(
&
xxx
,
&
str
::
i
)
=
5
;
if
(
xxx
.
i
==
0
)
printf
(
"FAIL
\n
"
);
{
printf
(
"FAIL
\n
"
);
return
1
;
}
else
printf
(
"PASS
\n
"
);
}
gcc/testsuite/g++.old-deja/g++.law/virtual4.C
View file @
d29de343
...
...
@@ -13,7 +13,7 @@ class A
class
B
:
public
A
{
public
:
void
SetProp
()
{
if
(
!
aset
)
{
printf
(
"FAIL
\n
"
);
exit
(
0
);}
aset
--
;}
void
SetProp
()
{
if
(
!
aset
)
{
printf
(
"FAIL
\n
"
);
exit
(
1
);}
aset
--
;}
};
int
main
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment