Migrate the roundtrip tests to work similar to the llgdb tests

I'm not sure if there's a way to make this a bit more general - the
property that matters is that there's /some/ itanium ABI target the
tests can use to compile - not link or run in this case. But this seems
sufficient for the llgdb tests, so it should be sufficient (though
perhaps not necessary) for this roundtrip test.
This commit is contained in:
David Blaikie 2021-10-28 18:38:05 -07:00
parent fcd6d56602
commit 8f46ddb184
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,3 @@
# In MSVC mode DWARF isn't produced & is needed for these tests
if 'native' not in config.available_features or config.is_msvc:
config.unsupported = True

View File

@ -1,6 +1,5 @@
// RUN: %clang %s -c -o - -g -Xclang -gsimple-template-names=mangled -Xclang -debug-forward-template-params \
// RUN: %clang %target_itanium_abi_host_triple %s -c -o - -g -Xclang -gsimple-template-names=mangled -Xclang -debug-forward-template-params \
// RUN: | llvm-dwarfdump --verify -
// REQUIRES: native
template<typename ...Ts>
struct t1 {
};