brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · ba7b5e5 Raw
33 lines · cpp
1// RUN: %clang_asan_abi -O0 -c -fsanitize-stable-abi -fsanitize=address %s -o %t.o2// RUN: %clangxx -c %p/../../../../lib/asan_abi/asan_abi.cpp -o asan_abi.o3// RUN: %clangxx -dead_strip -o %t %t.o -fsanitize-stable-abi -fsanitize=address asan_abi.o && %run %t 2>&14// RUN: %clangxx -x c++-header -o - -E %p/../../../../lib/asan/asan_interface.inc \5// RUN: | sed "s/INTERFACE_FUNCTION/\nINTERFACE_FUNCTION/g" > %t.asan_interface.inc6// RUN: llvm-nm -g %libasan_abi                                   \7// RUN: | grep " [TU] "                                           \8// RUN: | grep -o "\(__asan\)[^ ]*"                               \9// RUN: | grep -v "\(__asan_abi\)[^ ]*"                           \10// RUN: > %t.exports11// RUN: sed -e ':a' -e 'N' -e '$!ba'                              \12// RUN:     -e 's/ //g'                                           \13// RUN:     -e ':b' -e 's/\n\n/\n/g' -e 'tb'                      \14// RUN:     -e 's/(\n/(/g'                                        \15// RUN: %t.asan_interface.inc                                     \16// RUN: | grep -v -f %p/../../../../lib/asan_abi/asan_abi_tbd.txt \17// RUN: | grep -e "INTERFACE_\(WEAK_\)\?FUNCTION"                 \18// RUN: | grep -v "__sanitizer[^ ]*"                              \19// RUN: | sed -e "s/.*(//" -e "s/).*//"                           \20// RUN: | sed -e "/^__asan_version_mismatch_check/d"              \21// RUN: > %t.imports22// RUN: sort %t.imports | uniq > %t.imports-sorted23// RUN: sort %t.exports | uniq > %t.exports-sorted24// RUN: diff %t.imports-sorted %t.exports-sorted25 26// Ensure that there is no dynamic dylib linked.27// RUN: otool -L %t > %t.libs28// RUN: not grep -q "dynamic.dylib" < %t.libs29 30// UNSUPPORTED: ios31 32int main() { return 0; }33