mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	%XX = global int cast (int* getelementptr ([2 x int]* getelementptr (%struct.S* null, int 0, uint 0), int 0, int 1) to int) which is the literal translation of the testcase :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20247 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			9 lines
		
	
	
		
			127 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			127 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// RUN: %llvmgxx %s -S -o - | not grep 'llvm.global_ctor'
 | 
						|
 | 
						|
struct S {
 | 
						|
  int  A[2];
 | 
						|
};
 | 
						|
 | 
						|
int XX = (int)&(((struct S*)0)->A[1]);
 | 
						|
 |