summaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c++/pr24455-1.C
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/testsuite/libgomp.c++/pr24455-1.C')
-rw-r--r--libgomp/testsuite/libgomp.c++/pr24455-1.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.c++/pr24455-1.C b/libgomp/testsuite/libgomp.c++/pr24455-1.C
new file mode 100644
index 000000000..e7f38f8ab
--- /dev/null
+++ b/libgomp/testsuite/libgomp.c++/pr24455-1.C
@@ -0,0 +1,6 @@
+// { dg-do compile }
+// { dg-require-effective-target tls }
+extern int i;
+#pragma omp threadprivate (i)
+
+int i;