Skip to content

Commit cfb822d

Browse files
author
Alexander Batashev
committed
Add test for abi_check.py
Signed-off-by: Alexander Batashev <[email protected]>
1 parent ad7489b commit cfb822d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

sycl/test/tools/abi_check.dump renamed to sycl/test/tools/abi_check_negative.dump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# CHECK: a_new_symbol
66
# CHECK: The following symbols are new to the object file:
77

8-
a_new_symbol
8+
a_new_symbol
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// RUN: %clangxx %s -o %t
2+
// RUN: env LLVM_BIN_PATH=%llvm_build_bin_dir python %sycl_tools_src_dir/abi_check.py --mode check_symbols --reference %S/abi_check_positive_dump.txt %t
3+
// REQUIRES: linux
4+
int main() {}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__libc_csu_fini
2+
__libc_csu_init
3+
_start
4+
main

0 commit comments

Comments
 (0)