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
df7aa629
Commit
df7aa629
authored
Apr 22, 2003
by
Zack Weinberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strip carriage returns
From-SVN: r65969
parent
4da2eb6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
50 deletions
+50
-50
gcc/fixinc/tests/base/testing.h
+3
-3
gcc/testsuite/g++.dg/template/member.C
+28
-28
gcc/testsuite/gcc.c-torture/execute/20011126-1.c
+19
-19
No files found.
gcc/fixinc/tests/base/testing.h
View file @
df7aa629
...
...
@@ -113,9 +113,9 @@ extern size_t
#if defined( UNDEFINE_NULL_CHECK )
#ifndef NULL
#define NULL 0UL
#endif
#ifndef NULL
#define NULL 0UL
#endif
#ifndef NULL
#define NULL ((void*)0)
#endif
...
...
gcc/testsuite/g++.dg/template/member.C
View file @
df7aa629
// { dg-do compile }
class
BIXSet
{
int
z
[
4
];
public
:
void
f
(
BIXSet
&
other
){
z
[
0
]
=
other
.
z
[
0
];
}
};
class
TestCase2
{
public
:
BIXSet
a
,
b
;
public
:
void
run
(
void
){
BIXSet
x
,
y
;
process
(
0
,
x
,
y
);
}
protected
:
template
<
class
BS
>
void
process
(
const
int
d
,
BS
&
en
,
BS
&
lb
){
a
.
f
(
en
);
b
.
f
(
lb
);
}
};
// { dg-do compile }
class
BIXSet
{
int
z
[
4
];
public
:
void
f
(
BIXSet
&
other
){
z
[
0
]
=
other
.
z
[
0
];
}
};
class
TestCase2
{
public
:
BIXSet
a
,
b
;
public
:
void
run
(
void
){
BIXSet
x
,
y
;
process
(
0
,
x
,
y
);
}
protected
:
template
<
class
BS
>
void
process
(
const
int
d
,
BS
&
en
,
BS
&
lb
){
a
.
f
(
en
);
b
.
f
(
lb
);
}
};
gcc/testsuite/gcc.c-torture/execute/20011126-1.c
View file @
df7aa629
/* Produced a overflow in ifcvt.c, causing S to contain 0xffffffff7fffffff. */
int
a
=
1
;
int
main
()
{
long
long
s
;
s
=
a
;
if
(
s
<
0
)
s
=
-
2147483648LL
;
else
s
=
2147483647LL
;
if
(
s
<
0
)
abort
();
return
0
;
}
/* Produced a overflow in ifcvt.c, causing S to contain 0xffffffff7fffffff. */
int
a
=
1
;
int
main
()
{
long
long
s
;
s
=
a
;
if
(
s
<
0
)
s
=
-
2147483648LL
;
else
s
=
2147483647LL
;
if
(
s
<
0
)
abort
();
return
0
;
}
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