- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for source (0.26 sec)
-
src/cmd/cgo/internal/test/issue29563/weak1.c
// 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. extern int weaksym __attribute__((__weak__)); int weaksym = 42; int foo1() { return weaksym;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 257 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue29563/weak2.c
// 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. extern int weaksym __attribute__((__weak__)); int weaksym = 42; int foo2() { return weaksym;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 257 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue6833_c.c
// Copyright 2013 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. #include "_cgo_export.h" unsigned long long issue6833Func(unsigned int aui, unsigned long long aull) { return GoIssue6833Func(aui, aull);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 303 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue20910.c
// 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. #include <assert.h> #include <stdlib.h> #include <string.h> #include "_cgo_export.h" /* Test calling a Go function with multiple return values. */ void callMulti(void) { struct multi_return result = multi(); assert(strcmp(result.r0, "multi") == 0); assert(result.r1 == 0);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 459 bytes - Viewed (0) -
src/crypto/internal/boring/div_test.c
// Copyright 2022 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. // This file is a self-contained test for a copy of // the division algorithm in build-goboring.sh, // to verify that is correct. The real algorithm uses u128 // but this copy uses u32 for easier testing. // s/32/128/g should be the only difference between the two. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 18 21:28:09 UTC 2022 - 1.4K bytes - Viewed (0) -
src/cmd/cgo/internal/testlife/testdata/c-life.c
// Copyright 2010 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. #include <assert.h> #include "life.h" #include "_cgo_export.h" const int MYCONST = 0; // Do the actual manipulation of the life board in C. This could be // done easily in Go, we are just using C for demonstration // purposes. void Step(int x, int y, int *a, int *n) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main4.c
// Copyright 2015 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 a C thread that calls sigaltstack and then calls Go code. #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sched.h> #include <pthread.h> #include "libgo4.h" #ifdef _AIX
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.5K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m1/c.c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 238 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue4339.h
// Copyright 2013 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. typedef struct Issue4339 Issue4339; struct Issue4339 { char *name; void (*bar)(void); }; extern Issue4339 exported4339;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 313 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main8.c
// 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. // Test preemption. #include <stdlib.h> #include "libgo8.h" int main() { GoFunction8(); // That should have exited the program. abort();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 306 bytes - Viewed (0)