Commit faadf84c by Paolo Carlini Committed by Paolo Carlini

constexpr-array13.C: Fix.

2015-11-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/cpp0x/constexpr-array13.C: Fix.

From-SVN: r230903
parent ed7dc894
2015-11-25 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/cpp0x/constexpr-array13.C: Fix.
2015-11-25 David Edelsohn <dje.gcc@gmail.com> 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
* gfortran.dg/nint_p7.f90: New testcase. * gfortran.dg/nint_p7.f90: New testcase.
......
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
constexpr char c[] = "hello"; constexpr char c[] = "hello";
constexpr const char *p = c; constexpr const char *p = c;
constexpr char ch = *(p-1); // { dg-error "negative array subscript" } constexpr char ch = *(p-1); // { dg-error "array subscript" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment