Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: tests_lit/asan_tests/startinitcall.ll

Issue 2068593003: Implemented linking to a dummy ASan runtime (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Added a test. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« pydir/szbuild.py ('K') | « tests_lit/asan_tests/globalredzones.ll ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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(
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(
26 ; DUMP-NEXT: __0:
27 ; DUMP-NEXT: call void @__asan_init()
OLDNEW
« pydir/szbuild.py ('K') | « tests_lit/asan_tests/globalredzones.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698