// RUN: %clang_cc1 -fsyntax-only -pedantic -verify=expected,cxx17 -std=c++17 %s
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify=expected,cxx20 -std=c++2a %s
// cxx17-warning@* 0+{{designated initializers are a C++20 extension}}
void
; // expected-warning{{flexible array members are a C99 feature}}
Point p1 = ; // expected-warning{{use of GNU old-style field designator extension}}
Point p2 = ;
Point p3 = ;
Point p4 = ;
int arr = ; // expected-warning {{array designators are a C99 extension}}
;
;
Rect r = ;
;
;
;
S ;
T t1 = ;
// It's important that we reject this; we would not destroy the existing
// 'NonTrivial' object before overwriting it (and even calling its destructor
// would not necessarily be correct).
T t2 = ;
// FIXME: It might be reasonable to accept this.
T t3 = ;