llvm-project/clang/test/CXX/temp
Fangrui Song 6b3351792c [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences
For a definition (of most linkage types), dso_local is set for ELF -fno-pic/-fpie
and COFF, but not for Mach-O.  This nuance causes unneeded binary format differences.

This patch replaces (function) `define ` with `define{{.*}} `,
(variable/constant/alias) `= ` with `={{.*}} `, or inserts appropriate `{{.*}} `
if there is an explicit linkage.

* Clang will set dso_local for Mach-O, which is currently implied by TargetMachine.cpp. This will make COFF/Mach-O and executable ELF similar.
* Eventually I hope we can make dso_local the textual LLVM IR default (write explicit "dso_preemptable" when applicable) and -fpic ELF will be similar to everything else. This patch helps move toward that goal.
2020-12-30 20:52:01 -08:00
..
concept [Concept] Associated Constraints Infrastructure 2019-10-15 18:44:06 +00:00
temp.arg [c++20] For P0732R2: permit class template argument deduction for non-type template parameters. 2020-10-21 15:03:22 -07:00
temp.constr [AST][RecoveryAST] Preserve the type by default for recovery expression. 2020-08-24 14:28:28 +02:00
temp.decls Fix crash on init-capture packs where the type of the initializer is non-dependent. 2019-12-19 15:20:10 -08:00
temp.deduct [Concepts] Do not check constraints if not all template arguments have been deduced 2020-02-12 16:02:12 +02:00
temp.deduct.guide [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
temp.explicit [Concepts] Deprecate -fconcepts-ts, enable Concepts under -std=c++2a 2020-01-24 00:48:59 +02:00
temp.fct.spec Consistent spelling in diagnostics: {l,r}value instead of {l,r}-value 2020-11-15 18:05:11 +01:00
temp.names
temp.param For P0732R2, P1907R1: ensure that template parameter objects don't refer 2020-10-24 22:11:43 -07:00
temp.pre PR46729: Reject explicit and partial specializations with C linkage. 2020-07-29 17:44:32 -07:00
temp.res DR1413 and part of P1815R2: Minor improvements to Clang's determination 2020-12-15 14:53:26 -08:00
temp.spec [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
temp.type
p3.cpp Improve recovery from invalid template-ids. 2020-03-27 17:11:04 -07:00