aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice.C b/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice.C
new file mode 100644
index 000000000..274e800c8
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice.C
@@ -0,0 +1,6 @@
+// PR c++/55801
+// { dg-do compile { target c++11 } }
+// { dg-require-effective-target tls }
+
+class C;
+thread_local C O, O2 = O; // { dg-error "incomplete" }