mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-23 18:22:08 +00:00
3045c0aef2
* tests/data/test-read-dwarf/test0.cc: Define a member function out-of-line, outside of its namespace. * tests/data/test-read-dwarf/test0.abi: Update the .abi file. * tests/data/test-read-dwarf/test0: Update the resulting binary. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
53 lines
606 B
C++
53 lines
606 B
C++
// Random comment
|
|
//
|
|
int global = 1;
|
|
|
|
namespace ns0
|
|
{
|
|
long
|
|
foo(char* c, const volatile long 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
|
|
|
|
long
|
|
ns0::foo(char* c, const volatile long l)
|
|
{return *c + l;}
|
|
|
|
int
|
|
main()
|
|
{
|
|
return ns0::this_should_not_be_seen_by_bidw();
|
|
}
|