summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/sanitizer_common/TestCases/Linux/sched_getparam.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-08-05 13:57:03 +0000
committerNico Weber <nicolasweber@gmx.de>2019-08-05 13:57:03 +0000
commit74989aff5351beaeb03f46fc2fe57752d57f848b (patch)
tree39eacef15bfd9b675d7493f0845c12e5b3ec6ddc /compiler-rt/test/sanitizer_common/TestCases/Linux/sched_getparam.cpp
parent6ca6e91615dae42a087938a6ed0a6cbc0647f7ba (diff)
downloadbcm5719-llvm-74989aff5351beaeb03f46fc2fe57752d57f848b.tar.gz
bcm5719-llvm-74989aff5351beaeb03f46fc2fe57752d57f848b.zip
compiler-rt: Rename cc files below test/sanitizer_common to cpp
See r367803 and similar other changes. llvm-svn: 367863
Diffstat (limited to 'compiler-rt/test/sanitizer_common/TestCases/Linux/sched_getparam.cpp')
-rw-r--r--compiler-rt/test/sanitizer_common/TestCases/Linux/sched_getparam.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sched_getparam.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/sched_getparam.cpp
new file mode 100644
index 00000000000..390c656fe20
--- /dev/null
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/sched_getparam.cpp
@@ -0,0 +1,13 @@
+// RUN: %clangxx -O0 %s -o %t && %run %t
+
+#include <assert.h>
+#include <sched.h>
+#include <stdio.h>
+
+int main(void) {
+ struct sched_param param;
+ int res = sched_getparam(0, &param);
+ assert(res == 0);
+ if (param.sched_priority == 42) printf(".\n");
+ return 0;
+}
OpenPOWER on IntegriCloud