Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-array13.C

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" }