From-SVN: r57695
This commit is contained in:
Mark Mitchell 2002-10-01 18:27:33 +00:00 committed by Mark Mitchell
parent f7e466a3fe
commit 871e97f720
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-10-01 Mark Mitchell <mark@codesourcery.com>
* g++.dg/tls/init-2.C: Tweak error messages.
2002-10-01 Richard Sandiford <rsandifo@redhat.com>
* gcc.c-torture/compile/20020923-1.c: New test.

View File

@ -1,13 +1,13 @@
/* Invalid initializations. */
extern __thread int i;
__thread int *p = &i; /* { dg-error "run-time initialization" } */
__thread int *p = &i; /* { dg-error "dynamically initialized" } */
extern int f();
__thread int j = f(); /* { dg-error "run-time initialization" } */
__thread int j = f(); /* { dg-error "dynamically initialized" } */
struct S
{
S();
};
__thread S s; /* { dg-error "run-time initialization" } */
__thread S s; /* { dg-error "non-POD" } */