Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(445)

Side by Side Diff: misc/cgo/test/issue5986.go

Issue 13261055: code review 13261055: cmd/go: fix missing __mingw_fprintf symbol for cgo on w... (Closed)
Patch Set: diff -r e3fb358fb3c6 https://code.google.com/p/go Created 10 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « misc/cgo/test/cgo_test.go ('k') | src/cmd/go/build.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 package cgotest
6
7 /*
8 #cgo LDFLAGS: -lm
9 #include <stdio.h>
10 #include <math.h>
11
12 static void output5986()
13 {
14 int current_row = 0, row_count = 0;
15 double sum_squares = 0;
16 do {
17 if (current_row == 10) {
18 current_row = 0;
19 }
20 ++row_count;
21 }
22 while (current_row++ != 1);
23 double d = sqrt(sum_squares / row_count);
24 printf("sqrt is: %g\n", d);
25 }
26 */
27 import "C"
28 import "testing"
29
30 func test5986(t *testing.T) {
31 C.output5986()
32 }
OLDNEW
« no previous file with comments | « misc/cgo/test/cgo_test.go ('k') | src/cmd/go/build.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b