diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-03-08 23:11:46 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-03-08 23:11:46 +0000 |
commit | 66f53d2dc0724eab66d3349e9b81f2959a8d5aba (patch) | |
tree | 724031ae3b843bb390221375e1231f41de1d63bc /test/CodeGenCXX/debug-info-composite-cc.cpp | |
parent | a46adf1f4629cd0dbc30c77ee6a109e28ac5a311 (diff) |
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
Diffstat (limited to 'test/CodeGenCXX/debug-info-composite-cc.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-composite-cc.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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; |