...

Text file src/cmd/cgo/internal/testcarchive/testdata/main10.c

Documentation: cmd/cgo/internal/testcarchive/testdata

     1// Copyright 2024 The Go Authors. All rights reserved.
     2// Use of this source code is governed by a BSD-style
     3// license that can be found in the LICENSE file.
     4
     5#include <stdio.h>
     6#include <stdlib.h>
     7
     8#include "libgo10.h"
     9
    10int main(int argc, char **argv) {
    11	int n, i;
    12
    13	if (argc != 2) {
    14		perror("wrong arg");
    15		return 2;
    16	}
    17	n = atoi(argv[1]);
    18	for (i = 0; i < n; i++)
    19		GoF();
    20
    21	return 0;
    22}

View as plain text