OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-wstring2.C
1
// PR c++/48570
2
// { dg-do compile }
3
// { dg-options -std=c++0x }
4
5
constexpr wchar_t c1 = L"hi"[3]; // { dg-error "out of bound" }
6
constexpr char16_t c2 = u"hi"[3]; // { dg-error "out of bound" }
7
constexpr char32_t c3 = U"hi"[3]; // { dg-error "out of bound" }