2013-07-04 22:51:11 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
2009-09-27 02:16:06 +08:00
|
|
|
|
2021-03-24 01:09:05 +08:00
|
|
|
// CHECK: @foo.p = internal global i8 0, align 16
|
2009-09-27 02:16:06 +08:00
|
|
|
char *foo(void) {
|
2021-03-24 01:09:05 +08:00
|
|
|
static char p __attribute__((aligned(16)));
|
2009-09-27 02:16:06 +08:00
|
|
|
return &p;
|
|
|
|
}
|
|
|
|
|
|
|
|
void bar(long n) {
|
2021-03-24 01:09:05 +08:00
|
|
|
// CHECK: align 16
|
|
|
|
char p[n] __attribute__((aligned(16)));
|
2009-09-27 02:16:06 +08:00
|
|
|
}
|
|
|
|
|