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
c25520e8
Commit
c25520e8
authored
Jan 29, 1998
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
From-SVN: r17551
parent
31fa4410
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
0 deletions
+49
-0
gcc/testsuite/g++.old-deja/g++.pt/alignof.C
+21
-0
gcc/testsuite/g++.old-deja/g++.pt/explicit66.C
+11
-0
gcc/testsuite/g++.old-deja/g++.pt/sizeof.C
+17
-0
No files found.
gcc/testsuite/g++.old-deja/g++.pt/alignof.C
0 → 100644
View file @
c25520e8
extern
"C"
void
abort
();
struct
S
{
char
c
;
double
d
;
};
template
<
class
T
>
void
foo
(
T
)
{
if
(
__alignof__
(
T
)
!=
__alignof__
(
S
))
abort
();
}
int
main
()
{
foo
(
S
());
}
gcc/testsuite/g++.old-deja/g++.pt/explicit66.C
0 → 100644
View file @
c25520e8
void
f
(
int
)
{}
void
f
(
double
);
template
<
void
(
*
fn
)(
int
)
>
void
foo
()
{}
int
main
()
{
foo
<
f
>
();
}
gcc/testsuite/g++.old-deja/g++.pt/sizeof.C
0 → 100644
View file @
c25520e8
extern
"C"
void
abort
();
template
<
int
I
>
int
bar
()
{
return
I
;
}
template
<
class
T
>
int
foo
(
T
)
{
return
bar
<
sizeof
(
T
)
+
4
>
()
+
bar
<
sizeof
(
long
)
+
7
>
();
}
int
main
()
{
if
(
foo
(
2
)
!=
sizeof
(
int
)
+
4
+
sizeof
(
long
)
+
7
)
abort
();
}
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