summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/misc_bugs
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-30 17:08:31 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-30 17:08:31 +0000
commitfc473dee98fd8d2756983b9d039cd439e5a78f24 (patch)
tree24668270a601fa1c704f3b33a4895fec4c08f3ff /openmp/runtime/test/misc_bugs
parentc7832045d5e8508713cd3353ea75ff8486add49f (diff)
downloadbcm5719-llvm-fc473dee98fd8d2756983b9d039cd439e5a78f24.tar.gz
bcm5719-llvm-fc473dee98fd8d2756983b9d039cd439e5a78f24.zip
[CMake] Detect information about test compiler
Perform a nested CMake invocation to avoid writing our own parser for compiler versions when we are not testing the in-tree compiler. Use the extracted information to mark a test as unsupported that hangs with Clang prior to version 4.0.1 and restrict tests for libomptarget to Clang version 6.0.0 and later. Differential Revision: https://reviews.llvm.org/D40083 llvm-svn: 319448
Diffstat (limited to 'openmp/runtime/test/misc_bugs')
-rw-r--r--openmp/runtime/test/misc_bugs/cancellation_for_sections.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openmp/runtime/test/misc_bugs/cancellation_for_sections.c b/openmp/runtime/test/misc_bugs/cancellation_for_sections.c
index a5445d48009..07a61cb3ed0 100644
--- a/openmp/runtime/test/misc_bugs/cancellation_for_sections.c
+++ b/openmp/runtime/test/misc_bugs/cancellation_for_sections.c
@@ -1,5 +1,8 @@
// RUN: %libomp-compile && env OMP_CANCELLATION=true %libomp-run
// XFAIL: gcc
+// Clang had a bug until version 4.0.1 which resulted in a hang.
+// UNSUPPORTED: clang-3, clang-4.0.0
+
// Regression test for a bug in cancellation to cover effect of `#pragma omp cancel`
// in a loop construct, on sections construct.
// Pass condition: Cancellation status from `for` does not persist
@@ -59,4 +62,3 @@ int main(void) {
printf("PASSED\n");
return 0;
}
-
OpenPOWER on IntegriCloud