diff options
Diffstat (limited to 'test/PCH/cxx-member-init.cpp')
-rw-r--r-- | test/PCH/cxx-member-init.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/PCH/cxx-member-init.cpp b/test/PCH/cxx-member-init.cpp index 20594d5..78fd744 100644 --- a/test/PCH/cxx-member-init.cpp +++ b/test/PCH/cxx-member-init.cpp @@ -13,6 +13,15 @@ struct S { S *that = this; }; template<typename T> struct X { T t {0}; }; + +struct v_t { }; + +struct m_t +{ + struct { v_t v; }; + m_t() { } +}; + #endif #ifdef SOURCE @@ -20,6 +29,11 @@ S s; struct E { explicit E(int); }; X<E> x; + +m_t *test() { + return new m_t; +} + #elif HEADER #undef HEADER #define SOURCE |