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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [pr34692.c] - Rev 689

Compare with Previous | Blame | View Log

/* PR preprocessor/34692 */
/* { dg-do compile } */
/* { dg-options "" } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "vara" } } */
/* { dg-final { scan-hidden "varb" } } */
/* { dg-final { scan-hidden "varc" } } */
/* { dg-final { scan-hidden "vard" } } */
/* { dg-final { scan-assembler "a b cde f g h" } } */
 
#define FOO(y, x) y #x
#define BAR(x) x
#define BAZ(x) x
FOO (const char *vara =,
a
#pragma GCC visibility push(hidden)
b
#pragma GCC visibility push(hidden)
cde f g h);
int varb = 6;
#pragma GCC visibility pop
#pragma GCC visibility pop
FOO (
BAR (
#pragma GCC visibility push(hidden)
const) char *varc =,);
#pragma GCC visibility pop
FOO (
BAR (
BAZ (
#pragma GCC visibility push(hidden)
#pragma GCC visibility push(hidden)
const) char) *vard =,);
#pragma GCC visibility pop
#pragma GCC visibility pop
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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