Home
last modified time | relevance | path

Searched refs:MyInt (Results 1 – 21 of 21) sorted by relevance

/third_party/rust/crates/bitflags/tests/compile-fail/non_integer_base/
Dall_defined.rs27 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 …]
Dall_defined.stderr.beta5 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
Dall_missing.rs3 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);
Dall_missing.stderr.beta5 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/
Dtest_simplesubclasses.py4 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/
Dclass_with_typedef.hpp6 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/
Dconstruct-python-object.code22 MyInt(3),
Dconstruct-python-object.data21 - !!python/object/new:test_constructor.MyInt [3]
/third_party/PyYAML/tests/lib/
Dtest_constructor.py19 NewArgs, NewArgsWithState, Reduce, ReduceWithState, Slots, MyInt, MyList, MyDict, \
200 class MyInt(int): class
/third_party/python/Lib/test/
Dtest_index.py61 class MyInt(int): class
65 my_int = MyInt(7)
Dtest_abc.py407 class MyInt(int): class
409 self.assertTrue(issubclass(MyInt, A))
410 self.assertTrue(issubclass(MyInt, (A,)))
Dtest_complex.py472 class MyInt: class
476 self.assertRaises(TypeError, complex, MyInt())
477 self.assertRaises(TypeError, complex, 123, MyInt())
Dtest_cmath.py226 class MyInt: class
264 self.assertRaises(TypeError, f, MyInt())
Dtest_int.py445 class MyInt(int): class
453 my_int = MyInt(7)
Dtest_enum.py670 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))
Dtest_float.py238 class MyInt: class
242 self.assertRaises(TypeError, float, MyInt())
Dtest_statistics.py964 class MyInt(int): pass class
965 x = statistics._convert(Fraction(17), MyInt)
966 self.check_exact_equal(x, MyInt(17))
Dpickletester.py2118 for c in (MyInt, MyTuple):
3243 class MyInt(int): class
3273 myclasses = [MyInt, MyFloat,
Dtest_descr.py1069 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/
DUnittestProto3.cs4589 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 …]
DUnittest.cs14595 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()