diff options
author | David Blaikie <dblaikie@gmail.com> | 2022-04-07 23:59:19 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2022-04-08 00:00:46 +0000 |
commit | 1cee3d9db77b2c62a03efe1cce45f627dcbe6457 (patch) | |
tree | b39f9531c8895be003fae022999139fcc3faff1b /cross-project-tests | |
parent | 0713053e4a3f08fc0a8408400ee5c4d20a188765 (diff) | |
download | llvm-1cee3d9db77b2c62a03efe1cce45f627dcbe6457.zip llvm-1cee3d9db77b2c62a03efe1cce45f627dcbe6457.tar.gz llvm-1cee3d9db77b2c62a03efe1cce45f627dcbe6457.tar.bz2 |
DebugInfo: Consider the type of NTTP when simplifying template names
Since the NTTP may need to be cast to the type when rebuilding the name,
check that the type can be rebuilt when determining whether a template
name can be simplified.
Diffstat (limited to 'cross-project-tests')
-rw-r--r-- | cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp b/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp index 9bc14f8..b68d4e8 100644 --- a/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp +++ b/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp @@ -179,6 +179,10 @@ struct t12 { t11<LocalEnum, LocalEnum1> v1; }; +template<decltype(ns::AnonEnum1)> +void f10() { +} + int main() { struct { } A; auto L = []{}; @@ -327,6 +331,7 @@ int main() { f1<decltype(fcc)>(); int fnrt() __attribute__((noreturn)); f1<decltype(fnrt)>(); + f10<ns::AnonEnum1>(); } void t8::mem() { struct t7 { }; |