Home
last modified time | relevance | path

Searched refs:Enum2 (Results 1 – 25 of 683) sorted by relevance

12345678910>>...28

/dports/lang/rust/rustc-1.58.1-src/src/test/ui/lint/dead-code/
H A Dlint-dead-code-5.rs9 enum Enum2 { enum
21 impl Enum2 { implementation
22 fn new_variant8() -> Enum2 { in new_variant8()
26 fn new_variant9() -> Enum2 { in new_variant9()
30 fn new_variant10() -> Enum2 { in new_variant10()
46 let x = Enum2::Variant3(true); in main()
47 let _ = Enum2::new_variant8(); in main()
48 let _ = Enum2::new_variant9(); in main()
49 let _ = Enum2::new_variant10(); in main()
/dports/editors/libreoffice/libreoffice-7.2.6.2/compilerplugins/clang/test/
H A Dexpressionalwayszero.cxx23 enum class Enum2 { enum
29 template<> struct typed_flags<Enum2> : is_typed_flags<Enum2, 0x3> {};
39 auto v3 = Enum2::ONE; in main()
40 …auto v4 = v3 & Enum2::ZERO; // expected-error {{expression always evaluates to zero, lhs=unknown r… in main()
43 auto v5 = Enum2::ONE; in main()
44 …v5 &= Enum2::ZERO; // expected-error {{expression always evaluates to zero, lhs=unknown rhs=0 [lop… in main()
/dports/editors/libreoffice6/libreoffice-6.4.7.2/compilerplugins/clang/test/
H A Dexpressionalwayszero.cxx23 enum class Enum2 { enum
29 template<> struct typed_flags<Enum2> : is_typed_flags<Enum2, 0x3> {};
39 auto v3 = Enum2::ONE; in main()
40 …auto v4 = v3 & Enum2::ZERO; // expected-error {{expression always evaluates to zero, lhs=unknown r… in main()
43 auto v5 = Enum2::ONE; in main()
44 …v5 &= Enum2::ZERO; // expected-error {{expression always evaluates to zero, lhs=unknown rhs=0 [lop… in main()
/dports/lang/rust/rustc-1.58.1-src/src/test/incremental/hashes/
H A Denum_constructors.rs83 pub enum Enum2 { enum
114 let _ = Enum2::Struct { in change_constructor_path_struct_like()
126 let _ = Enum2::Struct { in change_constructor_variant_struct_like()
139 let _ = Enum2::Struct2 { in change_constructor_variant_struct_like()
152 use super::Enum2 as TheEnum;
178 use super::Enum2;
188 pub fn function() -> Enum2 { in function()
233 let _ = Enum2::Tuple(0, 1, 2); in change_constructor_path_tuple_like()
265 use super::Enum2 as TheEnum;
288 use super::Enum2;
[all …]
/dports/editors/libreoffice/libreoffice-7.2.6.2/codemaker/test/javamaker/
H A DTest.java31 import test.codemaker.javamaker.Enum2;
104 assure(Enum2.VALUE0_value == 0); in testEnum2()
108 assure(Enum2.getDefault() == Enum2.VALUE0); in testEnum2()
110 assure(Enum2.fromInt(0) == Enum2.VALUE0); in testEnum2()
111 assure(Enum2.fromInt(1) == Enum2.VALUE1); in testEnum2()
112 assure(Enum2.fromInt(2) == Enum2.VALUE2); in testEnum2()
114 assure(Enum2.fromInt(4) == Enum2.VALUE4); in testEnum2()
143 assure(s.p15 == Enum2.VALUE0); in testEmptyStruct2()
161 assure(s.t15 == Enum2.VALUE0); in testEmptyStruct2()
259 assure(s.p15 == Enum2.VALUE4); in testFullStruct2()
[all …]
/dports/editors/libreoffice6/libreoffice-6.4.7.2/codemaker/test/javamaker/
H A DTest.java31 import test.codemaker.javamaker.Enum2;
104 assure(Enum2.VALUE0_value == 0); in testEnum2()
108 assure(Enum2.getDefault() == Enum2.VALUE0); in testEnum2()
110 assure(Enum2.fromInt(0) == Enum2.VALUE0); in testEnum2()
111 assure(Enum2.fromInt(1) == Enum2.VALUE1); in testEnum2()
112 assure(Enum2.fromInt(2) == Enum2.VALUE2); in testEnum2()
114 assure(Enum2.fromInt(4) == Enum2.VALUE4); in testEnum2()
143 assure(s.p15 == Enum2.VALUE0); in testEmptyStruct2()
161 assure(s.t15 == Enum2.VALUE0); in testEmptyStruct2()
259 assure(s.p15 == Enum2.VALUE4); in testFullStruct2()
[all …]
/dports/lang/cython-devel/cython-2b1e743/tests/run/
H A Dcpp_scoped_enums.pyx21 enum class Enum2 {
27 cdef enum class Enum2:
84 cdef Enum2 z, w
86 z = Enum2.Item1
87 w = Enum2.Item2
90 z == Enum2.Item1,
91 w == Enum2.Item2,
92 z == Enum2.Item2,
93 w == Enum2.Item1
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/stability-attribute/
H A Dgenerics-default-stability.rs202 let _ = Enum2::Some(1); // ok in main()
203 let _: Enum2 = Enum2::Some(1); // ok in main()
204 let _: Enum2<usize> = Enum2::Some(1); // ok in main()
207 let _: Enum2 = ENUM2; // ok in main()
208 let _: Enum2<usize> = ENUM2; // ok in main()
209 let _: Enum2<isize> = Enum2::Some(0); // ok in main()
210 if let Enum2::Some(x) = ENUM2 {let _ = x;} // ok in main()
211 if let Enum2::Some(x) = ENUM2 {let _: usize = x;} // ok in main()
212 if let Enum2::Some(x) = ENUM2 {let _ = x + 1;} // ok in main()
213 if let Enum2::Some(x) = ENUM2 {let _ = x + 1usize;} // ok in main()
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/consts/const-eval/
H A Dub-enum.rs38 enum Enum2 { enum
42 const BAD_ENUM2: Enum2 = unsafe { mem::transmute(0usize) };
44 const BAD_ENUM2_PTR: Enum2 = unsafe { mem::transmute(&0) };
47 const BAD_ENUM2_WRAPPED: Wrap<Enum2> = unsafe { mem::transmute(&0) };
56 const BAD_ENUM2_UNDEF : Enum2 = unsafe { MaybeUninit { uninit: () }.init };
60 const BAD_ENUM2_OPTION_PTR: Option<Enum2> = unsafe { mem::transmute(&0) };
/dports/net/gscloud/gscloud-0.11.0/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/net/grpcurl/grpcurl-1.8.5/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/net-mgmt/bind_exporter/bind_exporter-0.4.0/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/net/rclone/rclone-1.57.0/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go72 type Enum2 int32 type
75 Enum2_UNO Enum2 = 1
88 func (x Enum2) Enum() *Enum2 {
89 p := new(Enum2)
94 func (x Enum2) String() string {
102 func (Enum2) Type() protoreflect.EnumType {
106 func (x Enum2) Number() protoreflect.EnumNumber {
111 func (x *Enum2) UnmarshalJSON(b []byte) error {
116 *x = Enum2(num)
121 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/security/lego/lego-4.5.3/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/devel/git-town/git-town-7.6.0/vendor/google.golang.org/protobuf/protobuf-go-1.21.0/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/security/vault/vault-1.8.2/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/net/evans/evans-0.9.1/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/net/drive/drive-0.4.0/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go72 type Enum2 int32 type
75 Enum2_UNO Enum2 = 1
88 func (x Enum2) Enum() *Enum2 {
89 p := new(Enum2)
94 func (x Enum2) String() string {
102 func (Enum2) Type() protoreflect.EnumType {
106 func (x Enum2) Number() protoreflect.EnumNumber {
111 func (x *Enum2) UnmarshalJSON(b []byte) error {
116 *x = Enum2(num)
121 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/databases/redis_exporter/redis_exporter-1.33.0/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/dns/prometheus-dnssec-exporter/prometheus-dnssec-exporter-caa7d89/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go72 type Enum2 int32 type
75 Enum2_UNO Enum2 = 1
88 func (x Enum2) Enum() *Enum2 {
89 p := new(Enum2)
94 func (x Enum2) String() string {
102 func (Enum2) Type() protoreflect.EnumType {
106 func (x Enum2) Number() protoreflect.EnumNumber {
111 func (x *Enum2) UnmarshalJSON(b []byte) error {
116 *x = Enum2(num)
121 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/workhorse/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/net/rospo/rospo-0.7.1/vendor/google.golang.org/protobuf/protobuf-go-1.26.0/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/www/gohugo/hugo-0.91.2/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go72 type Enum2 int32 type
75 Enum2_UNO Enum2 = 1
88 func (x Enum2) Enum() *Enum2 {
89 p := new(Enum2)
94 func (x Enum2) String() string {
102 func (Enum2) Type() protoreflect.EnumType {
106 func (x Enum2) Number() protoreflect.EnumNumber {
111 func (x *Enum2) UnmarshalJSON(b []byte) error {
116 *x = Enum2(num)
121 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/sysutils/helmfile/helmfile-0.138.7/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]
/dports/www/pomerium/pomerium-0.8.3/vendor/google.golang.org/protobuf/internal/testprotos/registry/
H A Dtest.pb.go73 type Enum2 int32 type
76 Enum2_UNO Enum2 = 1
89 func (x Enum2) Enum() *Enum2 {
90 p := new(Enum2)
95 func (x Enum2) String() string {
103 func (Enum2) Type() protoreflect.EnumType {
107 func (x Enum2) Number() protoreflect.EnumNumber {
112 func (x *Enum2) UnmarshalJSON(b []byte) error {
117 *x = Enum2(num)
122 func (Enum2) EnumDescriptor() ([]byte, []int) {
[all …]

12345678910>>...28