OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [tls/] [init-2.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Invalid initializations.  */
2
/* { dg-require-effective-target tls } */
3
 
4
extern __thread int i;
5
__thread int *p = &i;     /* { dg-error "dynamically initialized" } */
6
 
7
extern int f();
8
__thread int j = f();   /* { dg-error "dynamically initialized" } */
9
 
10
struct S
11
{
12
  S();
13
};
14
__thread S s;           /* { dg-error "" } two errors here */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.