diff options
author | Anders Carlsson <andersca@mac.com> | 2009-04-17 02:34:54 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-04-17 02:34:54 +0000 |
commit | 072abefcddea5fb65e435cea60921b3c21c1279d (patch) | |
tree | ccbbe619641b2fb59dd63d8bf4667eee5b349308 /test/SemaCXX/trivial-constructor.cpp | |
parent | 27ae53665f8b00fe4ba21da0fa79a4ce6e0b6cd5 (diff) |
Add support for the __has_trivial_destructor type trait.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/trivial-constructor.cpp')
-rw-r--r-- | test/SemaCXX/trivial-constructor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaCXX/trivial-constructor.cpp b/test/SemaCXX/trivial-constructor.cpp index 0c4231ef19..8fc14d9c82 100644 --- a/test/SemaCXX/trivial-constructor.cpp +++ b/test/SemaCXX/trivial-constructor.cpp @@ -32,3 +32,7 @@ struct T7 { T4 t4; }; static_assert(!__has_trivial_constructor(T7), "t4 does not have a trivial constructor!"); + +struct T8 : T2 { +}; +static_assert(!__has_trivial_constructor(T8), "The base class T2 does not have a trivial constructor!"); |