blob: b2fe39dfbf70827fd77dee668977b519102b3caa [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify %s
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify -std=c++98 %s
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify -std=c++11 %s
int main() {
[]{};
#if __cplusplus <= 199711L
// expected-error@-2 {{expected expression}}
#else
// expected-no-diagnostics
#endif
}