summaryrefslogtreecommitdiff
path: root/test/Instrumentation
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-05-07 14:10:51 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-05-07 14:10:51 +0000
commit8a387a7aee52221463ec0ee7a8419c6da3d15e3a (patch)
treeb6c27dcc297122b83127a4d05899c9ba06efe7b6 /test/Instrumentation
parent04a359f768a1405461cb6cdb93bb5859c7814e54 (diff)
downloadllvm-8a387a7aee52221463ec0ee7a8419c6da3d15e3a.tar.gz
llvm-8a387a7aee52221463ec0ee7a8419c6da3d15e3a.tar.bz2
llvm-8a387a7aee52221463ec0ee7a8419c6da3d15e3a.tar.xz
[msan] Fix -fsanitize=memory -fno-integrated-as.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Instrumentation')
-rw-r--r--test/Instrumentation/MemorySanitizer/do-not-emit-module-limits.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Instrumentation/MemorySanitizer/do-not-emit-module-limits.ll b/test/Instrumentation/MemorySanitizer/do-not-emit-module-limits.ll
new file mode 100644
index 0000000000..7d0a62a256
--- /dev/null
+++ b/test/Instrumentation/MemorySanitizer/do-not-emit-module-limits.ll
@@ -0,0 +1,21 @@
+; Test that MSan does not emit undefined symbol __executable_start when it is
+; not needed (i.e. without -msan-wrap-indirect-calls).
+
+; RUN: opt < %s -msan -S | FileCheck %s
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+; Function Attrs: nounwind uwtable
+define void @_Z1fv() #0 {
+entry:
+ ret void
+}
+
+attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+
+!llvm.ident = !{!0}
+
+!0 = metadata !{metadata !"clang version 3.5.0 (208165)"}
+
+; CHECK-NOT: __executable_start