mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	come up a lot in the code generated by the C++ front-end for pointers to member functions. See PR166. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12217 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			16 lines
		
	
	
		
			279 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			279 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
; RUN: llvm-as < %s | llvm-dis | not grep cast
 | 
						|
; All of these should be eliminable
 | 
						|
 | 
						|
 | 
						|
int %foo() {
 | 
						|
	ret int and (int cast (int()* %foo to int), int 1)
 | 
						|
}
 | 
						|
 | 
						|
int %foo2() {
 | 
						|
	ret int and (int 1, int cast (int()* %foo2 to int))
 | 
						|
}
 | 
						|
 | 
						|
bool %foo3() {
 | 
						|
	ret bool cast (bool()* %foo3 to bool)
 | 
						|
}
 |