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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [fvisibility-inlines-hidden-2.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test that -fvisibility-inlines-hidden doesn't affect static variables. */
2
/* { dg-do compile } */
3
/* { dg-require-visibility "" } */
4
/* { dg-options "-fvisibility-inlines-hidden" } */
5
/* { dg-final { scan-not-hidden "_ZZN3foo7my_funcEvE1x" } } */
6
 
7
struct foo
8
{
9
  int my_func() {
10
    static int x;
11
    return x++;
12
  }
13
};
14
 
15
int t()
16
{
17
  foo f;
18
  return f.my_func();
19
}

powered by: WebSVN 2.1.0

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