[clang] [C11] Implement WG14 N1285 (temporary lifetimes) (PR #133472)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 28 13:29:00 PDT 2025


================
@@ -0,0 +1,212 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// RUN: %clang_cc1 -std=c99 -Wno-dangling -emit-llvm -o - %s | FileCheck %s --check-prefix=C99
+// RUN: %clang_cc1 -std=c11 -Wno-dangling -emit-llvm -o - %s | FileCheck %s --check-prefix=C11
----------------
efriedma-quic wrote:

We probably want some tests with optimization enabled, to show the lifetime markers.

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


More information about the cfe-commits mailing list