[clang] 2893bcd - [NFC] Fix the test failure in 08f957808e5f7e44b11d in armv8
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 8 19:55:07 PST 2023
Author: Chuanqi Xu
Date: 2023-01-09T11:54:17+08:00
New Revision: 2893bcd6cd88310da9ba4a37c142c6db463ba79e
URL: https://github.com/llvm/llvm-project/commit/2893bcd6cd88310da9ba4a37c142c6db463ba79e
DIFF: https://github.com/llvm/llvm-project/commit/2893bcd6cd88310da9ba4a37c142c6db463ba79e.diff
LOG: [NFC] Fix the test failure in 08f957808e5f7e44b11d in armv8
The test in 08f957808e5f7e44b11d may fail in armv8 since the signature
of the constructor may be different. This patch tries to fix it.
Added:
Modified:
clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm
Removed:
################################################################################
diff --git a/clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm b/clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm
index c89bce5039a5..6080786ecd39 100644
--- a/clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm
+++ b/clang/test/CodeGenCXX/pr59765-modules-global-ctor-dtor.cppm
@@ -24,8 +24,8 @@ export A a;
// CHECK: @_ZW1M1a = {{.*}}global %class.A zeroinitializer
// CHECK: define{{.*}}void @__cxx_global_var_init()
// CHECK-NEXT: entry:
-// CHECK-NEXT: call{{.*}}void @_ZNW1M1AC1Ev({{.*}}@_ZW1M1a
-// CHECK-NEXT: call{{.*}}i32 @__cxa_atexit(ptr @_ZNW1M1AD1Ev, ptr @_ZW1M1a
+// CHECK-NEXT: call{{.*}}@_ZNW1M1AC1Ev({{.*}}@_ZW1M1a
+// CHECK-NEXT: call{{.*}}@__cxa_atexit(ptr @_ZNW1M1AD1Ev, ptr @_ZW1M1a
//--- Use.cpp
import M;
@@ -54,5 +54,5 @@ void use() {
// CHECK: @a = {{.*}}global %class.A zeroinitializer
// CHECK: define{{.*}}void @__cxx_global_var_init()
// CHECK-NEXT: entry:
-// CHECK-NEXT: call{{.*}}void @_ZN1AC1Ev({{.*}}@a
-// CHECK-NEXT: call{{.*}}i32 @__cxa_atexit(ptr @_ZN1AD1Ev, ptr @a
+// CHECK-NEXT: call{{.*}}@_ZN1AC1Ev({{.*}}@a
+// CHECK-NEXT: call{{.*}}@__cxa_atexit(ptr @_ZN1AD1Ev, ptr @a
More information about the cfe-commits
mailing list