]> granicus.if.org Git - clang/commitdiff
Add missing testcase update for r337790.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 24 Jul 2018 01:23:36 +0000 (01:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 24 Jul 2018 01:23:36 +0000 (01:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337792 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/constant-expression-cxx11.cpp

index e921634b1bf4dd019f9460bb8cf2d3a3c53aa6b2..a64207583dd5514b24a0e266752712978f16fe3c 100644 (file)
@@ -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}}