blob: 3a50e6ff0c12730e398601eb470971b24496af00 [file] [log] [blame]
Rémy Oudomphengfc3797a2012-02-22 00:19:59 +01001// build
Robert Griesemer985390b2009-07-07 10:42:42 -07002
3// Copyright 2009 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
9func f1() {
Russ Coxf2b5a072011-01-19 23:09:00 -050010 type T struct {
11 x int
12 }
Robert Griesemer985390b2009-07-07 10:42:42 -070013}
14
15func f2() {
Russ Coxf2b5a072011-01-19 23:09:00 -050016 type T struct {
17 x float64
18 }
Robert Griesemer985390b2009-07-07 10:42:42 -070019}
20
21func main() {
Russ Coxf2b5a072011-01-19 23:09:00 -050022 f1()
23 f2()
Robert Griesemer985390b2009-07-07 10:42:42 -070024}
25
26/*
271606416576: conflicting definitions for main.T·bug167
28bug167.6: type main.T·bug167 struct { x int }
Russ Coxf2b5a072011-01-19 23:09:00 -050029bug167.6: type main.T·bug167 struct { x float64 }
Robert Griesemer985390b2009-07-07 10:42:42 -070030*/