Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for 0x12_3456 (0.13 sec)

  1. test/convinline.go

    			}
    			fallthrough
    		case "int32":
    			inputs = append(inputs, "-0x8000_0000", "-0x7fff_ffff", "-0x12_3456", "0x12_3456", "0x7fff_ffff")
    			fallthrough
    		case "int16":
    			inputs = append(inputs, "-0x8000", "-0x7fff", "-0x1234", "0x1234", "0x7fff")
    			fallthrough
    		case "int8":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 13:46:05 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/literals.go

    // This file tests various representations of literals
    // and compares them with literals or constant expressions
    // of equal values.
    
    package literals
    
    func _() {
    	// 0-octals
    	assert(0_123 == 0123)
    	assert(0123_456 == 0123456)
    
    	// decimals
    	assert(1_234 == 1234)
    	assert(1_234_567 == 1234567)
    
    	// hexadecimals
    	assert(0X_0 == 0)
    	assert(0X_1234 == 0x1234)
    	assert(0X_CAFE_f00d == 0xcafef00d)
    
    	// octals
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. src/go/printer/testdata/go2numbers.norm

    package p
    
    const (
    	// 0-octals
    	_	= 0
    	_	= 0123
    	_	= 0123456
    
    	_	= 0_123
    	_	= 0123_456
    
    	// decimals
    	_	= 1
    	_	= 1234
    	_	= 1234567
    
    	_	= 1_234
    	_	= 1_234_567
    
    	// hexadecimals
    	_	= 0x0
    	_	= 0x1234
    	_	= 0xcafef00d
    
    	_	= 0x0
    	_	= 0x1234
    	_	= 0xCAFEf00d
    
    	_	= 0x_0
    	_	= 0x_1234
    	_	= 0x_CAFE_f00d
    
    	// octals
    	_	= 0o0
    	_	= 0o1234
    	_	= 0o01234567
    
    	_	= 0o0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 17 02:15:01 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  4. src/go/printer/testdata/go2numbers.input

    package p
    
    const (
    	// 0-octals
    	_ = 0
    	_ = 0123
    	_ = 0123456
    
    	_ = 0_123
    	_ = 0123_456
    
    	// decimals
    	_ = 1
    	_ = 1234
    	_ = 1234567
    
    	_ = 1_234
    	_ = 1_234_567
    
    	// hexadecimals
    	_ = 0x0
    	_ = 0x1234
    	_ = 0xcafef00d
    
    	_ = 0X0
    	_ = 0X1234
    	_ = 0XCAFEf00d
    
    	_ = 0X_0
    	_ = 0X_1234
    	_ = 0X_CAFE_f00d
    
    	// octals
    	_ = 0o0
    	_ = 0o1234
    	_ = 0o01234567
    
    	_ = 0O0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 21:54:06 UTC 2020
    - 2K bytes
    - Viewed (0)
  5. src/cmd/gofmt/testdata/go2numbers.golden

    package p
    
    const (
    	// 0-octals
    	_ = 0
    	_ = 0123
    	_ = 0123456
    
    	_ = 0_123
    	_ = 0123_456
    
    	// decimals
    	_ = 1
    	_ = 1234
    	_ = 1234567
    
    	_ = 1_234
    	_ = 1_234_567
    
    	// hexadecimals
    	_ = 0x0
    	_ = 0x1234
    	_ = 0xcafef00d
    
    	_ = 0x0
    	_ = 0x1234
    	_ = 0xCAFEf00d
    
    	_ = 0x_0
    	_ = 0x_1234
    	_ = 0x_CAFE_f00d
    
    	// octals
    	_ = 0o0
    	_ = 0o1234
    	_ = 0o01234567
    
    	_ = 0o0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 21 17:24:29 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/gofmt/testdata/go2numbers.input

    package p
    
    const (
    	// 0-octals
    	_ = 0
    	_ = 0123
    	_ = 0123456
    
    	_ = 0_123
    	_ = 0123_456
    
    	// decimals
    	_ = 1
    	_ = 1234
    	_ = 1234567
    
    	_ = 1_234
    	_ = 1_234_567
    
    	// hexadecimals
    	_ = 0x0
    	_ = 0x1234
    	_ = 0xcafef00d
    
    	_ = 0X0
    	_ = 0X1234
    	_ = 0XCAFEf00d
    
    	_ = 0X_0
    	_ = 0X_1234
    	_ = 0X_CAFE_f00d
    
    	// octals
    	_ = 0o0
    	_ = 0o1234
    	_ = 0o01234567
    
    	_ = 0O0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 21 17:24:29 UTC 2019
    - 2K bytes
    - Viewed (0)
  7. src/go/printer/testdata/go2numbers.golden

    package p
    
    const (
    	// 0-octals
    	_	= 0
    	_	= 0123
    	_	= 0123456
    
    	_	= 0_123
    	_	= 0123_456
    
    	// decimals
    	_	= 1
    	_	= 1234
    	_	= 1234567
    
    	_	= 1_234
    	_	= 1_234_567
    
    	// hexadecimals
    	_	= 0x0
    	_	= 0x1234
    	_	= 0xcafef00d
    
    	_	= 0X0
    	_	= 0X1234
    	_	= 0XCAFEf00d
    
    	_	= 0X_0
    	_	= 0X_1234
    	_	= 0X_CAFE_f00d
    
    	// octals
    	_	= 0o0
    	_	= 0o1234
    	_	= 0o01234567
    
    	_	= 0O0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 21:54:06 UTC 2020
    - 2K bytes
    - Viewed (0)
  8. src/strconv/atoi_test.go

    	{"7fffffffffffffff", 16, 1<<63 - 1, nil},
    
    	// underscores
    	{"-0x_1_2_3_4_5", 0, -0x12345, nil},
    	{"0x_1_2_3_4_5", 0, 0x12345, nil},
    	{"-_0x12345", 0, 0, ErrSyntax},
    	{"_-0x12345", 0, 0, ErrSyntax},
    	{"_0x12345", 0, 0, ErrSyntax},
    	{"0x__12345", 0, 0, ErrSyntax},
    	{"0x1__2345", 0, 0, ErrSyntax},
    	{"0x1234__5", 0, 0, ErrSyntax},
    	{"0x12345_", 0, 0, ErrSyntax},
    
    	{"-0_1_2_3_4_5", 0, -012345, nil}, // octal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 05:09:21 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  9. maven-core/src/test/resources-project-builder/xml-coalesce-text/pom.xml

    0         1         2         3         4         5         6  X
    0         1         2         3         4         5         6  X
    0         1         2         3         4         5         6  X
    0         1         2         3         4         5         6  X
    0         1         2         3         4         5         6  X
    0         1         2         3         4         5         6  X
    0         1         2         3         4         5         6  X
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sun Mar 29 19:02:56 UTC 2020
    - 34.5K bytes
    - Viewed (0)
  10. src/go/constant/value_test.go

    package constant
    
    import (
    	"fmt"
    	"go/token"
    	"math"
    	"math/big"
    	"strings"
    	"testing"
    )
    
    var intTests = []string{
    	// 0-octals
    	`0_123 = 0123`,
    	`0123_456 = 0123456`,
    
    	// decimals
    	`1_234 = 1234`,
    	`1_234_567 = 1234567`,
    
    	// hexadecimals
    	`0X_0 = 0`,
    	`0X_1234 = 0x1234`,
    	`0X_CAFE_f00d = 0xcafef00d`,
    
    	// octals
    	`0o0 = 0`,
    	`0o1234 = 01234`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
Back to top