This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix tls/diag-3.c
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Aug 2002 17:16:48 -0700
- Subject: fix tls/diag-3.c
* gcc.dg/tls/diag-3.c: Fix expected message strings.
Index: gcc.dg/tls/diag-3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tls/diag-3.c,v
retrieving revision 1.1
diff -c -p -d -u -r1.1 diag-3.c
--- gcc.dg/tls/diag-3.c 7 Aug 2002 01:25:01 -0000 1.1
+++ gcc.dg/tls/diag-3.c 15 Aug 2002 00:15:28 -0000
@@ -1,10 +1,10 @@
/* Report invalid extern and __thread combinations. */
extern int j; /* { dg-error "previous declaration" } */
-__thread int j; /* { dg-error "thread-local declaration for" } */
+__thread int j; /* { dg-error "follows non thread-local" } */
extern __thread int i; /* { dg-error "previous declaration" } */
-int i; /* { dg-error "non thread-local" } */
+int i; /* { dg-error "follows thread-local" } */
extern __thread int k; /* This is fine. */
__thread int k;