Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,301 for main1 (0.05 sec)

  1. src/cmd/cgo/internal/testcshared/testdata/main1.c

        return 1;
      }
      return 0;
    }
    
    // Tests libgo.so to export the following functions.
    //   int8_t DidInitRun() // returns true
    //   int8_t DidMainRun() // returns true
    //   int32_t FromPkg() // returns 1024
    int main(int argc, char** argv) {
      void* handle = dlopen(argv[1], RTLD_LAZY | RTLD_GLOBAL);
      if (!handle) {
        fprintf(stderr, "ERROR: failed to open the shared library: %s\n",
    		    dlerror());
        return 2;
      }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/main1.go

    // 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 main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 249 bytes
    - Viewed (0)
  3. test/fixedbugs/issue19275.go

    //go:noinline
    func f(x *byte, m map[string]*bool) {
    	if err := g(x, *m["hello"]); err != nil { // this was miscompiled
    		return
    	}
    }
    
    func main2() {
    	m := make(map[string]*bool)
    	x := false
    	m["hello"] = &x
    	b := byte(17)
    	f(&b, m)
    }
    
    func main() {
    	main2()
    	main1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 25 04:53:23 UTC 2017
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/dupLoad_test.go

    			if x&0xff00 != y&0xff00 {
    				t.Errorf("x=%x y=%x\n", x, y)
    				done <- false
    				return
    			}
    		}
    		done <- true
    	}()
    	<-done
    	<-done
    }
    
    func TestDupLoad(t *testing.T) {
    	main1(t)
    	main2(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/functional-if-ops.pbtxt

          }
        }
      }
      experimental_debug_info {
      }
    }
    node {
      name: "main"
      op: "_Retval"
      input: "StatefulIf"
      attr {
        key: "T"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "index"
        value {
          i: 0
        }
      }
    }
    node {
      name: "main1"
      op: "_Retval"
      input: "StatelessIf"
      attr {
        key: "T"
        value {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 15 19:42:47 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/functional-while-ops.pbtxt

          }
        }
      }
      experimental_debug_info {
      }
    }
    node {
      name: "main"
      op: "_Retval"
      input: "StatefulWhile:1"
      attr {
        key: "T"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "index"
        value {
          i: 0
        }
      }
    }
    node {
      name: "main1"
      op: "_Retval"
      input: "StatelessWhile:1"
      attr {
        key: "T"
        value {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 15 19:42:47 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/end2end/if_op.pbtxt

          }
        }
      }
      experimental_debug_info {
      }
    }
    node {
      name: "main"
      op: "_Retval"
      input: "StatefulIf"
      attr {
        key: "T"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "index"
        value {
          i: 0
        }
      }
    }
    node {
      name: "main1"
      op: "_Retval"
      input: "StatelessIf"
      attr {
        key: "T"
        value {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 16 15:29:56 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testcshared/cshared_test.go

    	if GOOS == "darwin" || GOOS == "ios" {
    		linkFlags = ""
    	}
    
    	runCC(t, "-o", cmd, "main2.c", linkFlags, libname)
    
    	defer os.Remove(libname)
    	defer os.Remove(bin)
    
    	out := runExe(t, []string{"LD_LIBRARY_PATH=."}, bin)
    
    	if strings.TrimSpace(out) != "PASS" {
    		t.Error(out)
    	}
    }
    
    // test3: tests main.main is exported on android.
    func TestMainExportedOnAndroid(t *testing.T) {
    	globalSkip(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  9. src/cmd/go/go_test.go

    	tg.tempFile("src/main1/main.go", "package main\nimport _ \"p2\"\nfunc main() {}\n")
    
    	tg.run("list", "-f={{.Target}}", "p1")
    	p1 := strings.TrimSpace(tg.getStdout())
    	tg.run("list", "-f={{.Target}}", "p2")
    	p2 := strings.TrimSpace(tg.getStdout())
    	tg.run("list", "-f={{.Target}}", "main1")
    	main1 := strings.TrimSpace(tg.getStdout())
    
    	tg.run("install", "main1")
    
    	tg.mustExist(main1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		ccArgs = append(cc, "-o", exe, "-nopie", "main5.c", "libgo2.a")
    		out, err = exec.Command(ccArgs[0], ccArgs[1:]...).CombinedOutput()
    		t.Logf("%v\n%s", ccArgs, out)
    	}
    
    	// Don't use either -no-pie or -nopie
    	if err != nil && bytes.Contains(out, []byte("unrecognized")) {
    		ccArgs = append(cc, "-o", exe, "main5.c", "libgo2.a")
    		out, err = exec.Command(ccArgs[0], ccArgs[1:]...).CombinedOutput()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
Back to top