2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang-cc -triple x86_64-apple-darwin -O0 -S %s -o %t.s
|
2009-10-06 06:24:47 +08:00
|
|
|
// RUN: FileCheck --input-file=%t.s %s
|
|
|
|
|
|
|
|
int foo() __attribute__((aligned(1024)));
|
|
|
|
int foo() { }
|
|
|
|
|
|
|
|
// CHECK:.align 10, 0x90
|
|
|
|
// CHECK:.globl __Z3foov
|
|
|
|
// CHECK:__Z3foov:
|
|
|
|
|
|
|
|
|
|
|
|
class C {
|
2009-10-06 06:49:20 +08:00
|
|
|
virtual void bar1() __attribute__((aligned(1)));
|
|
|
|
virtual void bar2() __attribute__((aligned(2)));
|
|
|
|
virtual void bar3() __attribute__((aligned(1024)));
|
2009-10-06 06:24:47 +08:00
|
|
|
} c;
|
|
|
|
|
|
|
|
void C::bar1() { }
|
|
|
|
|
|
|
|
// CHECK:.align 1, 0x90
|
|
|
|
// CHECK-NEXT:.globl __ZN1C4bar1Ev
|
|
|
|
// CHECK-NEXT:__ZN1C4bar1Ev:
|
|
|
|
|
|
|
|
|
|
|
|
void C::bar2() { }
|
|
|
|
|
2009-10-06 06:49:20 +08:00
|
|
|
// CHECK:.align 1, 0x90
|
2009-10-06 06:24:47 +08:00
|
|
|
// CHECK-NEXT:.globl __ZN1C4bar2Ev
|
|
|
|
// CHECK-NEXT:__ZN1C4bar2Ev:
|
2009-10-06 06:49:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
void C::bar3() { }
|
|
|
|
|
|
|
|
// CHECK:.align 10, 0x90
|
|
|
|
// CHECK-NEXT:.globl __ZN1C4bar3Ev
|
|
|
|
// CHECK-NEXT:__ZN1C4bar3Ev:
|