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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [tls/] [static-1a.cc] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do run }
2
// { dg-options "-O2" }
3
// { dg-additional-sources "static-1a.cc" }
4
// { dg-require-effective-target tls_runtime }
5
 
6
struct A
7
{
8
  static __thread int i;
9
};
10
 
11
int
12
test ()
13
{
14
  if (A::i != 8)
15
    return 1;
16
 
17
  A::i = 17;
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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