[Lldb-commits] [mlir] [libc] [lld] [libcxxabi] [compiler-rt] [lldb] [llvm] [clang-tools-extra] [libunwind] [libcxx] [clang] [openmp] [flang] [C23] Implement N3018: The constexpr specifier for object d

2023-12-11 Thread Guillot Tony via lldb-commits
to268 wrote: I have found no major issues with the C23 `auto` keyword. There is a minor improvement that I've found in the test cases. Concerning N3006 (AKA: Underspecified object declarations), I haven't reviewed yet the compatibility with the `constexpr` keyword, since I haven't work much on

[Lldb-commits] [openmp] [lldb] [llvm] [libcxx] [libc] [clang-tools-extra] [compiler-rt] [lld] [flang] [libcxxabi] [clang] [mlir] [libunwind] [C23] Implement N3018: The constexpr specifier for object d

2023-12-11 Thread Guillot Tony via lldb-commits
@@ -0,0 +1,287 @@ +// RUN: %clang_cc1 -std=c2x -verify -triple x86_64 -pedantic -Wno-conversion -Wno-constant-conversion -Wno-div-by-zero %s + +// Check that constexpr only applies to variables. +constexpr void f0() {} // expected-error {{'constexpr' can only be used in variable