[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / function-alignment.c
blob8564ceb02354bc293cb52962b49a0cf55952075a
1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-NONE
2 // RUN: %clang_cc1 -emit-llvm -function-alignment 4 %s -o - | FileCheck %s -check-prefix CHECK-16
3 // RUN: %clang_cc1 -emit-llvm -function-alignment 5 %s -o - | FileCheck %s -check-prefix CHECK-32
5 void f(void) {}
6 void __attribute__((__aligned__(64))) g(void) {}
8 // CHECK-NONE-NOT: define {{(dso_local )?}}void @f() #0 align
9 // CHECK-NONE: define {{(dso_local )?}}void @g() #0 align 64
11 // CHECK-16: define {{(dso_local )?}}void @f() #0 align 16
12 // CHECK-16: define {{(dso_local )?}}void @g() #0 align 64
14 // CHECK-32: define {{(dso_local )?}}void @f() #0 align 32
15 // CHECK-32: define {{(dso_local )?}}void @g() #0 align 64