- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 624 for IOTA (0.04 sec)
-
test/iota.go
const ( a = 1 b = iota << a c = iota << b d ) const ( i = (a << iota) + (b * iota) j k l ) const ( m = iota == 0 n ) const ( p = float32(iota) q r ) const ( s = string(iota + 'a') t ) const ( abit, amask = 1 << iota, 1<<iota - 1 bbit, bmask = 1 << iota, 1<<iota - 1 cbit, cmask = 1 << iota, 1<<iota - 1 ) func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 07:47:26 UTC 2012 - 1.6K bytes - Viewed (0) -
src/go/doc/testdata/examples/iota.go
package foo_test const ( a = iota b ) const ( c = 3 d = 4 ) const ( e = iota f ) // The example refers to only one of the constants in the iota group, but we // must keep all of them because of the iota. The second group of constants can // be trimmed. The third has an iota, but is unused, so it can be eliminated. func Example() { _ = b _ = d
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 23:13:45 UTC 2022 - 596 bytes - Viewed (0) -
src/go/doc/testdata/examples/iota.golden
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 23:13:45 UTC 2022 - 158 bytes - Viewed (0) -
test/fixedbugs/issue22344.go
_ = unsafe.Sizeof(func() { type _ [iota]byte }) _ = unsafe.Sizeof(func() { func() int { return iota }() }) ) const ( zero = iota one = iota _ = unsafe.Sizeof(func() { var x [iota]int // [2]int var y [iota]int // [2]int const ( Zero = iota One Two _ = unsafe.Sizeof([iota - 1]int{} == x) // assert types are equal
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 12 06:46:57 UTC 2019 - 2.2K bytes - Viewed (0) -
src/go/doc/testdata/blank.1.golden
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 18:01:14 UTC 2017 - 1001 bytes - Viewed (0) -
src/internal/types/testdata/check/const0.go
type _ [iota /* ERROR "iota outside constant decl" */ ]byte var _ = iota /* ERROR "iota outside constant decl" */ func _() { _ = iota /* ERROR "iota outside constant decl" */ const _ = iota _ = iota /* ERROR "iota outside constant decl" */ } func _() { iota := 123 const x = iota /* ERROR "is not constant" */ var y = iota _ = y }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 9.2K bytes - Viewed (0) -
src/internal/types/testdata/check/constdecl.go
const ( c = len([1 - iota]int{}) d e // ERROR "invalid array length" f // ERROR "invalid array length" ) // Test that identifiers in implicit (omitted) RHS // expressions of constant declarations are resolved // in the correct context; see issues #49157, #53585. const X = 2 func _() { const ( A = iota // 0 iota = iota // 1 B // 1 (iota is declared locally on prev. line)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 3.7K bytes - Viewed (0) -
test/const8.go
package main const X = 2 func main() { const ( A = iota // 0 iota = iota // 1 B // 1 (iota is declared locally on prev. line) C // 1 ) if A != 0 || B != 1 || C != 1 { println("got", A, B, C, "want 0 1 1") panic("FAILED") } const ( X = X + X Y Z = iota ) if X != 4 || Y != 8 || Z != 1 { println("got", X, Y, Z, "want 4 8 1")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 28 18:11:31 UTC 2022 - 727 bytes - Viewed (0) -
test/fixedbugs/bug362.go
// issue 1662 // iota inside var package main var ( a = iota // ERROR "undefined: iota|iota is only defined in const|cannot use iota outside constant declaration" b = iota // ERROR "undefined: iota|iota is only defined in const|cannot use iota outside constant declaration" c = iota // ERROR "undefined: iota|iota is only defined in const|cannot use iota outside constant declaration"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 14 21:28:48 UTC 2020 - 570 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc
return false; } } return true; } // It returns "true" when Value $iota is obtained from the following mlir code: // // $iota = "mhlo.iota"(){iota_dimension = $dimensions[0]}, // // where $dimensions must have size 1 and iota can have rank>=1. // It usually used for matching rank 1 iota since the iotaOp will be folded to // IotaOp + BroadCastInDimOp except for the case when result shape is rank 1.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.6K bytes - Viewed (0)