blob: 8077b7839d88b3bbd76245012330da5005fe74eb [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 {
Mike Stumpfb51ddf2009-10-05 22:49:20 +000013 virtual void bar1() __attribute__((aligned(1)));
14 virtual void bar2() __attribute__((aligned(2)));
15 virtual void bar3() __attribute__((aligned(1024)));
Mike Stump4c83f7c2009-10-05 22:24:47 +000016} c;
17
18void C::bar1() { }
19
20// CHECK:.align 1, 0x90
21// CHECK-NEXT:.globl __ZN1C4bar1Ev
22// CHECK-NEXT:__ZN1C4bar1Ev:
23
24
25void C::bar2() { }
26
Mike Stumpfb51ddf2009-10-05 22:49:20 +000027// CHECK:.align 1, 0x90
Mike Stump4c83f7c2009-10-05 22:24:47 +000028// CHECK-NEXT:.globl __ZN1C4bar2Ev
29// CHECK-NEXT:__ZN1C4bar2Ev:
Mike Stumpfb51ddf2009-10-05 22:49:20 +000030
31
32void C::bar3() { }
33
34// CHECK:.align 10, 0x90
35// CHECK-NEXT:.globl __ZN1C4bar3Ev
36// CHECK-NEXT:__ZN1C4bar3Ev: