summaryrefslogtreecommitdiff
path: root/cross-project-tests
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2022-03-24 18:31:48 +0000
committerDavid Blaikie <dblaikie@gmail.com>2022-03-24 18:53:14 +0000
commit7b498beef03ae07bb98796461a957af836074b92 (patch)
tree27f40198164ea851720c55ea8968d3cd3a2c4721 /cross-project-tests
parent0bfa1ab025e33662960363d2cddd4254eb609cf4 (diff)
downloadllvm-7b498beef03ae07bb98796461a957af836074b92.tar.gz
DebugInfo: Classify noreturn function types as non-reconstructible
This information isn't preserved in the DWARF description of function types (though probably should be - it's preserved on the function declarations/definitions themselves through the DW_AT_noreturn attribute - but we should move or also include that in the subroutine type itself too - but for now, with it not being there, the DWARF is lossy and can't be reconstructed)
Diffstat (limited to 'cross-project-tests')
-rw-r--r--cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp2
1 files changed, 2 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 5ecc3bc7fc14..5b1afcb29cc7 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
@@ -325,6 +325,8 @@ int main() {
f1<int t1<>::*>();
void fcc() __attribute__((swiftcall));
f1<decltype(fcc)>();
+ int fnrt() __attribute__((noreturn));
+ f1<decltype(fnrt)>();
}
void t8::mem() {
struct t7 { };