def METHOD_NAME(self):
    source = 'test1.c'
    executable = 'test1.exe'
    cc = determine_wellknown_cmd('CC', 'x86_64-w64-mingw32-gcc')
    with open(source, 'w', encoding="utf8") as f:
        f.write('''
            #include <pdh.h>
            int main()
            {
                PdhConnectMachineA(NULL);
                return 0;
            }
    ''')
    self.assertEqual(call_symbol_check(cc, source, executable, ['-lpdh', '-Wl,--major-subsystem-version', '-Wl,6', '-Wl,--minor-subsystem-version', '-Wl,1']),
        (1, 'pdh.dll is not in ALLOWED_LIBRARIES!\n' +
             executable + ': failed DYNAMIC_LIBRARIES'))
    source = 'test2.c'
    executable = 'test2.exe'
    with open(source, 'w', encoding="utf8") as f:
        f.write('''
            int main()
            {
                return 0;
            }
    ''')
    self.assertEqual(call_symbol_check(cc, source, executable, ['-Wl,--major-subsystem-version', '-Wl,9', '-Wl,--minor-subsystem-version', '-Wl,9']),
        (1, executable + ': failed SUBSYSTEM_VERSION'))
    source = 'test3.c'
    executable = 'test3.exe'
    with open(source, 'w', encoding="utf8") as f:
        f.write('''
            #include <combaseapi.h>
            int main()
            {
                CoFreeUnusedLibrariesEx(0,0);
                return 0;
            }
    ''')
    self.assertEqual(call_symbol_check(cc, source, executable, ['-lole32', '-Wl,--major-subsystem-version', '-Wl,6', '-Wl,--minor-subsystem-version', '-Wl,1']),
            (0, ''))