static int test0 __attribute__((weak)); static void test1() __attribute__((weak));
namespace test2 __attribute__((weak)) { }
namespace {
int test3 __attribute__((weak)); void test4() __attribute__((weak)); }
struct Test5 {
static void test5() __attribute__((weak)); };
namespace {
struct Test6 {
static void test6() __attribute__((weak)); };
}
template <class T> struct Test7 {
void test7() __attribute__((weak)) {}
};
namespace { class Internal; }
template struct Test7<Internal>;
template struct Test7<int>;