[clang] ac06f6d - [test] Fix test
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed May 19 16:23:58 PDT 2021
Author: Fangrui Song
Date: 2021-05-19T16:23:52-07:00
New Revision: ac06f6d06de408c00923708dd8a795b6ba9d23d7
URL: https://github.com/llvm/llvm-project/commit/ac06f6d06de408c00923708dd8a795b6ba9d23d7
DIFF: https://github.com/llvm/llvm-project/commit/ac06f6d06de408c00923708dd8a795b6ba9d23d7.diff
LOG: [test] Fix test
Added:
Modified:
clang/test/CodeGenOpenCLCXX/addrspace-constructors.clcpp
Removed:
################################################################################
diff --git a/clang/test/CodeGenOpenCLCXX/addrspace-constructors.clcpp b/clang/test/CodeGenOpenCLCXX/addrspace-constructors.clcpp
index 5d81bc57603e7..a5e41950649df 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;
More information about the cfe-commits
mailing list