1// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify %s
2// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify -std=c++98 %s
3// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify -std=c++11 %s
4
5int main() {
6  []{};
7#if __cplusplus <= 199711L
8  // expected-error@-2 {{expected expression}}
9#else
10  // expected-no-diagnostics
11#endif
12
13}
14