summaryrefslogtreecommitdiff
path: root/clang/test/Parser/objcxx-lambda-expressions-neg.mm
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/objcxx-lambda-expressions-neg.mm')
-rw-r--r--clang/test/Parser/objcxx-lambda-expressions-neg.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/objcxx-lambda-expressions-neg.mm b/clang/test/Parser/objcxx-lambda-expressions-neg.mm
new file mode 100644
index 0000000..7cdb1a2
--- /dev/null
+++ b/clang/test/Parser/objcxx-lambda-expressions-neg.mm
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify %s
+
+int main() {
+ []{}; // expected-error {{expected expression}}
+}