Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,225 for main1 (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/documentation/docs/src/snippets/dependencyManagement/managingTransitiveDependencies-excludeForConfiguration/groovy/src/main/java/Main.java

    import org.apache.commons.beanutils.PropertyUtils;
    
    public class Main {
        public static void main(String[] args) throws Exception {
            Object person = new Person();
            PropertyUtils.setSimpleProperty(person, "name", "Bart Simpson");
            PropertyUtils.setSimpleProperty(person, "age", 38);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 313 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/dependencyManagement/managingTransitiveDependencies-excludeForDependency/kotlin/src/main/java/Main.java

    import org.apache.commons.beanutils.PropertyUtils;
    
    public class Main {
        public static void main(String[] args) throws Exception {
            Object person = new Person();
            PropertyUtils.setSimpleProperty(person, "name", "Bart Simpson");
            PropertyUtils.setSimpleProperty(person, "age", 38);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 313 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/java/application/kotlin/src/main/java/org/gradle/sample/Main.java

    package org.gradle.sample;
    
    public class Main {
        public static void main(String[] args) {
            if (System.getProperty("greeting.language").equals("en")) {
                System.out.println("Greetings from the sample application.");
            } else {
                System.out.println("Bonjour, monde!");
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 321 bytes
    - Viewed (0)
  9. src/cmd/link/testdata/linkname/coro_asm/main.go

    // Copyright 2024 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.
    
    // Assembly reference of newcoro is not allowed.
    
    package main
    
    func main() {
    	newcoro()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 267 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/templates/java-application/src/main/java/org/gradle/sample/app/Main.java

    import static org.gradle.sample.utilities.StringUtils.join;
    import static org.gradle.sample.utilities.StringUtils.split;
    import static org.gradle.sample.app.MessageUtils.getMessage;
    
    public class Main {
        public static void main(String[] args) {
            LinkedList tokens;
            tokens = split(getMessage());
            System.out.println(join(tokens));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 438 bytes
    - Viewed (0)
Back to top