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
dd8216e1
Commit
dd8216e1
authored
Feb 07, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
From-SVN: r31836
parent
f4a4b669
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
60 additions
and
48 deletions
+60
-48
gcc/testsuite/g++.old-deja/g++.bob/nested1.C
+11
-10
gcc/testsuite/g++.old-deja/g++.brendan/enum6.C
+1
-1
gcc/testsuite/g++.old-deja/g++.brendan/nest11.C
+2
-0
gcc/testsuite/g++.old-deja/g++.jason/report.C
+3
-3
gcc/testsuite/g++.old-deja/g++.law/arm14.C
+1
-1
gcc/testsuite/g++.old-deja/g++.mike/p8785.C
+0
-25
gcc/testsuite/g++.old-deja/g++.mike/pmf2.C
+1
-1
gcc/testsuite/g++.old-deja/g++.other/access7.C
+33
-0
gcc/testsuite/g++.old-deja/g++.pt/dynarray.C
+1
-0
gcc/testsuite/g++.old-deja/g++.pt/explicit72.C
+7
-7
No files found.
gcc/testsuite/g++.old-deja/g++.bob/nested1.C
View file @
dd8216e1
// Build don't link:
class
A
{
class
B
{
typedef
long
T
;
int
i
;
}
;
struct
A
{
struct
B
{
typedef
long
T
;
int
i
;
};
class
C
{
class
B
{
typedef
float
T
;
int
i
;
}
;
};
struct
C
{
struct
B
{
typedef
float
T
;
int
i
;
};
};
C
::
B
::
T
a
;
gcc/testsuite/g++.old-deja/g++.brendan/enum6.C
View file @
dd8216e1
...
...
@@ -11,6 +11,6 @@ void h(X* p) {
X
::
E2
e2
;
int
x2
=
X
::
a2
;
X
::
E1
e1
;
X
::
E1
e1
;
// ERROR - within this context
int
x1
=
X
::
a1
;
// ERROR - within this context
}
gcc/testsuite/g++.old-deja/g++.brendan/nest11.C
View file @
dd8216e1
...
...
@@ -6,6 +6,8 @@ class A {
struct
B
{
int
x
;
};
struct
C
;
friend
struct
C
;
struct
C
{
int
bug
(
A
::
B
&
y
);
};
...
...
gcc/testsuite/g++.old-deja/g++.jason/report.C
View file @
dd8216e1
...
...
@@ -38,15 +38,15 @@ int foo2 (int (*a)(int) = &foo)
}
class
X
{
class
Y
{};
class
Y
{};
// ERROR - private
};
typedef
int
const
*
bart
();
typedef
bart
const
*
const
*
bar2
;
// ERROR - qualifiers
bar2
baz
(
X
::
Y
y
)
{
X
::
Y
f
;
{
// ERROR - in this context
X
::
Y
f
;
// ERROR - in this context
bar2
wa
[
5
];
wa
[
0
]
=
baz
(
f
);
undef2
(
1
);
// ERROR - implicit declaration
...
...
gcc/testsuite/g++.old-deja/g++.law/arm14.C
View file @
dd8216e1
...
...
@@ -18,7 +18,7 @@ void h(X* p) {
X
::
E2
e2
;
int
x2
=
X
::
a2
;
X
::
E1
e1
;
//
Should be rejected, but isn't.// ERROR - .* , XFAIL *-*-*
X
::
E1
e1
;
//
ERROR - within this context
int
x1
=
X
::
a1
;
// ERROR - Should be rejected, and is.
}
gcc/testsuite/g++.old-deja/g++.mike/p8785.C
deleted
100644 → 0
View file @
f4a4b669
// Build don't link:
// prms-id: 8785
class
Outer
{
private
:
int
x
;
// ERROR - private
public:
struct
Inner
{
int
y
;
void
f
(
Outer
*
p
,
int
i
)
{
p
->
x
=
i
;
// ERROR -
};
void
f
(
Outer
&
p
)
{
p
.
x
=
y
;
// ERROR -
};
};
};
int
main
()
{
Outer
::
Inner
A
;
Outer
Thing
;
A
.
f
(
Thing
);
A
.
f
(
&
Thing
,
2
);
}
gcc/testsuite/g++.old-deja/g++.mike/pmf2.C
View file @
dd8216e1
...
...
@@ -8,8 +8,8 @@ public:
};
class
B_table
:
private
A_table
{
typedef
void
(
B_table
::*
B_ti_fn
)
(
int
&
item
);
public
:
typedef
void
(
B_table
::*
B_ti_fn
)
(
int
&
item
);
B_table
()
{
j
=
0x4321
;}
virtual
void
call_fn_fn1
(
int
&
item
,
void
*
pfn1
);
void
func1
(
int
&
item
)
{
printf
(
"func1(%d)
\n
"
,
item
);}
...
...
gcc/testsuite/g++.old-deja/g++.other/access7.C
0 → 100644
View file @
dd8216e1
// Test that access control for types and statics works properly
// with nested types.
// Build don't link:
class
A
{
static
int
I1
;
// ERROR - private
struct
B1
{
};
// ERROR - private
public:
static
int
I2
;
struct
B2
{
};
};
class
D
:
public
A
{
struct
E
{
void
f
();
};
};
void
D
::
E
::
f
()
{
int
i
=
I1
;
// ERROR - within this context
B1
b1
;
// ERROR - within this context
i
=
I2
;
B2
b2
;
}
void
f
()
{
A
::
B1
b1
;
// ERROR - within this context
new
A
::
B1
;
// ERROR - within this context
(
A
::
B1
)
b1
;
// ERROR - within this context
}
gcc/testsuite/g++.old-deja/g++.pt/dynarray.C
View file @
dd8216e1
// Build don't link:
// Special g++ Options: -ansi
// Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
// Special g++ Options:
inline
const
unsigned
&
f
(
unsigned
const
&
a
)
{
return
a
;
...
...
gcc/testsuite/g++.old-deja/g++.pt/explicit72.C
View file @
dd8216e1
...
...
@@ -3,13 +3,13 @@
// Adapted by Alexandre Oliva <oliva@dcc.unicamp.br>
// plain char, signed char and unsigned char are distinct types
template
<
class
X
,
class
Y
>
class
bug
{};
template
<
class
X
>
class
bug
<
X
,
char
>
{
typedef
char
t
;
};
template
<
class
X
>
class
bug
<
X
,
unsigned
char
>
{
typedef
unsigned
char
t
;
};
template
<
class
X
>
class
bug
<
X
,
signed
char
>
{
typedef
signed
char
t
;
};
template
<
class
X
>
class
bug
<
char
,
X
>
{
typedef
char
t
;
};
template
<
class
X
>
class
bug
<
unsigned
char
,
X
>
{
typedef
unsigned
char
t
;
};
template
<
class
X
>
class
bug
<
signed
char
,
X
>
{
typedef
signed
char
t
;
};
template
<
class
X
,
class
Y
>
struct
bug
{};
template
<
class
X
>
struct
bug
<
X
,
char
>
{
typedef
char
t
;
};
template
<
class
X
>
struct
bug
<
X
,
unsigned
char
>
{
typedef
unsigned
char
t
;
};
template
<
class
X
>
struct
bug
<
X
,
signed
char
>
{
typedef
signed
char
t
;
};
template
<
class
X
>
struct
bug
<
char
,
X
>
{
typedef
char
t
;
};
template
<
class
X
>
struct
bug
<
unsigned
char
,
X
>
{
typedef
unsigned
char
t
;
};
template
<
class
X
>
struct
bug
<
signed
char
,
X
>
{
typedef
signed
char
t
;
};
void
foo
()
{
bug
<
int
,
char
>::
t
();
...
...
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