☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array13.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-array13.C
code
plain
raw
1
// PR c++/68087
2
// { dg-do compile { target c++11 } }
3
4
constexpr char c[] = "hello";
5
constexpr const char *p = c;
6
constexpr char ch = *(p-1); // { dg-error "array subscript" }