minix/external/bsd/llvm/dist/clang/test/CodeGen/align-global-large.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

18 lines
386 B
C

// PR13606 - Clang crashes with large alignment attribute
// RUN: %clang -S -emit-llvm %s -o - | FileCheck %s
// CHECK: x
// CHECK: align
// CHECK: 1048576
volatile char x[4000] __attribute__((aligned(0x100000)));
int
main (int argc, char ** argv) {
// CHECK: y
// CHECK: align
// CHECK: 1048576
volatile char y[4000] __attribute__((aligned(0x100000)));
return y[argc];
}