testsuite: arm: Relax register selection [PR116623]
[official-gcc.git] / libgo / misc / cgo / test / issue20910.c
blobe8d623fc9837e839df14d66342e4037449e0857a
1 // Copyright 2017 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.
5 #include <assert.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include "_cgo_export.h"
10 /* Test calling a Go function with multiple return values. */
12 void
13 callMulti(void)
15 struct multi_return result = multi();
16 assert(strcmp(result.r0, "multi") == 0);
17 assert(result.r1 == 0);
18 free(result.r0);