diff options
Diffstat (limited to 'test/SemaCXX/cxx0x-class.cpp')
-rw-r--r-- | test/SemaCXX/cxx0x-class.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx0x-class.cpp b/test/SemaCXX/cxx0x-class.cpp index 8afb0fd6f3c0..c0e80daaba5d 100644 --- a/test/SemaCXX/cxx0x-class.cpp +++ b/test/SemaCXX/cxx0x-class.cpp @@ -45,3 +45,11 @@ class DefaultMemberInitSelf { DefaultMemberTemplate<int> t = {}; int *p = &t.n; }; + +namespace composed_templates { + // Regression test -- obtaining the type from composed templates should not + // require out-of-line definition. + template <typename T> struct Zero { static const typename T::type value = 0; }; + struct Integer { using type = int; }; + template struct Zero<Integer>; +} |