blob: b78671a6f9ef0f5f80a64a1eaa95e4d0c2fb9de4 [file] [log] [blame]
/* PR middle-end/45852 */
/* { dg-options "-O2 -mcmodel=small" } */
/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
/* { dg-require-visibility "" } */
struct S { int s; };
volatile struct S globvar __attribute__((visibility ("hidden"))) = { -6 };
void
foo (void)
{
globvar = globvar;
}
/* { dg-final { scan-assembler-times "globvar.%?rip" 2 } } */