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
ed66ba99
Commit
ed66ba99
authored
Nov 16, 2016
by
Marek Polacek
Committed by
Marek Polacek
Nov 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/cpp1z/init-statement6.C: Rename a function.
From-SVN: r242467
parent
bb00603d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp1z/init-statement6.C
+2
-2
No files found.
gcc/testsuite/ChangeLog
View file @
ed66ba99
2016-11-15 Marek Polacek <polacek@redhat.com>
* g++.dg/cpp1z/init-statement6.C: Rename a function.
2016-11-15 Thomas Koenig <tkoenig@gcc.gnu.org>
2016-11-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libgfortran/51119
PR libgfortran/51119
...
...
gcc/testsuite/g++.dg/cpp1z/init-statement6.C
View file @
ed66ba99
...
@@ -7,14 +7,14 @@
...
@@ -7,14 +7,14 @@
std
::
map
<
int
,
std
::
string
>
m
;
std
::
map
<
int
,
std
::
string
>
m
;
extern
int
xread
(
int
*
);
extern
int
xread
(
int
*
);
extern
void
publish
(
int
),
raise
(
int
);
extern
void
publish
(
int
),
x
raise
(
int
);
void
void
foo
()
foo
()
{
{
if
(
auto
it
=
m
.
find
(
10
);
it
!=
m
.
end
())
{
std
::
string
s
=
it
->
second
;
}
if
(
auto
it
=
m
.
find
(
10
);
it
!=
m
.
end
())
{
std
::
string
s
=
it
->
second
;
}
if
(
char
buf
[
10
];
std
::
fgets
(
buf
,
10
,
stdin
))
{
m
[
0
]
+=
buf
;
}
if
(
char
buf
[
10
];
std
::
fgets
(
buf
,
10
,
stdin
))
{
m
[
0
]
+=
buf
;
}
if
(
int
s
;
int
count
=
xread
(
&
s
))
{
publish
(
count
);
raise
(
s
);
}
if
(
int
s
;
int
count
=
xread
(
&
s
))
{
publish
(
count
);
x
raise
(
s
);
}
const
char
*
s
;
const
char
*
s
;
if
(
auto
keywords
=
{
"if"
,
"for"
,
"while"
};
if
(
auto
keywords
=
{
"if"
,
"for"
,
"while"
};
...
...
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