2012-08-16 02:40:30 +08:00
|
|
|
// PR13606 - Clang crashes with large alignment attribute
|
2015-07-26 10:16:35 +08:00
|
|
|
// RUN: %clang -cc1 -S -emit-llvm %s -o - -triple i686-pc-gnu | FileCheck %s
|
2012-08-16 02:40:30 +08:00
|
|
|
|
|
|
|
// 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];
|
|
|
|
}
|
|
|
|
|