OLD | NEW |
---|---|
(Empty) | |
1 ; Test for a call to __asan_init in _start | |
2 | |
3 ; REQUIRES: allow_dump | |
4 | |
5 ; RUN: %p2i -i %s --args -verbose=inst -threads=0 -fsanitize-address \ | |
6 ; RUN: | FileCheck --check-prefix=DUMP %s | |
7 | |
8 ; notStart() should not be instrumented | |
9 define internal void @notStart() { | |
10 ret void | |
11 } | |
12 | |
13 ; DUMP-LABEL: ================ Instrumented CFG ================ | |
14 ; DUMP-NEXT: define internal void @notStart( | |
Karl
2016/06/15 14:19:28
Wouldn't be safer to make this the DUMP-LABEL entr
tlively
2016/06/15 16:32:00
Done.
| |
15 ; DUMP-NEXT: __0: | |
16 ; DUMP-NOT: __asan_init() | |
17 ; DUMP: } | |
18 | |
19 ; _start() should be instrumented | |
20 define void @_start() { | |
21 ret void | |
22 } | |
23 | |
24 ; DUMP-LABEL: ================ Instrumented CFG ================ | |
25 ; DUMP-NEXT: define void @_start( | |
Karl
2016/06/15 14:19:28
Same here.
tlively
2016/06/15 16:32:00
Done.
| |
26 ; DUMP-NEXT: __0: | |
27 ; DUMP-NEXT: call void @__asan_init() | |
OLD | NEW |