Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 761 for proper (0.17 sec)

  1. test/closure4.go

    // run
    
    // Copyright 2018 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.
    
    // Check that calling a nil func causes a proper panic.
    
    package main
    
    func main() {
    	defer func() {
    		err := recover()
    		if err == nil {
    			panic("panic expected")
    		}
    	}()
    
    	var f func()
    	f()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 14 09:19:38 UTC 2018
    - 364 bytes
    - Viewed (0)
  2. test/fixedbugs/issue22904.go

    // errorcheck
    
    // 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 22904: Make sure the compiler emits a proper error message about
    // invalid recursive types rather than crashing.
    
    package p
    
    type a struct{ b } // ERROR "invalid recursive type"
    type b struct{ a } // GCCGO_ERROR "invalid recursive type"
    
    var x interface{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:37:52 UTC 2020
    - 464 bytes
    - Viewed (0)
  3. src/html/template/examplefiles_test.go

    	defer os.RemoveAll(dir)
    
    	// pattern is the glob pattern used to find all the template files.
    	pattern := filepath.Join(dir, "*.tmpl")
    
    	// Here starts the example proper.
    	// T0.tmpl is the first name matched, so it becomes the starting template,
    	// the value returned by ParseGlob.
    	tmpl := template.Must(template.ParseGlob(pattern))
    
    	err := tmpl.Execute(os.Stdout, nil)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 7.5K bytes
    - Viewed (0)
  4. test/defernil.go

    // run
    
    // Copyright 2019 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.
    
    // Check that deferring a nil function causes a proper
    // panic when the deferred function is invoked (not
    // when the function is deferred).
    // See Issue #8047 and #34926.
    
    package main
    
    var x = 0
    
    func main() {
    	defer func() {
    		err := recover()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 16 00:05:37 UTC 2019
    - 563 bytes
    - Viewed (0)
  5. test/fixedbugs/issue23545.go

    // run
    
    // Copyright 2018 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 23545: gccgo didn't lower array comparison to
    // proper equality function in some case.
    
    package main
    
    func main() {
    	if a := Get(); a != dummyID(1234) {
    		panic("FAIL")
    	}
    }
    
    func dummyID(x int) [Size]interface{} {
    	var out [Size]interface{}
    	out[0] = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 10 01:20:45 UTC 2018
    - 557 bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/main/java/org/gradle/jvm/component/internal/JvmSoftwareComponentInternal.java

     *
     * <p>TODO: There is currently no public interface for this type of component, as the JVM component
     * infrastructure is still under construction. The main blocker for publicizing this component
     * is the lack of a proper variant API and support for automatically aggregating variants of owned features.</p>
     *
     * <p>TODO: Before publicizing this component, we also need to consider how component extensibility works.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 21:17:58 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. src/text/template/examplefiles_test.go

    	defer os.RemoveAll(dir)
    
    	// pattern is the glob pattern used to find all the template files.
    	pattern := filepath.Join(dir, "*.tmpl")
    
    	// Here starts the example proper.
    	// T0.tmpl is the first name matched, so it becomes the starting template,
    	// the value returned by ParseGlob.
    	tmpl := template.Must(template.ParseGlob(pattern))
    
    	err := tmpl.Execute(os.Stdout, nil)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/fmt_load_errors.txt

    package x
    -- exclude/x.go --
    // +build linux,!linux
    
    package x
    -- exclude/x_linux.go --
    // +build windows
    
    package x
    -- gofmt-dir/no-extension --
    package x
    -- empty.go --
    -- nopackage.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 09:17:34 UTC 2022
    - 775 bytes
    - Viewed (0)
  9. cmd/xl-storage_unix_test.go

    // returns file mode creation mask.
    func getUmask() int {
    	mask := syscall.Umask(0)
    	syscall.Umask(mask)
    	return mask
    }
    
    // Tests if the directory and file creations happen with proper umask.
    func TestIsValidUmaskVol(t *testing.T) {
    	tmpPath := t.TempDir()
    	testCases := []struct {
    		volName       string
    		expectedUmask int
    	}{
    		{"is-this-valid", getUmask()},
    	}
    	testCase := testCases[0]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  10. src/runtime/cgo/cgo.go

    #cgo netbsd LDFLAGS: -lpthread
    #cgo openbsd LDFLAGS: -lpthread
    #cgo aix LDFLAGS: -Wl,-berok
    #cgo solaris LDFLAGS: -lxnet
    #cgo solaris LDFLAGS: -lsocket
    
    // Use -fno-stack-protector to avoid problems locating the
    // proper support functions. See issues #52919, #54313, #58385.
    #cgo CFLAGS: -Wall -Werror -fno-stack-protector
    
    #cgo solaris CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
    
    */
    import "C"
    
    import "runtime/internal/sys"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 14:29:46 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top