* tree-vect-loop-manip.c (vect_do_peeling): Do not use
[official-gcc.git] / libgo / misc / cgo / test / issue5986.go
blob9be1614233e11a09b966ded2247056bbee5c1ee1
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 package cgotest
7 /*
8 #cgo LDFLAGS: -lm
9 #include <stdio.h>
10 #include <math.h>
12 static void output5986()
14 int current_row = 0, row_count = 0;
15 double sum_squares = 0;
16 double d;
17 do {
18 if (current_row == 10) {
19 current_row = 0;
21 ++row_count;
23 while (current_row++ != 1);
24 d = sqrt(sum_squares / row_count);
25 printf("sqrt is: %g\n", d);
28 import "C"
29 import "testing"
31 func test5986(t *testing.T) {
32 C.output5986()