summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-12.c
blob: 6012bd9ce243655a258d5d960c6a740185b74563 (plain)
1
2
3
4
5
6
7
8
9
10
/* Test that dllimport'd functions have default visibility.  */
/* { dg-require-visibility "" } */
/* { dg-require-dll "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-not-hidden "f1" } } */

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