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
846cf122
Commit
846cf122
authored
May 06, 2000
by
Nathan Sidwell
Committed by
Nathan Sidwell
May 06, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.old-deja/g++.abi/ptrflags.C: Correct and extend.
From-SVN: r33727
parent
1b846ccc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C
+18
-14
No files found.
gcc/testsuite/ChangeLog
View file @
846cf122
2000-05-06 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.abi/ptrflags.C: Correct and extend.
2000-05-05 David Billinghurst <David Billinghurst@riotinto.com.au>
2000-05-05 David Billinghurst <David Billinghurst@riotinto.com.au>
* g77.f-torture/execute/20000503-1.f: New test.
* g77.f-torture/execute/20000503-1.f: New test.
...
...
gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C
View file @
846cf122
...
@@ -14,8 +14,8 @@ using namespace abi;
...
@@ -14,8 +14,8 @@ using namespace abi;
int
expect
(
int
flags
,
type_info
const
&
info
)
int
expect
(
int
flags
,
type_info
const
&
info
)
{
{
__pointer_
class_
type_info
const
*
ptr
=
__pointer_type_info
const
*
ptr
=
dynamic_cast
<
__pointer_
class_
type_info
const
*>
(
&
info
);
dynamic_cast
<
__pointer_type_info
const
*>
(
&
info
);
if
(
!
ptr
)
if
(
!
ptr
)
return
0
;
return
0
;
if
(
ptr
->
quals
!=
flags
)
if
(
ptr
->
quals
!=
flags
)
...
@@ -31,25 +31,29 @@ int main ()
...
@@ -31,25 +31,29 @@ int main ()
return
2
;
return
2
;
if
(
!
expect
(
2
,
typeid
(
A
volatile
*
)))
if
(
!
expect
(
2
,
typeid
(
A
volatile
*
)))
return
3
;
return
3
;
if
(
!
expect
(
4
,
typeid
(
A
__restrict__
*
)))
if
(
!
expect
(
4
,
typeid
(
A
*
__restrict__
*
)))
return
4
;
return
4
;
if
(
!
expect
(
0
,
typeid
(
void
A
::*
))
if
(
!
expect
(
0
,
typeid
(
int
A
::*
)
))
return
5
;
return
5
;
if
(
!
expect
(
0
,
typeid
(
void
A
::**
))
if
(
!
expect
(
0
,
typeid
(
int
A
::**
)
))
return
6
;
return
6
;
if
(
!
expect
(
8
|
0
,
typeid
(
B
*
)))
if
(
!
expect
(
8
|
0
,
typeid
(
B
*
)))
return
1
;
return
1
1
;
if
(
!
expect
(
8
|
1
,
typeid
(
B
const
*
)))
if
(
!
expect
(
8
|
1
,
typeid
(
B
const
*
)))
return
2
;
return
1
2
;
if
(
!
expect
(
8
|
2
,
typeid
(
B
volatile
*
)))
if
(
!
expect
(
8
|
2
,
typeid
(
B
volatile
*
)))
return
3
;
return
13
;
if
(
!
expect
(
8
|
4
,
typeid
(
B
__restrict__
*
)))
if
(
!
expect
(
8
|
4
,
typeid
(
B
*
__restrict__
*
)))
return
4
;
return
14
;
if
(
!
expect
(
8
|
0
,
typeid
(
void
B
::*
))
if
(
!
expect
(
16
|
0
,
typeid
(
int
B
::*
)))
return
5
;
return
15
;
if
(
!
expect
(
8
|
0
,
typeid
(
void
B
::**
))
if
(
!
expect
(
8
|
0
,
typeid
(
int
B
::**
)))
return
6
;
return
16
;
if
(
!
expect
(
8
|
0
,
typeid
(
B
A
::*
)))
return
17
;
if
(
!
expect
(
24
,
typeid
(
B
B
::*
)))
return
18
;
return
0
;
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