mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17529 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			17 lines
		
	
	
		
			331 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			331 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
 | 
						|
 | 
						|
// There is a HOLE in the derived2 object due to not wanting to place the two 
 | 
						|
// baseclass instances at the same offset!
 | 
						|
 | 
						|
struct baseclass {};
 | 
						|
 | 
						|
class derived1 : public baseclass {
 | 
						|
  void * NodePtr;
 | 
						|
};
 | 
						|
 | 
						|
class derived2 : public baseclass {
 | 
						|
  derived1 current;
 | 
						|
};
 | 
						|
 | 
						|
derived2 RI;
 |