Fix test after -Wstring-plus-int warning was enabled
authorReid Kleckner <rnk@google.com>
Thu, 13 Dec 2018 21:24:08 +0000 (21:24 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 13 Dec 2018 21:24:08 +0000 (21:24 +0000)
commit7ac3f47f64c281ac98bef32288059121bc4d2c61
tree4bb6ab49b972d4a14e59122b87d4bbd5505d641b
parentbc568766b213b718b45ca113011419cc07bed8ec
Fix test after -Wstring-plus-int warning was enabled

Use array indexing instead of addition.

llvm-svn: 349085
clang/test/SemaCXX/constant-expression-cxx1y.cpp