diff options
Diffstat (limited to 'test/SemaTemplate/instantiate-local-class.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-local-class.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-local-class.cpp b/test/SemaTemplate/instantiate-local-class.cpp index eaaae9b6ee..768eb2170a 100644 --- a/test/SemaTemplate/instantiate-local-class.cpp +++ b/test/SemaTemplate/instantiate-local-class.cpp @@ -16,8 +16,11 @@ namespace PR5764 { class X { template <typename T> void Bar() { + typedef T ValueType; class Y { - Y() {} + Y() { V = ValueType(); } + + ValueType V; }; Y y; |