2010-01-27 05:49:52 +03:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
|
2009-10-06 02:24:47 +04:00
|
|
|
|
2010-01-27 05:49:52 +03:00
|
|
|
// CHECK: define i32 @_Z3foov() nounwind align 1024
|
2009-10-06 02:24:47 +04:00
|
|
|
int foo() __attribute__((aligned(1024)));
|
|
|
|
int foo() { }
|
|
|
|
|
|
|
|
class C {
|
2009-10-06 02:49:20 +04:00
|
|
|
virtual void bar1() __attribute__((aligned(1)));
|
|
|
|
virtual void bar2() __attribute__((aligned(2)));
|
|
|
|
virtual void bar3() __attribute__((aligned(1024)));
|
2009-10-06 02:24:47 +04:00
|
|
|
} c;
|
|
|
|
|
2010-01-27 05:49:52 +03:00
|
|
|
// CHECK: define void @_ZN1C4bar1Ev(%class.C* %this) nounwind align 2
|
2009-10-06 02:24:47 +04:00
|
|
|
void C::bar1() { }
|
|
|
|
|
2010-01-27 05:49:52 +03:00
|
|
|
// CHECK: define void @_ZN1C4bar2Ev(%class.C* %this) nounwind align 2
|
2009-10-06 02:24:47 +04:00
|
|
|
void C::bar2() { }
|
|
|
|
|
2010-01-27 05:49:52 +03:00
|
|
|
// CHECK: define void @_ZN1C4bar3Ev(%class.C* %this) nounwind align 1024
|
2009-10-06 02:49:20 +04:00
|
|
|
void C::bar3() { }
|