mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 17:16:07 +00:00

This is the 5th Lit test patch. Expanded expected diagnostics to vary by C++ dialect. Expanded RUN line to: default, C++98/03 and C++11. llvm-svn: 255196
14 lines
349 B
Plaintext
14 lines
349 B
Plaintext
// 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
|
|
|
|
}
|