mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 13:00:09 +08:00
cp
From-SVN: r57695
This commit is contained in:
parent
f7e466a3fe
commit
871e97f720
@ -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.
|
||||
|
@ -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" } */
|
||||
|
Loading…
Reference in New Issue
Block a user