summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/ia64/visibility-2.c
blob: 895ef6d918bb24043237d290b3b1253821e24bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Test visibility attribute.  */
/* { dg-do link { target ia64*-*-linux* } } */
/* { dg-options "-O2 -fpic" } */

int foo (int x);
int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
int bar (int x)
{
  return x;
}

int main ()
{
  return 0;
}