diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-22 10:50:08 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-22 10:50:08 +0000 |
commit | 33deb35535aebe81bed0eaf5c14f3032276a086e (patch) | |
tree | 1a6b786fd11d1fd4d8c083f85419739e12012c4b /test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp | |
parent | 76517426dc8bf7734c07eefc35171a6bfdba1a2b (diff) |
Fix parsing and processing initializer lists in return statements and as direct member initializers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp')
-rw-r--r-- | test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp b/test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp index 6c299c7d8a..23b51515f9 100644 --- a/test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp +++ b/test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp @@ -130,6 +130,7 @@ void dangle() { struct haslist1 { std::initializer_list<int> il = {1, 2, 3}; // expected-warning{{at the end of the constructor}} + std::initializer_list<int> jl{1, 2, 3}; // expected-warning{{at the end of the constructor}} haslist1(); }; |