// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s -Wpre-c++17-compat
// Check that we don't allow illegal uses of inline
// (checking C++-only constructs here)
; // expected-error{{'inline' can only appear on functions}}
void
// Check that we warn appropriately.
inline int a; // expected-warning{{inline variables are a C++17 extension}}
inline int a; // expected-warning{{inline variables are incompatible with C++ standards before C++17}}