Add missing testcase update for r337790.

llvm-svn: 337792
This commit is contained in:
Richard Smith 2018-07-24 01:23:36 +00:00
parent f37b50afa0
commit 3e6101b4b7
1 changed files with 2 additions and 2 deletions

View 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}}