mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-23 02:02:15 +00:00
8f9b8e76a0
* tests/test-read-dwarf.cc: New dwarf reading regression test. * tests/data/test-read-dwarf/test0: New test input. * data/test-read-dwarf/test0: Likewise. * data/test-read-dwarf/test0.abi: Likewise. * data/test-read-dwarf/test0.cc: Likewise. * data/test-read-dwarf/test1: Likewise. * data/test-read-dwarf/test1.abi: Likewise. * data/test-read-dwarf/test1.cc: Likewise. * tests/Makefile.am: Build the new tests/test-read-dwarf.cc file. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
49 lines
557 B
C++
49 lines
557 B
C++
// Random comment
|
|
//
|
|
int global = 1;
|
|
|
|
namespace ns0
|
|
{
|
|
long
|
|
foo(char* c, const volatile long l)
|
|
{return *c + l;}
|
|
|
|
void
|
|
bar(const int c, ...)
|
|
{}
|
|
|
|
void
|
|
baz(int& c)
|
|
{c = 0;}
|
|
|
|
enum E {e0, e1};
|
|
|
|
void
|
|
bar2(E& e)
|
|
{int c = e; ++c;}
|
|
|
|
typedef long long long_long;
|
|
|
|
long_long
|
|
baz2(int& c)
|
|
{c = 0; return c;}
|
|
|
|
typedef const volatile unsigned long long useless_long_long;
|
|
|
|
static useless_long_long
|
|
this_should_not_be_seen_by_bidw()
|
|
{
|
|
int i = 0;
|
|
bar(0);
|
|
baz2(i);
|
|
return 0;
|
|
}
|
|
|
|
} // end namespace ns0
|
|
|
|
int
|
|
main()
|
|
{
|
|
return ns0::this_should_not_be_seen_by_bidw();
|
|
}
|