xref: /aosp_15_r20/external/clang/test/CodeGen/PR5060-align.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2 
3 // CHECK: @foo.p = internal global i8 0, align 32
foo(void)4 char *foo(void) {
5   static char p __attribute__((aligned(32)));
6   return &p;
7 }
8 
bar(long n)9 void bar(long n) {
10   // CHECK: align 32
11   char p[n] __attribute__((aligned(32)));
12 }
13 
14