[clang] [clang] Fix null dereference on return in lambda attribute statement expr (PR #66643)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 18 10:41:29 PDT 2023


================
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+int main() {
+    auto a = []()__attribute__((b(({ return 0; })))){}; // expected-warning {{unknown attribute 'b' ignored}}
+    return 0;
+}
----------------
cor3ntin wrote:

This can move to `clang/test/SemaCXX/lambda-expressions.cpp`
(the name of the function can have the number of the GH issue)

We try to limit the number of test files

https://github.com/llvm/llvm-project/pull/66643


More information about the cfe-commits mailing list