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
ae53cf85
Commit
ae53cf85
authored
Nov 18, 2015
by
David Edelsohn
Committed by
David Edelsohn
Nov 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/cpp1y/pr58708.C: Define wfoo based on sizeof wchar_t.
From-SVN: r230516
parent
cceac13f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp1y/pr58708.C
+5
-1
No files found.
gcc/testsuite/ChangeLog
View file @
ae53cf85
2015-11-17 David Edelsohn <dje.gcc@gmail.com>
* g++.dg/cpp1y/pr58708.C: Define wfoo based on sizeof wchar_t.
2015-11-17 David Malcolm <dmalcolm@redhat.com>
2015-11-17 David Malcolm <dmalcolm@redhat.com>
* gcc.dg/plugin/diagnostic-test-expressions-1.c (vector): New
* gcc.dg/plugin/diagnostic-test-expressions-1.c (vector): New
...
...
gcc/testsuite/g++.dg/cpp1y/pr58708.C
View file @
ae53cf85
...
@@ -43,7 +43,11 @@ main()
...
@@ -43,7 +43,11 @@ main()
if
(
foo
.
chars
[
1
]
!=
98
)
__builtin_abort
();
if
(
foo
.
chars
[
1
]
!=
98
)
__builtin_abort
();
if
(
foo
.
chars
[
2
]
!=
99
)
__builtin_abort
();
if
(
foo
.
chars
[
2
]
!=
99
)
__builtin_abort
();
auto
wfoo
=
L"
\x0102
0304
\x0506
0708"
_foo
;
#if __SIZEOF_WCHAR_T__ == 2
auto
wfoo
=
L"
\x0102\x0304
"
_foo
;
#else
auto
wfoo
=
L"
\x0102
0304
\x0506
0708"
_foo
;
#endif
if
(
is_same
<
decltype
(
wfoo
)
::
char_type
,
wchar_t
>::
value
!=
true
)
__builtin_abort
();
if
(
is_same
<
decltype
(
wfoo
)
::
char_type
,
wchar_t
>::
value
!=
true
)
__builtin_abort
();
if
(
sizeof
(
wfoo
.
chars
)
/
sizeof
(
wchar_t
)
!=
2
)
__builtin_abort
();
if
(
sizeof
(
wfoo
.
chars
)
/
sizeof
(
wchar_t
)
!=
2
)
__builtin_abort
();
if
(
wfoo
.
chars
[
0
]
!=
16909060
)
__builtin_abort
();
if
(
wfoo
.
chars
[
0
]
!=
16909060
)
__builtin_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