Skip to content

Commit 7d64493

Browse files
author
Jinsong Ji
committed
[DebugInfo][test] Check specific func name to ignore codegen differences
We use `CHECK-LABEL: define` to divide input stream into functions, this works well on most platforms. But there are cases that some platforms (eg: AIX) may have different codegen , especially for global constructor and descructors. On AIX, the codegen will have two more functions: __dtor_b, __finalize_b, which will fail the test. The fix is to use specific function name so that we can safely ignore those unrelated codegen differences. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D102654
1 parent 82f248d commit 7d64493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGenCXX/debug-info-line.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ bar b[1] = { //
146146
(fn(), //
147147
bar())};
148148

149-
// CHECK-LABEL: define
149+
// CHECK-LABEL: define{{.*}}f11
150150
__complex double f11() {
151151
__complex double f;
152152
// CHECK: store {{.*}} !dbg [[DBG_F11:!.*]]

0 commit comments

Comments
 (0)