- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 624 for IOTA (0.04 sec)
-
test/fixedbugs/issue52438.go
// license that can be found in the LICENSE file. package main const c1 = iota const c2 = iota const c3 = 0 + iota<<8 const c4 = 1 + iota<<8 func main() { if c1 != 0 { panic(c1) } if c2 != 0 { panic(c2) } if c3 != 0 { panic(c3) } if c4 != 1 { panic(c4) } const c5 = iota const c6 = iota if c5 != 0 { panic(c5) } if c6 != 0 { panic(c6) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 19 23:20:21 UTC 2022 - 489 bytes - Viewed (0) -
src/go/doc/testdata/blank.go
const ( zero os.FileMode = 0 M1 M2 M3 ) // Package constants. const ( _ int = iota I1 I2 ) // Unexported constants counting from blank iota. // See issue 9615. const ( _ = iota one = iota + 1 ) // Blanks not in doc output: // S has a padding field. type S struct { H uint32 _ uint8 A uint8 } func _() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 18:01:14 UTC 2017 - 1.1K bytes - Viewed (0) -
test/fixedbugs/bug186.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:49:30 UTC 2012 - 280 bytes - Viewed (0) -
test/rename.go
rune + string + true + uint + uint8 + uint16 + uint32 + uint64 + uintptr + iota if n != NUM*(NUM-1)/2 { fmt.Println("BUG: wrong n", n, NUM*(NUM-1)/2) runtime.Breakpoint() // panic is inaccessible } } const ( // cannot use iota here, because iota = 38 below append = 1 bool = 2 byte = 3 complex = 4 complex64 = 5 complex128 = 6
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
test/fixedbugs/issue8183.go
// license that can be found in the LICENSE file. // Tests correct reporting of line numbers for errors involving iota, // Issue #8183. package foo const ( ok = byte(iota + 253) bad barn bard // ERROR "constant 256 overflows byte|integer constant overflow|cannot convert" ) const ( c = len([1 - iota]int{}) d e // ERROR "array bound must be non-negative|negative array bound|invalid array length"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 622 bytes - Viewed (0) -
test/fixedbugs/issue22822.go
len := int(2) println(len(slice)) // ERROR "cannot call non-function len .type int., declared at LINE-1|expected function|cannot call non-function len" const iota = 1 println(iota(slice)) // ERROR "cannot call non-function iota .type int., declared at LINE-1|expected function|cannot call non-function iota"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 639 bytes - Viewed (0) -
src/cmd/compile/internal/noder/codes.go
const ( assignBlank codeAssign = iota assignDef assignExpr ) // A codeDecl distinguishes among declaration encodings. type codeDecl int func (c codeDecl) Marker() pkgbits.SyncMarker { return pkgbits.SyncDecl } func (c codeDecl) Value() int { return int(c) } const ( declEnd codeDecl = iota declFunc declMethod declVar declOther
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 15 20:07:46 UTC 2023 - 1.9K bytes - Viewed (0) -
src/syscall/net_fake.go
package syscall const ( AF_UNSPEC = iota AF_UNIX AF_INET AF_INET6 ) const ( SOCK_STREAM = 1 + iota SOCK_DGRAM SOCK_RAW SOCK_SEQPACKET ) const ( IPPROTO_IP = 0 IPPROTO_IPV4 = 4 IPPROTO_IPV6 = 0x29 IPPROTO_TCP = 6 IPPROTO_UDP = 0x11 ) const ( SOMAXCONN = 0x80 ) const ( _ = iota IPV6_V6ONLY SO_ERROR )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 883 bytes - Viewed (0) -
src/go/doc/testdata/issue16153.go
package issue16153 // original test case const ( x1 uint8 = 255 Y1 = 256 ) // variations const ( x2 uint8 = 255 Y2 ) const ( X3 int64 = iota Y3 = 1 ) const ( X4 int64 = iota Y4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 18:01:14 UTC 2017 - 363 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.h
namespace mlir { namespace odml { // The following 5 different forms of mhlo::iota will be matched: // 1. IotaOp. // 2. IotaOp + BroadCastInDim. // 3. IotaOp + Reshape. // 4. Constant (folded Iota) + BroadCastInDim. // 5. Constant (folded result). // Moreover, the dimensions has to match the iota_dimension. bool MatchIota(DenseIntElementsAttr dimensions, Value iota); } // namespace odml } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 20:53:17 UTC 2024 - 1.4K bytes - Viewed (0)