Resolve with the unfiltered chain, then apply the cross-language veto the * way pass_calls.c / pass_parallel.c do. */
| 1105 | /* Resolve with the unfiltered chain, then apply the cross-language veto the |
| 1106 | * way pass_calls.c / pass_parallel.c do. */ |
| 1107 | static cbm_resolution_t xl_resolve(const cbm_registry_t *r, CBMLanguage lang, const char *callee, |
| 1108 | const char *module_qn) { |
| 1109 | cbm_resolution_t res = cbm_registry_resolve(r, callee, module_qn, NULL, NULL, 0); |
| 1110 | if (cbm_registry_name_guess_vetoed(r, lang, &res)) { |
| 1111 | res = (cbm_resolution_t){0}; |
| 1112 | } |
| 1113 | return res; |
| 1114 | } |
| 1115 | |
| 1116 | TEST(name_guess_vetoed_across_languages) { |
| 1117 | cbm_registry_t *r = cbm_registry_new(); |
no test coverage detected