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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tls/] [static-1a.cc] - Blame information for rev 774

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

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

powered by: WebSVN 2.1.0

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