@@ -25,7 +25,7 @@ TEST(Constraints, ScalarValues) {
2525 TypeConstraints float_only = FLOAT_TYPES;
2626 TypeConstraints int_only = INT_TYPES;
2727
28- TypeConstraints any = TypeConstraints::all ();
28+ TypeConstraints any = TypeConstraints::all_non_void ();
2929 TypeConstraints none;
3030
3131 PointerType void_ptr_type{QualifiedType (ScalarType::Void)};
@@ -85,7 +85,7 @@ TEST(Constraints, TaggedTypes) {
8585 EXPECT_THAT (test_struct.allows_non_void_pointer (), IsFalse ());
8686 EXPECT_THAT (test_struct.allows_void_pointer (), IsFalse ());
8787
88- TypeConstraints any = TypeConstraints::all ();
88+ TypeConstraints any = TypeConstraints::all_non_void ();
8989 TypeConstraints none;
9090
9191 EXPECT_THAT (any.allows_tagged_types (), IsTrue ());
@@ -159,7 +159,7 @@ TEST(Constraints, PointerTypes) {
159159 // void types :(
160160 EXPECT_THAT (void_constraints.allows_any_of (ScalarType::Void), IsFalse ());
161161
162- TypeConstraints any = TypeConstraints::all ();
162+ TypeConstraints any = TypeConstraints::all_non_void ();
163163 TypeConstraints none;
164164
165165 EXPECT_THAT (any.allows_type (const_int_ptr), IsTrue ());
@@ -176,7 +176,7 @@ TEST(Constraints, EnumTypes) {
176176 EnumType unscoped_enum (" UnscopedEnum" , false );
177177 EnumType specific_enum (" SpecificEnum" , true );
178178
179- TypeConstraints any = TypeConstraints::all ();
179+ TypeConstraints any = TypeConstraints::all_non_void ();
180180 TypeConstraints none;
181181 TypeConstraints bool_ctx = TypeConstraints::all_in_bool_ctx ();
182182 TypeConstraints only_specific = TypeConstraints (specific_enum);
@@ -217,7 +217,7 @@ TEST(Constraints, ArrayTypes) {
217217 ArrayType array_of_ptrs = ArrayType (int_ptr, 3 );
218218 PointerType ptr_to_array = PointerType (QualifiedType (array_of_three));
219219
220- TypeConstraints any = TypeConstraints::all ();
220+ TypeConstraints any = TypeConstraints::all_non_void ();
221221 EXPECT_THAT (any.allows_type (array_of_three), IsTrue ());
222222 EXPECT_THAT (any.allows_type (array_of_four), IsTrue ());
223223 EXPECT_THAT (any.allows_type (array2d), IsTrue ());
0 commit comments