blob: 57507d87b3378449378930b0bfc37f44ec0cda2a [file] [log] [blame]
Mike Stump4c83f7c2009-10-05 22:24:47 +00001// RUN: clang-cc -triple x86_64-apple-darwin -O0 -S %s -o %t.s &&
2// RUN: FileCheck --input-file=%t.s %s
3
4int foo() __attribute__((aligned(1024)));
5int foo() { }
6
7// CHECK:.align 10, 0x90
8// CHECK:.globl __Z3foov
9// CHECK:__Z3foov:
10
11
12class C {
13 virtual void bar1() __attribute__((aligned(2)));
14 virtual void bar2() __attribute__((aligned(1024)));
15} c;
16
17void C::bar1() { }
18
19// CHECK:.align 1, 0x90
20// CHECK-NEXT:.globl __ZN1C4bar1Ev
21// CHECK-NEXT:__ZN1C4bar1Ev:
22
23
24void C::bar2() { }
25
26// CHECK:.align 10, 0x90
27// CHECK-NEXT:.globl __ZN1C4bar2Ev
28// CHECK-NEXT:__ZN1C4bar2Ev: