Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/ctypes/test/
Dtest_simplesubclasses.py4 class MyInt(c_int): class
6 if type(other) != MyInt:
15 self.assertEqual(MyInt(3), MyInt(3))
16 self.assertNotEqual(MyInt(42), MyInt(43))
35 cb = CFUNCTYPE(None, MyInt)(func)
38 self.assertEqual(type(args[-1]), MyInt)
47 _fields_ = [("x", MyInt)]
49 self.assertEqual(X().x, MyInt())
52 s.x = MyInt(42)
54 self.assertEqual(s.x, MyInt(42))
/external/python/cpython3/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))
/external/clang/test/Index/
Dindex-refs.cpp4 typedef int MyInt; typedef
11 NS::MyInt NS::gx = EnumVal;
14 NS::MyInt x; in foo()
51 typedef int MyInt; typedef
Dindex-suppress-refs.m5 TYPEDEF(MyInt);
7 MyInt gx;
28 // CHECK-NEXT: [indexDeclaration]: kind: typedef | name: MyInt
/external/clang/test/Sema/
Duninit-variables.c199 typedef int MyInt; typedef
200 MyInt test26() { in test26()
201 MyInt x; // expected-note{{initialize the variable 'x' to silence this warning}} in test26()
/external/python/cpython2/Lib/test/
Dtest_abc.py190 class MyInt(int): class
192 self.assertTrue(issubclass(MyInt, A))
193 self.assertTrue(issubclass(MyInt, (A,)))
Dtest_cmath.py169 class MyInt(object): class
212 self.assertRaises(TypeError, f, MyInt())
Dpickletester.py1240 for c in (MyInt, MyLong, MyStr, MyTuple):
1602 class MyInt(int): class
1629 myclasses = [MyInt, MyLong, MyFloat,
Dtest_descr.py3571 class MyInt(int): class
3573 m = MyInt(42)
/external/python/cpython3/Lib/test/
Dtest_abc.py385 class MyInt(int): class
387 self.assertTrue(issubclass(MyInt, A))
388 self.assertTrue(issubclass(MyInt, (A,)))
Dtest_index.py61 class MyInt(int): class
65 my_int = MyInt(7)
Dtest_int.py419 class MyInt(int): class
427 my_int = MyInt(7)
Dtest_cmath.py223 class MyInt(object): class
264 self.assertRaises(TypeError, f, MyInt())
Dtest_statistics.py939 class MyInt(int): pass class
940 x = statistics._convert(Fraction(17), MyInt)
941 self.check_exact_equal(x, MyInt(17))
Dpickletester.py1674 for c in (MyInt, MyTuple):
2471 class MyInt(int): class
2501 myclasses = [MyInt, MyFloat,
Dtest_descr.py1050 class MyInt(int): class
1053 (1).__class__ = MyInt
3409 class MyInt(int): class
3411 m = MyInt(42)
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestProto3.cs3055 public long MyInt { property in Google.Protobuf.TestProtos.TestFieldOrderings
3094 if (MyInt != other.MyInt) return false; in Equals()
3103 if (MyInt != 0L) hash ^= MyInt.GetHashCode(); in GetHashCode()
3114 if (MyInt != 0L) { in WriteTo()
3116 output.WriteInt64(MyInt); in WriteTo()
3137 if (MyInt != 0L) { in CalculateSize()
3138 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt); in CalculateSize()
3156 if (other.MyInt != 0L) { in MergeFrom()
3157 MyInt = other.MyInt; in MergeFrom()
3178 MyInt = input.ReadInt64(); in MergeFrom()