From: Adrian Prantl Date: Thu, 8 Mar 2018 23:11:46 +0000 (+0000) Subject: Add a debug info testcase for the trvial_abi attribute. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66f53d2dc0724eab66d3349e9b81f2959a8d5aba;p=clang Add a debug info testcase for the trvial_abi attribute. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/debug-info-composite-cc.cpp b/test/CodeGenCXX/debug-info-composite-cc.cpp index 2f09116121..d4d4046105 100644 --- a/test/CodeGenCXX/debug-info-composite-cc.cpp +++ b/test/CodeGenCXX/debug-info-composite-cc.cpp @@ -38,3 +38,13 @@ struct Complex { Complex(Complex &Copy) : i(Copy.i) {}; int i; } complex; + +// This type is manually marked as trivial_abi. +// CHECK-DAG: !DICompositeType({{.*}}, name: "Marked",{{.*}}flags: DIFlagTypePassByValue +struct __attribute__((trivial_abi)) Marked { + int *p; + Marked(); + ~Marked(); + Marked(const Marked &) noexcept; + Marked &operator=(const Marked &); +} marked;