diff options
author | Jay Foad <jay.foad@gmail.com> | 2015-06-25 10:35:19 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2015-06-25 10:35:19 +0000 |
commit | e967dd04209a0c06b5cd82c4c4a42adffad01d0f (patch) | |
tree | d2b0ab85f4894d3d722ce29b1926225bcfe80e43 /clang/test/Driver/msan.c | |
parent | 7a28cdc9dd90dd4a69ba2c73bf9616109784c341 (diff) | |
download | bcm5719-llvm-e967dd04209a0c06b5cd82c4c4a42adffad01d0f.tar.gz bcm5719-llvm-e967dd04209a0c06b5cd82c4c4a42adffad01d0f.zip |
Teach Clang about the PPC64 memory sanitizer implementation.
Summary:
This is the Clang part of the PPC64 memory sanitizer implementation in
D10648.
Reviewers: kcc, eugenis, willschm, wschmidt, samsonov
Reviewed By: samsonov
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D10650
llvm-svn: 240628
Diffstat (limited to 'clang/test/Driver/msan.c')
-rw-r--r-- | clang/test/Driver/msan.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Driver/msan.c b/clang/test/Driver/msan.c new file mode 100644 index 00000000000..22f7471510a --- /dev/null +++ b/clang/test/Driver/msan.c @@ -0,0 +1,12 @@ +// RUN: %clang -target x86_64-unknown-linux -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s +// RUN: %clang -O1 -target x86_64-unknown-linux -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s +// RUN: %clang -O2 -target x86_64-unknown-linux -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s +// RUN: %clang -O3 -target x86_64-unknown-linux -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s +// RUN: %clang -target mips64-linux-gnu -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s +// RUN: %clang -target mips64el-unknown-linux-gnu -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s +// RUN: %clang -target powerpc64-unknown-linux-gnu -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s +// RUN: %clang -target powerpc64le-unknown-linux-gnu -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s +// Verify that -fsanitize=memory invokes msan instrumentation. + +int foo(int *a) { return *a; } +// CHECK: __msan_init |