* tree-vect-loop-manip.c (vect_do_peeling): Do not use
[official-gcc.git] / libgo / misc / cgo / test / issue5227.go
blob53c3bf12d740c8bd84a0ba07bf727b9958b0f3fb
1 // Copyright 2013 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 // Issue 5227: linker incorrectly treats common symbols and
6 // leaves them undefined.
8 package cgotest
11 typedef struct {
12 int Count;
13 } Fontinfo;
15 Fontinfo SansTypeface;
17 extern void init();
19 Fontinfo loadfont() {
20 Fontinfo f = {0};
21 return f;
24 void init() {
25 SansTypeface = loadfont();
28 import "C"
30 import "testing"
32 func test5227(t *testing.T) {
33 C.init()
36 func selectfont() C.Fontinfo {
37 return C.SansTypeface