Add basic test for pragma(LDC_extern_weak).