aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tls
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/tls')
-rw-r--r--gcc/testsuite/g++.dg/tls/diag-1.C30
-rw-r--r--gcc/testsuite/g++.dg/tls/diag-2.C25
-rw-r--r--gcc/testsuite/g++.dg/tls/init-1.C13
-rw-r--r--gcc/testsuite/g++.dg/tls/init-2.C13
-rw-r--r--gcc/testsuite/g++.dg/tls/tls.exp44
-rw-r--r--gcc/testsuite/g++.dg/tls/trivial.C1
6 files changed, 0 insertions, 126 deletions
diff --git a/gcc/testsuite/g++.dg/tls/diag-1.C b/gcc/testsuite/g++.dg/tls/diag-1.C
deleted file mode 100644
index 697d0b13106..00000000000
--- a/gcc/testsuite/g++.dg/tls/diag-1.C
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Valid __thread specifiers. */
-
-__thread int g1;
-extern __thread int g2;
-static __thread int g3;
-
-void foo()
-{
- extern __thread int l1;
- static __thread int l2;
-}
-
-struct A {
- static __thread int i;
-};
-
-__thread int A::i = 42;
-
-template <typename T> struct B {
- static __thread T t;
-};
-
-template <typename T>
-__thread T B<T>::t = 42;
-
-void bar ()
-{
- int j = B<int>::t;
- int k = B<const int>::t;
-}
diff --git a/gcc/testsuite/g++.dg/tls/diag-2.C b/gcc/testsuite/g++.dg/tls/diag-2.C
deleted file mode 100644
index 6365406e2e7..00000000000
--- a/gcc/testsuite/g++.dg/tls/diag-2.C
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Invalid __thread specifiers. */
-
-__thread extern int g1; /* { dg-error "`__thread' before `extern'" } */
-__thread static int g2; /* { dg-error "`__thread' before `static'" } */
-__thread __thread int g3; /* { dg-error "duplicate `__thread'" } */
-typedef __thread int g4; /* { dg-error "multiple storage classes" } */
-
-void foo()
-{
- __thread int l1; /* { dg-error "implicitly auto and declared `__thread'" } */
- auto __thread int l2; /* { dg-error "multiple storage classes" } */
- __thread extern int l3; /* { dg-error "`__thread' before `extern'" } */
- register __thread int l4; /* { dg-error "multiple storage classes" } */
-}
-
-__thread void f1 (); /* { dg-error "invalid for function" } */
-extern __thread void f2 (); /* { dg-error "invalid for function" } */
-static __thread void f3 (); /* { dg-error "invalid for function" } */
-__thread void f4 () { } /* { dg-error "invalid for function" } */
-
-void bar(__thread int p1); /* { dg-error "(invalid in parameter)|(specified for parameter)" } */
-
-struct A {
- __thread int i; /* { dg-error "specified for field" } */
-};
diff --git a/gcc/testsuite/g++.dg/tls/init-1.C b/gcc/testsuite/g++.dg/tls/init-1.C
deleted file mode 100644
index 74f7641fe27..00000000000
--- a/gcc/testsuite/g++.dg/tls/init-1.C
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Valid initializations. */
-
-__thread int i = 42;
-
-static int j;
-__thread int *p = &j;
-
-/* Note that this is valid in C++ (unlike C) as a run-time initialization. */
-int *q = &i;
-
-/* Valid because "const int k" is an integral constant expression in C++. */
-__thread const int k = 42;
-__thread const int l = k;
diff --git a/gcc/testsuite/g++.dg/tls/init-2.C b/gcc/testsuite/g++.dg/tls/init-2.C
deleted file mode 100644
index 49df50147b3..00000000000
--- a/gcc/testsuite/g++.dg/tls/init-2.C
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Invalid initializations. */
-
-extern __thread int i;
-__thread int *p = &i; /* { dg-error "run-time initialization" } */
-
-extern int f();
-__thread int j = f(); /* { dg-error "run-time initialization" } */
-
-struct S
-{
- S();
-};
-__thread S s; /* { dg-error "run-time initialization" } */
diff --git a/gcc/testsuite/g++.dg/tls/tls.exp b/gcc/testsuite/g++.dg/tls/tls.exp
deleted file mode 100644
index a00dad79dce..00000000000
--- a/gcc/testsuite/g++.dg/tls/tls.exp
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright (C) 2002 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# GCC testsuite that uses the `dg.exp' driver.
-
-# Load support procs.
-load_lib g++-dg.exp
-
-# Test for thread-local data supported by the platform. If it
-# isn't, everything will fail with the "not supported" message.
-
-set comp_output [g++_target_compile \
- "$srcdir/$subdir/trivial.C" "trivial.S" assembly ""]
-if { [string match "*not supported*" $comp_output] } {
- return 0
-}
-
-# If a testcase doesn't have special options, use these.
-global DEFAULT_CXXFLAGS
-if ![info exists DEFAULT_CXXFLAGS] then {
- set DEFAULT_CXXFLAGS " -ansi -pedantic-errors -Wno-long-long"
-}
-
-# Initialize `dg'.
-dg-init
-
-# Main loop.
-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.C]] "" $DEFAULT_CXXFLAGS
-
-# All done.
-dg-finish
diff --git a/gcc/testsuite/g++.dg/tls/trivial.C b/gcc/testsuite/g++.dg/tls/trivial.C
deleted file mode 100644
index 1fd70631f33..00000000000
--- a/gcc/testsuite/g++.dg/tls/trivial.C
+++ /dev/null
@@ -1 +0,0 @@
-__thread int i;