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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [weak1.C] - Blame information for rev 715

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do run }
2
// { dg-require-weak "" }
3
// The PA HP-UX and Tru64 UNIX dynamic loaders don't support unsatisfied
4
// weak symbols.
5
// { dg-skip-if "No unsat" { alpha*-dec-osf* hppa*-*-hpux* } { "*" } { "" } }
6
// The darwin loader does, but they do need to exist at link time.
7
// { dg-skip-if "No link unsat" { *-*-darwin* } { "*" } { "" } }
8
// For kernel modules and static RTPs, the loader treats undefined weak
9
// symbols in the same way as undefined strong symbols.  The test
10
// therefore fails to load, so skip it.
11
// { dg-skip-if "" { "*-*-vxworks*" && nonpic } "*" { "-non-static" } }
12
 
13
extern void foo (void) __attribute__ ((weak));
14
 
15
int
16
main ()
17
{
18
  if (&foo)
19
    foo ();
20
 
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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