- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 4,183 for switch2 (0.43 sec)
-
test/typeswitch.go
} } // boolean switch (has had bugs in past; worth writing down) switch { case true: assert(true, "switch 2 bool") default: assert(false, "switch 2 unknown") } switch true { case true: assert(true, "switch 3 bool") default: assert(false, "switch 3 unknown") } switch false { case false: assert(true, "switch 4 bool") default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:48:19 UTC 2012 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/legalize_tfg_with_control_flow.mlir
%LoopCond, %ctl_6 = LoopCond(%Less) name("while/LoopCond") : (tensor<*xi1>) -> (tensor<*xi1>) %Switch:2, %ctl_7 = Switch(%Merge#0, %LoopCond) name("while/Switch") {T = i32, _class = ["loc:@while/Merge"]} : (tensor<*xi32>, tensor<*xi1>) -> (tensor<*xi32>, tensor<*xi32>) %Identity, %ctl_8 = Identity(%Switch#1) name("while/Identity") {T = i32} : (tensor<*xi32>) -> (tensor<*xi32>)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 06 18:31:38 UTC 2022 - 2.1K bytes - Viewed (0) -
test/fixedbugs/bug128.go
package main func main() { switch { // empty switch is allowed according to syntax // unclear why it shouldn't be allowed } switch tag := 0; tag { // empty switch is allowed according to syntax // unclear why it shouldn't be allowed } } /* uetli:~/Source/go1/test/bugs gri$ 6g bug127.go bug127.go:5: switch statement must have case labels bug127.go:9: switch statement must have case labels
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 576 bytes - Viewed (0) -
pkg/client/conditions/conditions.go
func PodRunning(event watch.Event) (bool, error) { switch event.Type { case watch.Deleted: return false, errors.NewNotFound(schema.GroupResource{Resource: "pods"}, "") } switch t := event.Object.(type) { case *v1.Pod: switch t.Status.Phase { case v1.PodRunning: return true, nil case v1.PodFailed, v1.PodSucceeded: return false, ErrPodCompleted
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 16 13:43:36 UTC 2023 - 2K bytes - Viewed (0) -
test/fixedbugs/issue13261.go
type T struct{} func main() { _ = &T{} _ = &(T{}) _ = &((T{})) _ = &struct{}{} _ = &(struct{}{}) _ = &((struct{}{})) switch (&T{}) {} switch &(T{}) {} switch &((T{})) {} switch &struct{}{} {} switch &(struct{}{}) {} switch &((struct{}{})) {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 520 bytes - Viewed (0) -
src/vendor/golang.org/x/net/nettest/nettest.go
ss := strings.Split(network, ":") switch ss[0] { case "ip+nopriv": // This is an internal network name for testing on the // package net of the standard library. switch runtime.GOOS { case "android", "fuchsia", "hurd", "ios", "js", "nacl", "plan9", "wasip1", "windows": return false } case "ip", "ip4", "ip6": switch runtime.GOOS {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.5K bytes - Viewed (0) -
test/fixedbugs/issue14006.go
goto labelname labelname: } func f() { var x int switch x { case 1: 2: // ERROR "unexpected :|expected .*;.* or .*}.* or newline|value computed is not used" case 2: } switch x { case 1: 2: ; // ERROR "unexpected :|expected .*;.* or .*}.* or newline|value computed is not used" case 2: } var y string switch y { case "foo":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 10 18:34:40 UTC 2020 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/fallthrough.go
fallthrough // ERROR cannot fallthrough final case in switch } fallthrough // ERROR fallthrough statement out of place if true { fallthrough // ERROR fallthrough statement out of place } for { fallthrough // ERROR fallthrough statement out of place } var t any switch t.(type) { case int: fallthrough // ERROR cannot fallthrough in type switch }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Jun 26 00:21:29 UTC 2022 - 946 bytes - Viewed (0) -
src/internal/cpu/cpu_arm64.go
} func parseARM64SystemRegisters(isar0 uint64) { // ID_AA64ISAR0_EL1 switch extractBits(isar0, 4, 7) { case 1: ARM64.HasAES = true case 2: ARM64.HasAES = true ARM64.HasPMULL = true } switch extractBits(isar0, 8, 11) { case 1: ARM64.HasSHA1 = true } switch extractBits(isar0, 12, 15) { case 1: ARM64.HasSHA2 = true case 2: ARM64.HasSHA2 = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 25 14:08:20 UTC 2023 - 1.6K bytes - Viewed (0) -
test/fixedbugs/issue19679.go
// Used to crash when a type switch was present in dead code // in an inlineable function. package p func Then() { var i interface{} if false { switch i.(type) { } } } func Else() { var i interface{} if true { _ = i } else { switch i.(type) { } } } func Switch() { var i interface{} switch 5 { case 3: switch i.(type) { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 24 17:21:05 UTC 2017 - 536 bytes - Viewed (0)