cling/test
Axel Naumann 2b1af22926 In failed lookup, unload only decls produced, not existing fwd decl:
Before, pre-existing fwd decls of specializations got unloaded.

OTOH, any decl produced during (failed) template instantiation must
also be unloaded; see #6331. Those are easiest identified by unloading
the whole (failed) transaction.

```
error: no member named 'value' in 'std::__and_<std::is_copy_assignable<std::__cxx11::basic_string<char> >, std::is_copy_assignable<Inner<int> > >'
                       is_copy_assignable<_T2>>::value,
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^
```

which is due to the first decl being invalid (as `Inner<int>` does not have a deinition and a `static_assert` /usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/type_traits:1093 being triggered), then not unloaded, and then picked up again where we *do* have the definition for `Inner<int>`.

Add test for templt spec lookup vs unloading.
2021-03-18 19:59:03 +01:00
..
Autoloading Remove fwddecl files; RUN: often fails. 2020-08-12 09:14:07 +02:00
CodeGeneration Fixed CUDA mode for Clang/LLVM 9 upgrade 2021-02-25 20:44:19 +01:00
CodeUnloading Help test find its parts: 2021-03-16 09:59:03 +01:00
CUDADeviceCode Fixed CUDA mode for Clang/LLVM 9 upgrade 2021-02-25 20:44:19 +01:00
Driver Fixed CUDA mode for Clang/LLVM 9 upgrade 2021-02-25 20:44:19 +01:00
ErrorRecovery Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
Extensions Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
Interfaces Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
LibraryCall Add CLING_EXPORT macro. 2016-12-12 12:44:09 +01:00
Lookup In failed lookup, unload only decls produced, not existing fwd decl: 2021-03-18 19:59:03 +01:00
MultipleInterpreters Add cling output streams to cling/Utils/Output.h 2016-12-19 13:59:11 +01:00
NullDeref Remove .rawInput from a variety of tests to test unwrapped function input. 2016-09-05 12:44:13 +02:00
Plugins Allow plugins to handle custom pragmas. 2018-10-08 21:44:55 +02:00
Pragmas Fix expected diags in test/Pragmas/load.C: 2021-03-16 09:59:03 +01:00
Prompt Check for the expected diagnostics. 2021-02-25 20:44:17 +01:00
Recursion Reset function sections before JITting 2021-02-10 15:18:14 +01:00
SourceCall Remove .rawInput from a variety of tests to test unwrapped function input. 2016-09-05 12:44:13 +02:00
Utils Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
CMakeLists.txt Import updated lit config: 2021-02-25 20:44:18 +01:00
lit.cfg Bring vanilla-cling lit feature back: 2021-03-16 09:59:04 +01:00
lit.site.cfg.in Import updated lit config: 2021-02-25 20:44:18 +01:00