diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-02-15 20:13:52 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-02-15 20:13:52 +0000 |
commit | fa8df7db88eae528ccaabea6f323165f087bf88a (patch) | |
tree | 665aebf4f9220af02f3de20ea70bdc369b1ac3bc /libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/copy.pass.cpp | |
parent | 040a3a28f1581e99afecfa462f38a70b7007df06 (diff) | |
download | bcm5719-llvm-fa8df7db88eae528ccaabea6f323165f087bf88a.tar.gz bcm5719-llvm-fa8df7db88eae528ccaabea6f323165f087bf88a.zip |
tuple was accidentally lacking a valid copy assignment operator. It went undetected because I had failed to test assigning from a const lvalue. This fixes http://llvm.org/bugs/show_bug.cgi?id=11921
llvm-svn: 150613
Diffstat (limited to 'libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/copy.pass.cpp')
-rw-r--r-- | libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/copy.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/copy.pass.cpp b/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/copy.pass.cpp index 0f0d1fb9e16..7de3ef61c6d 100644 --- a/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/copy.pass.cpp +++ b/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/copy.pass.cpp @@ -39,7 +39,7 @@ int main() } { typedef std::tuple<int, char, std::string> T; - T t0(2, 'a', "some text"); + const T t0(2, 'a', "some text"); T t = t0; assert(std::get<0>(t) == 2); assert(std::get<1>(t) == 'a'); |