summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array13.C
blob: e2a6e865e37b35a85b703ed624df112e9a32e8da (plain)
1
2
3
4
5
6
// PR c++/68087
// { dg-do compile { target c++11 } }

constexpr char c[] = "hello";
constexpr const char *p = c;
constexpr char ch = *(p-1);  // { dg-error "array subscript" }