diff options
Diffstat (limited to 'clang/test/AST/Interp/arrays.cpp')
| -rw-r--r-- | clang/test/AST/Interp/arrays.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/AST/Interp/arrays.cpp b/clang/test/AST/Interp/arrays.cpp index 612bd552aed4..98cd17276e0a 100644 --- a/clang/test/AST/Interp/arrays.cpp +++ b/clang/test/AST/Interp/arrays.cpp @@ -114,7 +114,7 @@ static_assert(*(&arr[0]) == 1, ""); static_assert(*(&arr[1]) == 2, ""); constexpr const int *OOB = (arr + 3) - 3; // both-error {{must be initialized by a constant expression}} \ - // both-note {{cannot refer to element 3 of array of 2}} + // both-note {{cannot refer to element 3 of array of 2 elements}} template<typename T> constexpr T getElementOf(T* array, int i) { |
