aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-06-30 11:40:38 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-06-30 11:40:38 -0400
commit47297e51f5c84a72bbe4c1bf2542d1c859222d84 (patch)
tree7d2e4dd2b6ac82c39b288980e58f4fa276959ea6 /gcc/testsuite
parent3048c0c746443b1402bc3b7ebca39c030a3f991c (diff)
downloadgcc-47297e51f5c84a72bbe4c1bf2542d1c859222d84.zip
gcc-47297e51f5c84a72bbe4c1bf2542d1c859222d84.tar.gz
gcc-47297e51f5c84a72bbe4c1bf2542d1c859222d84.tar.bz2
re PR debug/66653 (ice in gen_type_die_with_usage, at dwarf2out.c:20876)
PR debug/66653 * decl2.c (is_late_template_attribute): True for tls_model. From-SVN: r225193
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/g++.dg/tls/tls_model1.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/tls/tls_model1.C b/gcc/testsuite/g++.dg/tls/tls_model1.C
new file mode 100644
index 0000000..a1520a1
--- /dev/null
+++ b/gcc/testsuite/g++.dg/tls/tls_model1.C
@@ -0,0 +1,8 @@
+// { dg-require-effective-target tls }
+// { dg-options "-g" }
+
+template <class T>
+void f()
+{
+ static __thread int i __attribute ((tls_model ("local-exec")));
+}