[clang] `__noop` not marked as constexpr #102064 (PR #105983)

via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 26 03:47:36 PDT 2024


================
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -std=c++20 -fms-extensions %s
+// expected-no-diagnostics
+constexpr int x = []{ __noop; return 0; }();
----------------
cor3ntin wrote:

Can you move this test to test/SemaCXX/builtins.cpp ? thanks!

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


More information about the cfe-commits mailing list