From: Richard Smith Date: Tue, 24 Jul 2018 01:23:36 +0000 (+0000) Subject: Add missing testcase update for r337790. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e6101b4b7ce38bf4ef690db6aaa7499ad3bc825;p=platform%2Fupstream%2Fllvm.git Add missing testcase update for r337790. llvm-svn: 337792 --- diff --git a/clang/test/SemaCXX/constant-expression-cxx11.cpp b/clang/test/SemaCXX/constant-expression-cxx11.cpp index e921634..a642075 100644 --- a/clang/test/SemaCXX/constant-expression-cxx11.cpp +++ b/clang/test/SemaCXX/constant-expression-cxx11.cpp @@ -1555,13 +1555,13 @@ namespace CompoundLiteral { // Other kinds are not. struct X { int a[2]; }; - constexpr int *n = (X){1, 2}.a; // expected-warning {{C99}} expected-warning {{temporary array}} + constexpr int *n = (X){1, 2}.a; // expected-warning {{C99}} expected-warning {{temporary}} // expected-error@-1 {{constant expression}} // expected-note@-2 {{pointer to subobject of temporary}} // expected-note@-3 {{temporary created here}} void f() { - static constexpr int *p = (int*)(int[1]){3}; // expected-warning {{C99}} + static constexpr int *p = (int*)(int[1]){3}; // expected-warning {{C99}} expected-warning {{temporary}} // expected-error@-1 {{constant expression}} // expected-note@-2 {{pointer to subobject of temporary}} // expected-note@-3 {{temporary created here}}