brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · f7702c9 Raw
26 lines · c
1// Check that the ubsan and ubsan-minimal runtimes have the same symbols,2// making exceptions as necessary.3//4// REQUIRES: x86_64-darwin5 6// RUN: %clangxx_min_runtime -fsanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | \7// RUN: grep "libclang_rt.ubsan_minimal_osx_dynamic.dylib" | \8// RUN: sed -e 's/.*"\(.*libclang_rt.ubsan_minimal_osx_dynamic.dylib\)".*/\1/' | \9// RUN: tr -d '\n' > %t.dylib_path110// RUN: nm -jgU %{readfile:%t.dylib_path1} | grep "^___ubsan_handle" \11// RUN:  | grep -vE "_minimal_preserve" \12// RUN:  | sed 's/_minimal//g' \13// RUN:  > %t.minimal.symlist14//15// RUN: %clangxx_min_runtime -fno-sanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | \16// RUN: grep "libclang_rt.ubsan_osx_dynamic.dylib" | \17// RUN: sed -e 's/.*"\(.*libclang_rt.ubsan_osx_dynamic.dylib\)".*/\1/' | \18// RUN: tr -d '\n' > %t.dylib_path219// RUN: nm -jgU %{readfile:%t.dylib_path2} | grep "^___ubsan_handle" \20// RUN:  | grep -vE "^___ubsan_handle_dynamic_type_cache_miss" \21// RUN:  | grep -vE "^___ubsan_handle_cfi_bad_type" \22// RUN:  | sed 's/_v1//g' \23// RUN:  > %t.full.symlist24//25// RUN: diff %t.minimal.symlist %t.full.symlist26