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
5e9d501c
Commit
5e9d501c
authored
Jun 21, 2017
by
Jakub Jelinek
Committed by
Jakub Jelinek
Jun 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/cpp0x/constexpr-cast.C: Adjust dg-error for ILP32.
From-SVN: r249455
parent
6bea305b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C
+1
-1
No files found.
gcc/testsuite/ChangeLog
View file @
5e9d501c
2017-06-21 Jakub Jelinek <jakub@redhat.com>
* g++.dg/cpp0x/constexpr-cast.C: Adjust dg-error for ILP32.
2017-06-21 Tom de Vries <tom@codesourcery.com>
* lib/profopt.exp (profopt-get-options): Support dg-add-options.
...
...
gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C
View file @
5e9d501c
...
...
@@ -7,7 +7,7 @@ int i;
// The following is accepted due to bug 49171.
constexpr
void
*
q
=
reinterpret_cast
<
void
*>
(
&
i
);
// { dg-error "" "bug c++/49171" { xfail *-*-* } }
constexpr
void
*
r0
=
reinterpret_cast
<
void
*>
(
1
);
// { dg-error "not a constant expression" }
constexpr
void
*
r0
=
reinterpret_cast
<
void
*>
(
1
);
// { dg-error "not a constant expression
|reinterpret_cast from integer to pointer
" }
constexpr
void
*
r1
=
reinterpret_cast
<
void
*>
(
sizeof
'x'
);
// { dg-error ".reinterpret_cast<void\\*>\\(1\[ul\]\*\\). is not a constant expression" }
template
<
class
T
>
...
...
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