Commit 6f959acc by Jonathan Wakely

Adjust pretty printer test for variant<T&>

	* testsuite/libstdc++-prettyprinters/cxx17.cc: Adjust test for
	variant<T&>.

From-SVN: r242449
parent 48aef8e2
2016-11-15 Jonathan Wakely <jwakely@redhat.com>
* testsuite/libstdc++-prettyprinters/cxx17.cc: Adjust test for
variant<T&>.
2016-11-15 Tim Shen <timshen@google.com> 2016-11-15 Tim Shen <timshen@google.com>
* include/std/variant: Remove variant<T&>, variant<void>, variant<> support * include/std/variant: Remove variant<T&>, variant<void>, variant<>
to rebase on the post-Issaquah design. support to rebase on the post-Issaquah design.
* testsuite/20_util/variant/compile.cc: Likewise. * testsuite/20_util/variant/compile.cc: Likewise.
2016-11-15 Matthias Klose <doko@ubuntu.com> 2016-11-15 Matthias Klose <doko@ubuntu.com>
......
...@@ -86,8 +86,8 @@ main() ...@@ -86,8 +86,8 @@ main()
// { dg-final { note-test v3 {std::variant<float, int, std::string_view> [index 1] = {3}} } } // { dg-final { note-test v3 {std::variant<float, int, std::string_view> [index 1] = {3}} } }
variant<float, int, string_view> v4{ str }; variant<float, int, string_view> v4{ str };
// { dg-final { note-test v4 {std::variant<float, int, std::string_view> [index 2] = {"string"}} } } // { dg-final { note-test v4 {std::variant<float, int, std::string_view> [index 2] = {"string"}} } }
variant<string_view&> vref{str}; variant<string_view> vref{str};
// { dg-final { note-test vref {std::variant<std::basic_string_view<char, std::char_traits<char> > &> [index 0] = {"string"}} } } // { dg-final { note-test vref {std::variant<std::string_view> [index 0] = {"string"}} } }
map<int, string_view> m{ {1, "one"} }; map<int, string_view> m{ {1, "one"} };
map<int, string_view>::node_type n0; map<int, string_view>::node_type n0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment