You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
418 B

// Compile this with:
// g++ -Wall -g -shared -Wl,--version-script=test6-fn-suppr-version-script -o libtest6-fn-suppr-v0.so test6-fn-suppr-v0.cc
struct S
{
int m0;
S()
: m0()
{}
};
struct S1
{
int m0;
S1()
: m0()
{}
};
struct S2
{
int m0;
S2()
: m0()
{}
};
int
bar(S&)
{return 0;}
asm(".symver _Z3barR1S,_Z3barR1S@VERSION_1.0");
void
bar(S1*)
{}
char
bar(int, S2**)
{return 0;}