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

Side by Side Diff: misc/cgo/errors/err3.go

Issue 76450043: code review 76450043: cmd/cgo: enforce typing of 0-sized types (Closed)
Patch Set: diff -r 3c890c5bf4e3 https://code.google.com/p/go/ Created 10 years 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 | « no previous file | misc/cgo/errors/test.bash » ('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 2014 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 main
6
7 /*
8 typedef struct foo foo_t;
9 typedef struct bar bar_t;
10
11 foo_t *foop;
12 */
13 import "C"
14
15 func main() {
16 x := (*C.bar_t)(nil)
17 C.foop = x // ERROR HERE
18 }
OLDNEW
« no previous file with comments | « no previous file | misc/cgo/errors/test.bash » ('j') | no next file with comments »

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