tests: add tests for is_dll_import externs

- tests/standalone/extern wasn't running its test step
- add compile error tests for thread local / dll import @extern in a comptime scope
This commit is contained in:
kcbanner
2024-10-20 18:42:38 -04:00
parent b87fa93500
commit 7edd69d8aa
5 changed files with 46 additions and 7 deletions

View File

@@ -2676,8 +2676,8 @@ pub const Key = union(enum) {
asBytes(&e.ty) ++ asBytes(&e.lib_name) ++
asBytes(&e.is_const) ++ asBytes(&e.is_threadlocal) ++
asBytes(&e.is_weak_linkage) ++ asBytes(&e.alignment) ++
asBytes(&e.is_dll_import) ++ asBytes(&e.alignment) ++
asBytes(&e.@"addrspace") ++ asBytes(&e.zir_index)),
asBytes(&e.is_dll_import) ++ asBytes(&e.@"addrspace") ++
asBytes(&e.zir_index)),
};
}