// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wc++14-compat-pedantic -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -Wc++14-compat-pedantic -verify %s
// expected-no-diagnostics
// FIXME: C++11 features removed or changed in C++14?
static_assert; // expected-warning {{incompatible with C++ standards before C++17}}
int // expected-warning {{incompatible with C++ standards before C++17}}
// expected-warning {{incompatible with C++ standards before C++17}}
; // expected-warning {{incompatible with C++ standards before C++17}}
;
X x; // expected-warning {{class template argument deduction is incompatible with C++ standards before C++17; for compatibility, use explicit type name 'X<>'}}
;
Y<X> yx; // ok, not class template argument deduction
void
void
;
void // expected-note {{in instantiation of}}