1 ; Check that Subzero can instrument _start when there are no globals. 2 ; Previously Subzero would deadlock when _start was the first function. Also 3 ; test that instrumenting start does not deadlock waiting for nonexistent 4 ; global initializers to be lowered. 5 6 ; REQUIRES: no_minimal_build 7 8 ; RUN: %p2i -i %s --args -verbose=inst -fsanitize-address \ 9 ; RUN: | FileCheck --check-prefix=DUMP %s 10 11 ; RUN: %p2i -i %s --args -verbose=inst -fsanitize-address -threads=0 \ 12 ; RUN: | FileCheck --check-prefix=DUMP %s 13 14 15 define void @_start(i32 %arg) { 16 ret void 17 } 18 19 ; DUMP: __asan_init 20