From ac06f6d06de408c00923708dd8a795b6ba9d23d7 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 19 May 2021 16:23:52 -0700 Subject: [PATCH] [test] Fix test --- .../test/CodeGenOpenCLCXX/addrspace-constructors.clcpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/test/CodeGenOpenCLCXX/addrspace-constructors.clcpp b/clang/test/CodeGenOpenCLCXX/addrspace-constructors.clcpp index 5d81bc57603e..a5e41950649d 100644 --- a/clang/test/CodeGenOpenCLCXX/addrspace-constructors.clcpp +++ b/clang/test/CodeGenOpenCLCXX/addrspace-constructors.clcpp @@ -2,8 +2,8 @@ // CHECK: %struct.X = type { i32 } -// CHECK: @ci = dso_local addrspace(2) constant i32 0 -// CHECK: @gi = dso_local addrspace(1) global i32 0 +// CHECK: @ci ={{.*}} addrspace(2) constant i32 0 +// CHECK: @gi ={{.*}} addrspace(1) global i32 0 __constant int ci = 0; __global int gi = 0; @@ -19,9 +19,9 @@ struct X { constexpr X(int x) __constant : x(x) {} }; -// CHECK: @cx1 = dso_local addrspace(2) constant %struct.X zeroinitializer -// CHECK: @cx2 = dso_local addrspace(2) constant %struct.X { i32 1 } -// CHECK: @gx = dso_local addrspace(1) global %struct.X zeroinitializer +// CHECK: @cx1 ={{.*}} addrspace(2) constant %struct.X zeroinitializer +// CHECK: @cx2 ={{.*}} addrspace(2) constant %struct.X { i32 1 } +// CHECK: @gx ={{.*}} addrspace(1) global %struct.X zeroinitializer __constant X cx1; __constant X cx2(1); __global X gx;