/third_party/rust/crates/bitflags/tests/compile-fail/non_integer_base/ |
D | all_defined.rs | 27 struct MyInt(u8); struct 29 impl BitAnd for MyInt { implementation 33 MyInt(self.0 & other.0) in bitand() 37 impl BitOr for MyInt { implementation 41 MyInt(self.0 | other.0) in bitor() 45 impl BitXor for MyInt { implementation 49 MyInt(self.0 ^ other.0) in bitxor() 53 impl BitAndAssign for MyInt { implementation 59 impl BitOrAssign for MyInt { implementation 65 impl BitXorAssign for MyInt { implementation [all …]
|
D | all_defined.stderr.beta | 5 116 | | struct Flags128: MyInt { 6 117 | | const A = MyInt(0b0000_0001u8); 7 118 | | const B = MyInt(0b0000_0010u8); 8 119 | | const C = MyInt(0b0000_0100u8); 11 | |_^ expected struct `MyInt`, found integer 19 116 | | struct Flags128: MyInt { 20 117 | | const A = MyInt(0b0000_0001u8); 21 118 | | const B = MyInt(0b0000_0010u8); 22 119 | | const C = MyInt(0b0000_0100u8); 25 | |_^ expected struct `MyInt`, found integer
|
D | all_missing.rs | 3 struct MyInt(u8); struct 6 struct Flags128: MyInt { 7 const A = MyInt(0b0000_0001); 8 const B = MyInt(0b0000_0010); 9 const C = MyInt(0b0000_0100);
|
D | all_missing.stderr.beta | 5 6 | | struct Flags128: MyInt { 6 7 | | const A = MyInt(0b0000_0001); 7 8 | | const B = MyInt(0b0000_0010); 8 9 | | const C = MyInt(0b0000_0100);
|
/third_party/python/Lib/ctypes/test/ |
D | test_simplesubclasses.py | 4 class MyInt(c_int): class 6 if type(other) != MyInt: 13 self.assertEqual(MyInt(3), MyInt(3)) 14 self.assertNotEqual(MyInt(42), MyInt(43)) 33 cb = CFUNCTYPE(None, MyInt)(func) 36 self.assertEqual(type(args[-1]), MyInt) 45 _fields_ = [("x", MyInt)] 47 self.assertEqual(X().x, MyInt()) 50 s.x = MyInt(42) 52 self.assertEqual(s.x, MyInt(42))
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/ |
D | class_with_typedef.hpp | 6 typedef int MyInt; typedef in C 8 MyInt c; 9 MyInt* ptr; 10 MyInt arr[10]; 14 void method(MyInt c); 15 void methodRef(MyInt& c); 22 MyInt* ptr;
|
/third_party/PyYAML/tests/data/ |
D | construct-python-object.code | 22 MyInt(3),
|
D | construct-python-object.data | 21 - !!python/object/new:test_constructor.MyInt [3]
|
/third_party/PyYAML/tests/lib/ |
D | test_constructor.py | 19 NewArgs, NewArgsWithState, Reduce, ReduceWithState, Slots, MyInt, MyList, MyDict, \ 200 class MyInt(int): class
|
/third_party/python/Lib/test/ |
D | test_index.py | 61 class MyInt(int): class 65 my_int = MyInt(7)
|
D | test_abc.py | 407 class MyInt(int): class 409 self.assertTrue(issubclass(MyInt, A)) 410 self.assertTrue(issubclass(MyInt, (A,)))
|
D | test_complex.py | 472 class MyInt: class 476 self.assertRaises(TypeError, complex, MyInt()) 477 self.assertRaises(TypeError, complex, 123, MyInt())
|
D | test_cmath.py | 226 class MyInt: class 264 self.assertRaises(TypeError, f, MyInt())
|
D | test_int.py | 445 class MyInt(int): class 453 my_int = MyInt(7)
|
D | test_enum.py | 670 class MyInt(int): class 674 class Huh(MyStr, MyInt, Enum): 2107 class MyInt(int): class 2115 class MyIntEnum(HexMixin, MyInt, enum.Enum): 2120 self.assertTrue(isinstance(Foo.TEST, MyInt))
|
D | test_float.py | 238 class MyInt: class 242 self.assertRaises(TypeError, float, MyInt())
|
D | test_statistics.py | 964 class MyInt(int): pass class 965 x = statistics._convert(Fraction(17), MyInt) 966 self.check_exact_equal(x, MyInt(17))
|
D | pickletester.py | 2118 for c in (MyInt, MyTuple): 3243 class MyInt(int): class 3273 myclasses = [MyInt, MyFloat,
|
D | test_descr.py | 1069 class MyInt(int): class 1072 (1).__class__ = MyInt 3547 class MyInt(int): class 3549 m = MyInt(42)
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ |
D | UnittestProto3.cs | 4589 public long MyInt { property in Google.Protobuf.TestProtos.TestFieldOrderings 4632 if (MyInt != other.MyInt) return false; in Equals() 4642 if (MyInt != 0L) hash ^= MyInt.GetHashCode(); in GetHashCode() 4661 if (MyInt != 0L) { in WriteTo() 4663 output.WriteInt64(MyInt); in WriteTo() 4686 if (MyInt != 0L) { in IBufferMessage.InternalWriteTo() 4688 output.WriteInt64(MyInt); in IBufferMessage.InternalWriteTo() 4714 if (MyInt != 0L) { in CalculateSize() 4715 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt); in CalculateSize() 4737 if (other.MyInt != 0L) { in MergeFrom() [all …]
|
D | Unittest.cs | 14595 public long MyInt { property in Google.Protobuf.TestProtos.Proto2.TestFieldOrderings 14662 if (MyInt != other.MyInt) return false; in Equals() 14675 if (HasMyInt) hash ^= MyInt.GetHashCode(); in GetHashCode() 14699 output.WriteInt64(MyInt); in WriteTo() 14727 output.WriteInt64(MyInt); in IBufferMessage.InternalWriteTo() 14757 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt); in CalculateSize() 14783 MyInt = other.MyInt; in MergeFrom() 14812 MyInt = input.ReadInt64(); in MergeFrom() 14847 MyInt = input.ReadInt64(); in IBufferMessage.InternalMergeFrom()
|