Commit Graph

14 Commits

Author SHA1 Message Date
Anthony Latsis
4591933389 Gardening: Migrate test suite to GH issues: multifile 2022-09-01 06:44:42 +03:00
Evan Wilde
c18b50e96d Fixing flag truncations in llvm-readobj tests
It looks like commit 46580d43fc70d migrated the flags from llvm::cl to
OptTable. As a result, the flag behaviour changed. Commit
e29e30b1397f3e50f3487491f8a77ae08e4e3471 from 2019 went through and
changed the llvm tests to consistently use the double-dash for long
options so it was undetected.

With this info, I'm just going to go ahead and fix these tests cases to
get them going again.
2021-08-17 12:28:49 -07:00
Saleem Abdulrasool
d16689278c multifile: make protocol-conformance-member pass on Windows
PE/COFF does not include a symbol table in the generated executable
binary.  Instead, use `public` to expose the getter, and then use
`-coff-exports` from `llvm-readobj` to get the symbols that are
exported.  Fortunately, the same tool can be used to list the symbol
table contents for ELF and MachO binary.  This allows us to share the
test across all the targets.
2019-03-26 10:46:44 -07:00
Saleem Abdulrasool
afd0b69a8c test: get most of the multifile tests working on Windows
We cannot link against the DSO (dll) on Windows and instead link against
the import library.  Let the driver understand this and use the standard
linking technique.  Adjust the name of the emitted files accordingly and
use the `%target-library-name` macro more freely.

Two tests remain:
- multifile.protocol-conformance-member
    The getter is synthesized by not exported so `llvm-nm` is unable to
    see it
- multifile.nested_types
    Windows uses the singleton strategy, so the emitted full type
    metadata does not have the reference to the value witness table for
    Void
2018-12-25 11:26:53 -08:00
Erik Eckstein
39bb14b094 change mangling prefix from $S to $s
This is the final ABI mangling prefix

rdar://problem/38471478
2018-09-19 13:55:11 -07:00
Erik Eckstein
cd3d50a5d9 ABI: Change the mangling prefix from _T0 to $S 2018-01-06 13:55:59 -08:00
Alex Hoppen
1c7e289b96 [Mangling] Adjust subscript mangling to not include "subscript"
Change the mangling of accessors to have a variable or subscript node
as their only child node, while subscript nodes no longer contain a decl
name.
2017-09-10 19:44:07 +02:00
Dmitri Gribenko
486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00
Erik Eckstein
c4a11f4c92 tests: remove the now unused option -new-mangling-for-tests 2017-03-22 11:28:43 -07:00
Erik Eckstein
1d3724666f tests: convert about 400 tests to the new mangling by using the -new-mangling-for-tests option
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
2017-01-24 15:27:45 -08:00
Dmitri Gribenko
55864d10cb Tests: use 'mkdir -p' 2016-09-02 21:36:45 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Saleem Abdulrasool
f221499bcc test: use llvm tools
Rather than relying on the system to provide ar and nm, use the LLVM equivalent
tools instead.  Since the build is already dependent on llvm and its tools, this
just ensures that the full set is self-contained.  NFC.
2016-06-03 10:17:58 -07:00
Jordan Rose
74e035efd8 [test] Add a test for SR-156. (#2262) 2016-04-21 10:36:29 -07:00