aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/trivial-constructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/trivial-constructor.cpp')
-rw-r--r--test/SemaCXX/trivial-constructor.cpp4
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!");