URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* Test warning from conflicting visibility specifications. */
|
/* Test warning from conflicting visibility specifications. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-visibility "protected" } */
|
/* { dg-require-visibility "protected" } */
|
/* { dg-final { scan-hidden "xyzzy" } } */
|
/* { dg-final { scan-hidden "xyzzy" } } */
|
|
|
extern int
|
extern int
|
__attribute__((visibility ("hidden")))
|
__attribute__((visibility ("hidden")))
|
xyzzy; /* { dg-message "note: previous declaration" "" } */
|
xyzzy; /* { dg-message "note: previous declaration" "" } */
|
|
|
int
|
int
|
__attribute__((visibility ("protected")))
|
__attribute__((visibility ("protected")))
|
xyzzy = 5; /* { dg-warning "different visibility" "" } */
|
xyzzy = 5; /* { dg-warning "different visibility" "" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.