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
7485f79f
Commit
7485f79f
authored
Oct 02, 2003
by
Jakub Jelinek
Committed by
Jakub Jelinek
Oct 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/opt/cond1.C: New test.
From-SVN: r72022
parent
08903e08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/opt/cond1.C
+24
-0
No files found.
gcc/testsuite/ChangeLog
View file @
7485f79f
2003-10-02 Jakub Jelinek <jakub@redhat.com>
* g++.dg/opt/cond1.C: New test.
2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
* gcc.dg/Wold-style-definition-2.c: New testcase.
...
...
gcc/testsuite/g++.dg/opt/cond1.C
0 → 100644
View file @
7485f79f
// { dg-do run }
// { dg-options "-O2" }
struct
D
{
int
x
;
};
struct
W
{
W
()
{}
D
&
operator
*
()
{
return
d
;
}
D
d
;
};
int
foo
(
int
y
)
{
W
m
;
(
*
m
).
x
=
(
y
>
1
?
y
:
0
);
return
(
*
m
).
x
;
}
int
main
()
{
return
(
foo
(
6
)
!=
6
);
}
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