summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/Darwin/empty-section.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-08-05 16:48:12 +0000
committerNico Weber <nicolasweber@gmx.de>2019-08-05 16:48:12 +0000
commit673dc3d4a0b0fbb3b9b34ae2ecbfa522627fe582 (patch)
tree93e9f9c3508af096ba717ef85186950135b4c225 /compiler-rt/test/asan/TestCases/Darwin/empty-section.cpp
parenta96cfee98a22e262367868f343b599c2312149b7 (diff)
downloadbcm5719-llvm-673dc3d4a0b0fbb3b9b34ae2ecbfa522627fe582.tar.gz
bcm5719-llvm-673dc3d4a0b0fbb3b9b34ae2ecbfa522627fe582.zip
compiler-rt: Rename cc files below test/asan to cpp
See r367803 and similar other changes. llvm-svn: 367887
Diffstat (limited to 'compiler-rt/test/asan/TestCases/Darwin/empty-section.cpp')
-rw-r--r--compiler-rt/test/asan/TestCases/Darwin/empty-section.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/TestCases/Darwin/empty-section.cpp b/compiler-rt/test/asan/TestCases/Darwin/empty-section.cpp
new file mode 100644
index 00000000000..5b006b54548
--- /dev/null
+++ b/compiler-rt/test/asan/TestCases/Darwin/empty-section.cpp
@@ -0,0 +1,12 @@
+// Regression test with an empty (length = 0) custom section.
+
+// RUN: %clangxx_asan -g -O0 %s -c -o %t.o
+// RUN: %clangxx_asan -g -O0 %t.o -o %t -sectcreate mysegment mysection /dev/null
+// RUN: %run %t 2>&1 | FileCheck %s
+
+#include <stdio.h>
+
+int main() {
+ printf("Hello, world!\n");
+ // CHECK: Hello, world!
+}
OpenPOWER on IntegriCloud