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
2814ec94
Commit
2814ec94
authored
Feb 05, 1999
by
Brendan Kehoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bogus tests
From-SVN: r25048
parent
9a6e70c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
72 deletions
+0
-72
gcc/testsuite/g++.old-deja/g++.law/operators1.C
+0
-28
gcc/testsuite/g++.old-deja/g++.law/operators7.C
+0
-44
No files found.
gcc/testsuite/g++.old-deja/g++.law/operators1.C
deleted
100644 → 0
View file @
9a6e70c9
// GROUPS passed operators
// opr-conv file
// excess errors test - XFAIL *-*-*
// Message-Id: <199301040217.AA04377@cypress.ucsc.edu>
// From: "Dean R. E. Long" <dlong@cse.ucsc.edu>
// Subject: conversion operator bug?
// Date: Sun, 3 Jan 1993 18:17:20 -0800
#include <stdio.h>
class
B
{};
class
A
{
B
*
p
;
public
:
A
()
{
p
=
0
;
}
operator
B
*
()
{
return
p
;
}
operator
B
&
()
{
return
*
p
;
}
};
int
main
()
{
A
a
;
B
&
b
=
(
B
&
)
a
;
B
*
bp
=
(
B
*
)
a
;
B
&
br
=
a
.
operator
B
&
();
// What's the right test?
exit
(
1
);
}
gcc/testsuite/g++.old-deja/g++.law/operators7.C
deleted
100644 → 0
View file @
9a6e70c9
// GROUPS passed operators
// opr-as file
// From: amichail@lambert.waterloo.edu (Amir Michail)
// Date: Mon, 15 Jun 1992 19:41:37 GMT
// Subject: inheretance bug
// Message-ID: <AMICHAIL.92Jun15144137@lambert.waterloo.edu>
#include <stdio.h>
class
window
{
public
:
int
k
;
virtual
void
inc
()
{}
};
class
window_border
:
public
virtual
window
{
public
:
void
inc
()
{
k
++
;
}
};
class
container
{
public
:
window_border
c
;
#if 0
container& operator = (const container& o) {
this->c = o.c;
return *this;
}
#endif
};
int
main
()
{
container
test
,
*
test2
;
void
*
vp
;
test2
=
new
container
;
test
.
c
.
k
=
34
;
vp
=
(
window
*
)
&
test2
->
c
;
*
test2
=
test
;
test
.
c
.
k
=
60
;
if
(
test2
->
c
.
k
==
35
&&
test
.
c
.
k
==
60
)
exit
(
0
);
else
exit
(
1
);
}
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