We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1dbb81 commit f8f8e39Copy full SHA for f8f8e39
compiler-rt/test/sanitizer_common/TestCases/Linux/sandbox_forbidden_functions.cpp
@@ -0,0 +1,21 @@
1
+// RUN: %clangxx %s -o %t && %run %t 2>&1 | FileCheck %s
2
+
3
+// REQUIRES: target-x86 || target-x86_64
4
5
+#include <stdio.h>
6
+#include <stdlib.h>
7
8
+// Functions that sandboxes don't like. If a sanitizer calls it, this test will
9
+// likely fail. (There will be a false negative if the sanitizer only calls it
10
+// during an obscure code path that is not exercised by this test.)
11
+//
12
+// Known false positive: TSan with high-entropy ASLR (in a non-sandboxed
13
+// environment)
14
+extern "C" int personality(unsigned long) { abort(); }
15
16
+int main(int argc, char **argv) {
17
+ printf("Hello World!\n");
18
+ return 0;
19
+}
20
21
+// CHECK: Hello World!
0 commit comments