llvm-project/clang/test/Parser/objcxx-lambda-expressions-n...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
349 B
Plaintext
Raw Normal View History

2012-02-09 09:02:27 +08:00
// 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
}