Lines Matching refs:ImmutableSet
1 //===----------- ImmutableSetTest.cpp - ImmutableSet unit tests ------------===//
11 #include "llvm/ADT/ImmutableSet.h"
38 ImmutableSet<int>::Factory f;
44 ImmutableSet<int> S = f.getEmptySet();
52 ImmutableSet<int>::Factory f;
53 ImmutableSet<int> S = f.getEmptySet();
55 ImmutableSet<int> S2 = f.add(S, 3);
65 ImmutableSet<int> S3 = f.add(S, 2);
80 ImmutableSet<int>::Factory f;
81 ImmutableSet<int> S = f.getEmptySet();
83 ImmutableSet<int> S2 = f.add(f.add(f.add(S, 3), 4), 5);
84 ImmutableSet<int> S3 = f.add(f.add(f.add(S2, 9), 20), 43);
85 ImmutableSet<int> S4 = f.add(S2, 9);
118 ImmutableSet<int>::Factory f;
119 ImmutableSet<int> S = f.getEmptySet();
121 ImmutableSet<int> S2 = f.add(f.add(S, 4), 5);
122 ImmutableSet<int> S3 = f.add(S2, 3);
123 ImmutableSet<int> S4 = f.remove(S3, 3);
141 ImmutableSet<char>::Factory f;
142 ImmutableSet<char> S = f.getEmptySet();
144 ImmutableSet<char> S2 = f.add(f.add(f.add(S, 'a'), 'e'), 'i');
145 ImmutableSet<char> S3 = f.add(f.add(S2, 'o'), 'u');
153 ImmutableSet<char>::Factory f;
154 ImmutableSet<char> S = f.getEmptySet();
156 ImmutableSet<char> S2 = f.add(f.add(f.add(S, 'b'), 'c'), 'd');
157 ImmutableSet<char> S3 = f.add(f.add(f.add(S2, 'f'), 'g'), 'h');
176 ImmutableSet<long>::Factory f;
177 ImmutableSet<long> S = f.getEmptySet();
179 ImmutableSet<long> S2 = f.add(f.add(f.add(S, 0), 1), 2);
180 ImmutableSet<long> S3 = f.add(f.add(f.add(S2, 3), 4), 5);
183 for (ImmutableSet<long>::iterator I = S.begin(), E = S.end(); I != E; ++I) {
189 for (ImmutableSet<long>::iterator I = S2.begin(), E = S2.end(); I != E; ++I) {
195 for (ImmutableSet<long>::iterator I = S3.begin(), E = S3.end(); I != E; I++) {