]> granicus.if.org Git - clang/commit
[DebugInfo] Add test cases for FlagNonTrivial
authorAaron Smith <aaron.smith@microsoft.com>
Tue, 12 Mar 2019 02:00:39 +0000 (02:00 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Tue, 12 Mar 2019 02:00:39 +0000 (02:00 +0000)
commit56866cce9d65da85c2f90778aeb3bdab5ea49de8
tree62e42d8fc34371baa800046e2f6ed2b6fb601ef7
parentb14ae1ec4afb53b94937d4cc0109ef01ea73ea44
[DebugInfo] Add test cases for FlagNonTrivial

Summary:
This is a test case to go with D44406 which added FlagNonTrivial to mark that a C++ record is non-trivial to support CodeView debug emission.

While it looks like FlagTypePassByValue can imply triviality and FlagTypePassByReference can imply non-triviality that is not true. Some non-trivial cases use a combination of FlagNonTrivial and FlagTypePassByValue instead of FlagTypePassByReference. See the test cases and D44406 for discussion.

Reviewers: dblaikie, rnk, zturner

Reviewed By: dblaikie

Subscribers: jdoerfert, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59010

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355890 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGenCXX/debug-info-composite-triviality.cpp [new file with mode: 0644]