Commit 871e97f7 by Mark Mitchell Committed by Mark Mitchell

cp

From-SVN: r57695
parent f7e466a3
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.
......
/* 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" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment