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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr45852.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* PR middle-end/45852 */
2
/* { dg-options "-O2 -mcmodel=small" } */
3
/* { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } && { ! { ia32 } } } } } */
4
/* { dg-require-visibility "" } */
5
 
6
struct S { int s; };
7
 
8
volatile struct S globvar __attribute__((visibility ("hidden"))) = { -6 };
9
 
10
void
11
foo (void)
12
{
13
  globvar = globvar;
14
}
15
 
16
/* { dg-final { scan-assembler-times "globvar.%?rip" 2 } } */

powered by: WebSVN 2.1.0

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