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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [visibility-9.C] - Rev 696

Go to most recent revision | Compare with Previous | Blame | View Log

// Test that dllimport'd functions have default visibility.
// { dg-require-visibility "" }
// { dg-require-dll "" }
// { dg-options "-fvisibility=hidden" }
// { dg-final { scan-not-hidden "_Z2f1v" } }
// { dg-final { scan-not-hidden "_ZN1S2f3Ev" } }

extern void  __attribute__((dllimport)) f1();
void f2() {
  f1();
}

struct __attribute__((visibility("hidden")) S1 {
  __attribute__((dllimport)) void f3();
};

void f4() {
  S1 s1;
  s1.f3();
}

struct S2 {
  __attribute__((dllimport)) void f5();
};

void f6() {
  S2 s2;
  s2.f5();
}

Go to most recent revision | 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.