]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: fix escaping of square brackets
authorSam James <sam@gentoo.org>
Wed, 6 Aug 2025 22:25:48 +0000 (23:25 +0100)
committerSam James <sam@gentoo.org>
Wed, 6 Aug 2025 22:28:05 +0000 (23:28 +0100)
commite5ba0f6cc16f186afb1bc68e36959e97c7b3c037
tree9c4e965a65133b20df1fe7a5afb3eac9a8514623
parent84476b4c88465f09c3ec1a52fdf0df1a76364988
testsuite: fix escaping of square brackets

This fails for me as:
+ERROR: g++.dg/cpp26/constexpr-new3.C -std=c++26: unknown dg option: 2 for "
  dg-error 40 "accessing value of 'int [2]' object through a 'long int' glvalue in a constant expression" "
otherwise.

Escape '[' and ']'.

gcc/testsuite/ChangeLog:
* g++.dg/cpp26/constexpr-new3.C: Escape '[' and ']'.
gcc/testsuite/g++.dg/cpp26/constexpr-new3.C