Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,282 for main1 (0.06 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/cgo/internal/testcarchive/testdata/main3.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test os/signal.Notify and os/signal.Reset.
    // This is a lot like ../testcshared/main5.c.
    
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    #include <sched.h>
    #include <unistd.h>
    #include <pthread.h>
    
    #include "libgo3.h"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcshared/testdata/main5.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that a signal handler works in non-Go code when using
    // os/signal.Notify.
    // This is a lot like ../testcarchive/main3.c.
    
    #include <signal.h>
    #include <stdbool.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    #include <sched.h>
    #include <dlfcn.h>
    
    static void die(const char* msg) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcshared/testdata/main4.c

    // license that can be found in the LICENSE file.
    
    // Test that a signal handler that uses up stack space does not crash
    // if the signal is delivered to a thread running a goroutine.
    // This is a lot like ../testcarchive/main2.c.
    
    #include <setjmp.h>
    #include <signal.h>
    #include <stddef.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    #include <unistd.h>
    #include <sched.h>
    #include <time.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top