r337792 - Add missing testcase update for r337790.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 23 18:23:37 PDT 2018


Author: rsmith
Date: Mon Jul 23 18:23:36 2018
New Revision: 337792

URL: http://llvm.org/viewvc/llvm-project?rev=337792&view=rev
Log:
Add missing testcase update for r337790.

Modified:
    cfe/trunk/test/SemaCXX/constant-expression-cxx11.cpp

Modified: cfe/trunk/test/SemaCXX/constant-expression-cxx11.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/constant-expression-cxx11.cpp?rev=337792&r1=337791&r2=337792&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/constant-expression-cxx11.cpp (original)
+++ cfe/trunk/test/SemaCXX/constant-expression-cxx11.cpp Mon Jul 23 18:23:36 2018
@@ -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 at -1 {{constant expression}}
   // expected-note at -2 {{pointer to subobject of temporary}}
   // expected-note at -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 at -1 {{constant expression}}
     // expected-note at -2 {{pointer to subobject of temporary}}
     // expected-note at -3 {{temporary created here}}




More information about the cfe-commits mailing list