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

Subversion Repositories open8_urisc

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

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

Rev 27 Rev 159
Line 60... Line 60...
// 1  Code in file 1 calls code in file 2.
// 1  Code in file 1 calls code in file 2.
 
 
bool
bool
t1()
t1()
{
{
  return t1_2() == 0;
  return t1_2() == 0;  // Intentionally wrong.
}
}
 
 
// 2  Code in file 1 refers to global data in file 2.
// 2  Code in file 1 refers to global data in file 2.
 
 
bool
bool
t2()
t2()
{
{
  return v2 == 0;
  return v2 == 0;  // Intentionally wrong.
}
}
 
 
// 3  Code in file 1 referes to common symbol in file 2.
// 3  Code in file 1 referes to common symbol in file 2.
 
 
bool
bool
t3()
t3()
{
{
  return v3 == 0;
  return v3 == 0;  // Intentionally wrong.
}
}
 
 
// 4  Code in file 1 refers to offset within global data in file 2.
// 4  Code in file 1 refers to offset within global data in file 2.
 
 
bool
bool
Line 229... Line 229...
// 18 File 1 checks string constants referenced in code in file 2.
// 18 File 1 checks string constants referenced in code in file 2.
 
 
bool
bool
t18()
t18()
{
{
  char c = 'a';
  // Stubbed out; full implementation in two_file_test_1.cc.
  for (int i = 0; i < T17_COUNT; ++i)
 
    {
 
      const char* s = f18(i);
 
      if (s[0] != c || s[1] != '\0')
 
        return false;
 
      ++c;
 
    }
 
  return true;
  return true;
}
}
 
 
 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.