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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [darwin-weakimport-2.c] - Blame information for rev 706

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile { target *-*-darwin* } } */
2
/* { dg-require-weak "" } */
3
 
4
/* { dg-final { scan-assembler "weak_reference _foo" } } */
5
 
6
extern int foo __attribute__((weak_import));
7
 
8
int main(void)
9
{
10
  if (&foo)
11
    return foo;
12
  return 0;
13
}

powered by: WebSVN 2.1.0

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