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
9b864d18
Commit
9b864d18
authored
Mar 05, 2015
by
Paolo Carlini
Committed by
Paolo Carlini
Mar 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
Fix last commit. From-SVN: r221208
parent
512141f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp0x/initlist92.C
+9
-10
No files found.
gcc/testsuite/ChangeLog
View file @
9b864d18
2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
Fix last commit.
2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64665
* g++.dg/cpp0x/initlist92.C: New.
...
...
gcc/testsuite/g++.dg/cpp0x/initlist92.C
View file @
9b864d18
...
...
@@ -4,45 +4,44 @@
#include <string>
#include <cassert>
bool
Test1
(
const
bool
arg
)
bool
Test1
(
bool
)
{
return
true
;
}
bool
Test1
(
const
std
::
string
ar
g
)
bool
Test1
(
std
::
strin
g
)
{
return
false
;
}
bool
Test2
(
const
int
arg
)
bool
Test2
(
int
)
{
return
false
;
}
bool
Test2
(
const
std
::
initializer_list
<
int
>
arg
)
bool
Test2
(
std
::
initializer_list
<
int
>
)
{
return
true
;
}
struct
S
{
S
(
int
_a
)
:
a
(
_a
){}
int
getA
()
const
{
return
a
;
}
S
(
int
_a
)
:
a
(
_a
)
{}
private
:
int
a
;
};
bool
Test3
(
const
int
arg
)
bool
Test3
(
int
)
{
return
true
;
}
bool
Test3
(
const
S
arg
)
bool
Test3
(
S
)
{
return
false
;
}
bool
Test4
(
const
bool
arg
)
bool
Test4
(
bool
)
{
return
false
;
}
bool
Test4
(
const
std
::
initializer_list
<
std
::
string
>
arg
)
bool
Test4
(
std
::
initializer_list
<
std
::
string
>
)
{
return
true
;
}
...
...
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