[clang] [Clang] Add FileCheck lines to atomic-auto-type codegen test (PR #206749)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 30 08:21:47 PDT 2026
================
@@ -1,9 +1,15 @@
-// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm -o - %s > /dev/null
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
// This is a regression test for handling of __auto_type inside _Atomic.
// Previously this could lead to an undeduced AutoType escaping into
// ASTContext::getTypeInfoImpl and causing an assertion failure.
+// CHECK-LABEL: define {{.*}} @f(
+// CHECK: %xa = alloca double
+// CHECK: %ax = alloca double
+// CHECK: store double {{.*}}, ptr %xa
+// CHECK: store double {{.*}}, ptr %ax
+
void f(double x) {
----------------
erichkeane wrote:
Can we get a test here where the atomic requires a lock? It isn't clear to me from this test that we're treating this as anything but a '_Atomic does nothing'.
https://github.com/llvm/llvm-project/pull/206749
More information about the cfe-commits
mailing list