[clang] [Clang] Add FileCheck lines to atomic-auto-type codegen test (PR #206749)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 1 06:37:04 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:

You seem to have reduced the check-line coverage!  Please make them more detailed, not less.  The 'large' example' is a good one, thanks.

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


More information about the cfe-commits mailing list