Skip to content

[libc++] [test] Rename set/map scary.pass.cpp compile-only tests #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[libc++] [test] Rename set/map scary.pass.cpp compile-only tests
  • Loading branch information
Quuxplusone committed Mar 12, 2023
commit 1da3702eafa514f8a879e54fd15b84230fcdf7a3
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@

// <map>

// class map class multimap
// class map
// class multimap

// Extension: SCARY/N2913 iterator compatibility between map and multimap

#include <map>

#include "test_macros.h"

int main(int, char**)
{
typedef std::map<int, int> M1;
typedef std::multimap<int, int> M2;
M2::iterator i;
M1::iterator j = i;
((void)j);

return 0;
void test() {
typedef std::map<int, int> M1;
typedef std::multimap<int, int> M2;
ASSERT_SAME_TYPE(M1::iterator, M2::iterator);
ASSERT_SAME_TYPE(M1::const_iterator, M2::const_iterator);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@

// <set>

// class set class multiset
// class set
// class multiset

// Extension: SCARY/N2913 iterator compatibility between set and multiset

#include <set>

#include "test_macros.h"

int main(int, char**)
{
typedef std::set<int> M1;
typedef std::multiset<int> M2;
M2::iterator i;
M1::iterator j = i;
((void)j);

return 0;
void test() {
typedef std::set<int> M1;
typedef std::multiset<int> M2;
ASSERT_SAME_TYPE(M1::iterator, M2::iterator);
ASSERT_SAME_TYPE(M1::const_iterator, M2::const_iterator);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@

// <unordered_map>

// class unordered_map class unordered_multimap
// class unordered_map
// class unordered_multimap

// Extension: SCARY/N2913 iterator compatibility between unordered_map and unordered_multimap

#include <unordered_map>

#include "test_macros.h"

int main(int, char**)
{
typedef std::unordered_map<int, int> M1;
typedef std::unordered_multimap<int, int> M2;
M2::iterator i;
M1::iterator j = i;
((void)j);

return 0;
void test() {
typedef std::unordered_map<int, int> M1;
typedef std::unordered_multimap<int, int> M2;
ASSERT_SAME_TYPE(M1::iterator, M2::iterator);
ASSERT_SAME_TYPE(M1::const_iterator, M2::const_iterator);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@

// <unordered_set>

// class unordered_set class unordered_multiset
// class unordered_set
// class unordered_multiset

// Extension: SCARY/N2913 iterator compatibility between unordered_set and unordered_multiset

#include <unordered_set>

#include "test_macros.h"

int main(int, char**)
{
typedef std::unordered_set<int> M1;
typedef std::unordered_multiset<int> M2;
M2::iterator i;
M1::iterator j = i;
((void)j);

return 0;
void test() {
typedef std::unordered_set<int> M1;
typedef std::unordered_multiset<int> M2;
ASSERT_SAME_TYPE(M1::iterator, M2::iterator);
ASSERT_SAME_TYPE(M1::const_iterator, M2::const_iterator);
}