struct overload2_arga {};
#define GEN_OVERLOAD2_FUNCTIONS(ARG1, ARG2) \
- void \
+ void __attribute__ ((used)) \
overload2_function (ARG1) \
{} \
\
struct struct_overload2_test \
{ \
- void overload2_function (ARG2); \
+ void __attribute__ ((used)) \
+ overload2_function (ARG2); \
}; \
\
- void \
+ void __attribute__ ((used)) \
struct_overload2_test::overload2_function (ARG2) \
{}
/* Code for the overload-3 test. */
#define GEN_OVERLOAD3_FUNCTIONS(ARG1, ARG2) \
- void \
+ void __attribute__ ((used)) \
overload3_function (ARG1) \
{} \
- void \
+ void __attribute__ ((used)) \
overload3_function (ARG2) \
{} \
\
struct struct_overload3_test \
{ \
- void overload3_function (ARG1); \
- void overload3_function (ARG2); \
+ void __attribute__ ((used)) \
+ overload3_function (ARG1); \
+ void __attribute__ ((used)) \
+ overload3_function (ARG2); \
}; \
\
- void \
+ void __attribute__ ((used)) \
struct_overload3_test::overload3_function (ARG1) \
{} \
- void \
+ void __attribute__ ((used)) \
struct_overload3_test::overload3_function (ARG2) \
{}
namespace
{
- void anon_ns_function ()
+ void __attribute__ ((used)) anon_ns_function ()
{}
struct anon_ns_struct
{
- void anon_ns_function ();
+ void __attribute__ ((used)) anon_ns_function ();
};
- void
+ void __attribute__ ((used))
anon_ns_struct::anon_ns_function ()
{}
}
namespace
{
- void anon_ns_function ()
+ void __attribute__ ((used)) anon_ns_function ()
{}
struct anon_ns_struct
{
- void anon_ns_function ();
+ void __attribute__ ((used)) anon_ns_function ();
};
- void
+ void __attribute__ ((used))
anon_ns_struct::anon_ns_function ()
{}
}