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

Delta Between Two Patch Sets: misc/cgo/test/basic.go

Issue 152570049: [dev.power64] code review 152570049: all: merge default into dev.power64 (Closed)
Left Patch Set: diff -r 36f7fc9495481ed67a159eea0eb2fac35b7c46a5 https://code.google.com/p/go Created 10 years, 4 months ago
Right Patch Set: diff -r 36f7fc9495481ed67a159eea0eb2fac35b7c46a5 https://code.google.com/p/go Created 10 years, 4 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « misc/cgo/test/backdoor/runtime.c ('k') | misc/cgo/test/callback.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // Basic test cases for cgo. 5 // Basic test cases for cgo.
6 6
7 package cgotest 7 package cgotest
8 8
9 /* 9 /*
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 b := (int64)(0xc008427b) 155 b := (int64)(0xc008427b)
156 if a != b { 156 if a != b {
157 t.Errorf("Incorrect unsigned int - got %x, want %x", a, b) 157 t.Errorf("Incorrect unsigned int - got %x, want %x", a, b)
158 } 158 }
159 } 159 }
160 160
161 // Static (build-time) test that syntax traversal visits all operands of s[i:j:k ]. 161 // Static (build-time) test that syntax traversal visits all operands of s[i:j:k ].
162 func sliceOperands(array [2000]int) { 162 func sliceOperands(array [2000]int) {
163 _ = array[C.KILO:C.KILO:C.KILO] // no type error 163 _ = array[C.KILO:C.KILO:C.KILO] // no type error
164 } 164 }
LEFTRIGHT

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