2012-02-09 09:02:27 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify %s
|
2015-12-10 09:07:17 +08:00
|
|
|
// 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
|
2011-08-04 23:30:47 +08:00
|
|
|
|
|
|
|
int main() {
|
2015-12-10 09:07:17 +08:00
|
|
|
[]{};
|
|
|
|
#if __cplusplus <= 199711L
|
|
|
|
// expected-error@-2 {{expected expression}}
|
|
|
|
#else
|
|
|
|
// expected-no-diagnostics
|
|
|
|
#endif
|
|
|
|
|
2011-08-04 23:30:47 +08:00
|
|
|
}
|