2010-02-16 09:31:36 +00:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
|
2009-10-14 18:03:49 +00:00
|
|
|
|
2010-02-16 09:31:36 +00:00
|
|
|
// CHECK: define i32 @_Z3foov() nounwind align 1024
|
2009-10-14 18:03:49 +00:00
|
|
|
int foo() __attribute__((aligned(1024)));
|
|
|
|
int foo() { }
|
|
|
|
|
|
|
|
class C {
|
|
|
|
virtual void bar1() __attribute__((aligned(1)));
|
|
|
|
virtual void bar2() __attribute__((aligned(2)));
|
|
|
|
virtual void bar3() __attribute__((aligned(1024)));
|
|
|
|
} c;
|
|
|
|
|
2010-02-16 09:31:36 +00:00
|
|
|
// CHECK: define void @_ZN1C4bar1Ev(%class.C* %this) nounwind align 2
|
2009-10-14 18:03:49 +00:00
|
|
|
void C::bar1() { }
|
|
|
|
|
2010-02-16 09:31:36 +00:00
|
|
|
// CHECK: define void @_ZN1C4bar2Ev(%class.C* %this) nounwind align 2
|
2009-10-14 18:03:49 +00:00
|
|
|
void C::bar2() { }
|
|
|
|
|
2010-02-16 09:31:36 +00:00
|
|
|
// CHECK: define void @_ZN1C4bar3Ev(%class.C* %this) nounwind align 1024
|
2009-10-14 18:03:49 +00:00
|
|
|
void C::bar3() { }
|