diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-05-12 00:26:07 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-05-12 00:26:07 +0000 |
commit | a5301de60d7b02629aa14c8a94f8731efeb1d923 (patch) | |
tree | 5ff1dfaad4a6185df6354952ab35d0edd649154e /test | |
parent | d0702d69612e67de767cf60b0dbddcaf922199ee (diff) |
Merging r155608:
------------------------------------------------------------------------
r155608 | rsmith | 2012-04-25 20:16:45 -0700 (Wed, 25 Apr 2012) | 3 lines
PR12660: Don't crash when initializing a const reference from a braced init list
which creates a temporary by calling a constructor.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_31@156678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/SemaCXX/cxx0x-initializer-references.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-references.cpp b/test/SemaCXX/cxx0x-initializer-references.cpp index d8fdd5a5a0..c4e9c907a3 100644 --- a/test/SemaCXX/cxx0x-initializer-references.cpp +++ b/test/SemaCXX/cxx0x-initializer-references.cpp @@ -85,3 +85,8 @@ namespace PR12182 { f({1, 2}); } } + +namespace PR12660 { + const int &i { 1 }; + struct S { S(int); } const &s { 2 }; +} |