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
22efd687
Commit
22efd687
authored
Aug 25, 2000
by
Jakub Jelinek
Committed by
Jakub Jelinek
Aug 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* testsuite/g++.old-deja/g++.other/crash22.C: New test.
From-SVN: r35983
parent
1f9124e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.other/crash22.C
+56
-0
No files found.
gcc/testsuite/ChangeLog
View file @
22efd687
2000-08-25 Jakub Jelinek <jakub@redhat.com>
* testsuite/g++.old-deja/g++.other/crash22.C: New test.
2000-08-24 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/noncompile/930622-2.c: Adjust error message.
...
...
gcc/testsuite/g++.old-deja/g++.other/crash22.C
0 → 100644
View file @
22efd687
// Build don't run:
// Special g++ Options: -O2
class
foo
{
};
typedef
void
*
voidp
;
class
vect
:
public
foo
{
public
:
voidp
&
a
();
int
b
();
};
class
bar
{
public
:
bar
*
c
(
bool
(
*
f
)(
bar
*
node
),
voidp
g
)
{
int
i
=
0
;
bool
j
;
while
(
i
<
d
.
b
()){
j
=
(
f
==
__null
)
||
f
((
bar
*
)
d
.
a
());
if
(
j
)
((
bar
*
)
d
.
a
())
->
c
(
f
,
g
);
i
++
;
}
return
this
;
}
public
:
vect
d
;
bar
*
e
(
foo
*
k
);
};
bar
*
bar
::
e
(
foo
*
k
)
{
return
c
(
__null
,
k
);
}
voidp
&
vect
::
a
()
{
static
voidp
x
;
return
x
;
}
int
vect
::
b
()
{
static
int
x
;
return
x
;
}
int
main
()
{
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