[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)
commite8475f78e2634d5d348d7ad746efc1e6526e72f5
tree1b510d4a53349e6131c3c93c359553513e4f6ea7
parent3f5ce18658f0b6cc01853a02aede777d190ee52d
[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

llvm-svn: 355890
clang/test/CodeGenCXX/debug-info-composite-triviality.cpp [new file with mode: 0644]