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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [testsuite/] [weak_alias_test_main.cc] - Diff between revs 27 and 159

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 27 Rev 159
Line 37... Line 37...
 
 
// Defined in weak_alias_test_1.cc
// Defined in weak_alias_test_1.cc
extern int strong_aliased_3;
extern int strong_aliased_3;
extern int weak_aliased_4;
extern int weak_aliased_4;
 
 
 
// Defined in weak_alias_test_5.cc
 
extern int versioned_symbol;
 
extern int versioned_alias;
 
 
extern bool t1();
extern bool t1();
 
extern bool t2();
 
 
int
int
main()
main()
{
{
  // weak_symbol should come from weak_alias_test_3.cc.
  // weak_symbol should come from weak_alias_test_3.cc.
Line 62... Line 67...
  // weak_aliased_4 should come from weak_alias_test_1.cc.
  // weak_aliased_4 should come from weak_alias_test_1.cc.
  assert(weak_aliased_4 == 8);
  assert(weak_aliased_4 == 8);
 
 
  // Make sure the symbols look right from a shared library.
  // Make sure the symbols look right from a shared library.
  assert(t1());
  assert(t1());
 
 
 
  // versioned_symbol comes from weak_alias_test_5.cc.
 
  assert(versioned_symbol == 1);
 
  // So does versioned_alias.
 
  assert(versioned_alias == 1);
 
 
 
  // Make sure the versioned symbols look right from a shared library.
 
  assert(t2());
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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