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
3a163b1a
Commit
3a163b1a
authored
24 years ago
by
Kriang Lerdsuwanakij
Committed by
Kriang Lerdsuwanakij
24 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.
From-SVN: r37728
parent
c3edd394
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.pt/ttp62.C
+5
-3
No files found.
gcc/testsuite/ChangeLog
View file @
3a163b1a
2000-11-24 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.
2000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
* gcc.dg/sequence-point-1.c: Add some new tests.
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.old-deja/g++.pt/ttp62.C
View file @
3a163b1a
// Origin: Ewgenij Gawrilow <gawrilow@math.TU-Berlin.DE>
#include <iostream>
extern
"C"
void
abort
();
template
<
template
<
class
X
>
class
B
,
class
A
>
struct
is_instance_of
{
...
...
@@ -21,7 +21,9 @@ bool is_C (const T&) {
};
int
main
()
{
std
::
cout
<<
"should be true: "
<<
is_C
(
C
<
int
>
())
<<
std
::
endl
;
std
::
cout
<<
"should be false: "
<<
is_C
(
D
<
int
>
())
<<
std
::
endl
;
if
(
!
is_C
(
C
<
int
>
()))
abort
();
if
(
is_C
(
D
<
int
>
()))
abort
();
return
0
;
}
This diff is collapsed.
Click to expand it.
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