Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 659 for errorCheck (0.13 sec)

  1. test/fixedbugs/issue20245.go

    // errorcheck -d=panic
    
    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 20245: panic while formatting an error message
    
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 05 18:46:16 UTC 2021
    - 301 bytes
    - Viewed (0)
  2. test/embedvers.go

    // errorcheck -lang=go1.15
    
    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    import _ "embed"
    
    //go:embed x.txt // ERROR "go:embed requires go1.16 or later"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 19 20:07:52 UTC 2021
    - 292 bytes
    - Viewed (0)
  3. test/fixedbugs/bug186.go

    // errorcheck
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    const X = iota
    
    func f(x int) { }
    
    func main() {
    	f(X);
    	f(iota);	// ERROR "iota"
    	f(X);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 280 bytes
    - Viewed (0)
  4. test/fixedbugs/issue48301.go

    // errorcheck
    
    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Don't crash while reporting the error.
    
    package p
    
    func _() {
    	type T = T // ERROR "invalid recursive type: T refers to itself"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 14:21:33 UTC 2022
    - 308 bytes
    - Viewed (0)
  5. test/fixedbugs/issue4429.go

    // errorcheck
    
    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    type a struct {
      a int
    }
    
    func main() {
      av := a{};
      _ = *a(av); // ERROR "invalid indirect|expected pointer|cannot indirect"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:59:57 UTC 2020
    - 317 bytes
    - Viewed (0)
  6. test/fixedbugs/bug385_32.go

    // errorcheck
    
    //go:build 386 || amd64p32 || arm
    
    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 2444
    
    package main
    func main() {
    	var arr [1000200030]int   // GC_ERROR "type .* too large"
    	arr_bkup := arr
    	_ = arr_bkup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 344 bytes
    - Viewed (0)
  7. test/embedfunc.go

    // errorcheck
    
    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    import _ "embed"
    
    func f() {
    	//go:embed x.txt // ERROR "go:embed cannot apply to var inside func"
    	var x string
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 19 20:07:52 UTC 2021
    - 308 bytes
    - Viewed (0)
  8. test/fixedbugs/bug126.go

    // errorcheck
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // same const identifier declared twice should not be accepted
    const none = 0  // GCCGO_ERROR "previous"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 339 bytes
    - Viewed (0)
  9. test/opt_branchlikely.go

    // errorcheck -0 -d=ssa/likelyadjust/debug=1,ssa/insert_resched_checks/off
    // rescheduling check insertion is turned off because the inserted conditional branches perturb the errorcheck
    
    //go:build amd64
    
    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that branches have some prediction properties.
    package foo
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. test/fixedbugs/bug169.go

    // errorcheck
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 05 00:40:38 UTC 2020
    - 225 bytes
    - Viewed (0)
Back to top