forked from OSchip/llvm-project
				
			Add a testcase for the vla and stack realignment warning.
llvm-svn: 108365
This commit is contained in:
		
							parent
							
								
									c12a6731c5
								
							
						
					
					
						commit
						e34b383e71
					
				| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
// RUN: %llvmgcc -std=gnu99 %s -S |& grep {error: "is greater than the stack alignment" } 
 | 
			
		||||
 | 
			
		||||
int foo(int a)
 | 
			
		||||
{
 | 
			
		||||
  int var[a] __attribute__((__aligned__(32)));
 | 
			
		||||
  return 4;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue