Add test cases for SECTION UNION defining multiple identical labels (#1349)

Exported labels should fail to link; non-exported ones should be okay.
This commit is contained in:
Sylvie
2024-03-13 13:34:44 -04:00
committed by GitHub
parent 188fcfdd64
commit 68f6ab5c32
12 changed files with 87 additions and 4 deletions

16
test/link/unmangle.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include <stdio.h>
/**
* MinGW mangles path names before passing them as command-line arguments.
* Some RGBLINK warning/error messages include those mangled paths on Windows.
* We need to see those mangled paths in test.sh to replace them with placeholders.
* This tool simply echoes each argument, which will be mangled iff they are paths.
* (For example, the "/tmp/foo" will be unmangled to something like
* "C:/Users/RUNNER~1/AppData/Local/Temp/foo".)
*/
int main(int argc, char *argv[]) {
for (int i = 1; i < argc; i++)
puts(argv[i]);
return 0;
}