Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2
3 constexpr char c1 = "hi"[1];
4 constexpr char c2 = "hi"[2];
5 constexpr char c3 = "hi"[3]; // { dg-error "array subscript" }