| 
									
										
										
										
											2012-02-16 23:50:37 -05:00
										 |  |  | // errorcheck | 
					
						
							| 
									
										
										
										
											2009-05-08 16:40:55 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Copyright 2009 The Go Authors. All rights reserved. | 
					
						
							|  |  |  | // Use of this source code is governed by a BSD-style | 
					
						
							|  |  |  | // license that can be found in the LICENSE file. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-23 18:47:26 +11:00
										 |  |  | // Verify that import conflicts are detected by the compiler. | 
					
						
							|  |  |  | // Does not compile. | 
					
						
							| 
									
										
										
										
											2009-05-08 16:40:55 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | package main | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-01 16:35:23 -08:00
										 |  |  | import "bufio"	// GCCGO_ERROR "previous|not used" | 
					
						
							| 
									
										
										
										
											2011-08-16 11:14:26 -04:00
										 |  |  | import bufio "os"	// ERROR "redeclared|redefinition|incompatible" "imported and not used" | 
					
						
							| 
									
										
										
										
											2009-08-19 15:18:08 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-08 16:40:55 -07:00
										 |  |  | import ( | 
					
						
							| 
									
										
										
										
											2010-09-04 10:36:13 +10:00
										 |  |  | 	"fmt"	// GCCGO_ERROR "previous|not used" | 
					
						
							| 
									
										
										
										
											2013-09-20 15:25:43 -04:00
										 |  |  | 	fmt "math"	// ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt" | 
					
						
							| 
									
										
										
										
											2013-12-12 19:02:11 -08:00
										 |  |  | 	. "math"	// GC_ERROR "imported and not used: \x22math\x22$" | 
					
						
							| 
									
										
										
										
											2009-12-10 11:25:54 -08:00
										 |  |  | ) |