blob: 1b214b77bee776c36c8dccc647ca1aaabc03be41 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin -O0 -S %s -o %t.s
Mike Stump4c83f7c2009-10-05 22:24:47 +00002// 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
Eli Friedman6c6bda32010-01-08 00:50:11 +000018// CHECK:.align 1, 0x90
19// CHECK-NEXT:.globl __ZN1CC1Ev
20
Mike Stump4c83f7c2009-10-05 22:24:47 +000021void C::bar1() { }
22
23// CHECK:.align 1, 0x90
24// CHECK-NEXT:.globl __ZN1C4bar1Ev
25// CHECK-NEXT:__ZN1C4bar1Ev:
26
27
28void C::bar2() { }
29
Mike Stumpfb51ddf2009-10-05 22:49:20 +000030// CHECK:.align 1, 0x90
Mike Stump4c83f7c2009-10-05 22:24:47 +000031// CHECK-NEXT:.globl __ZN1C4bar2Ev
32// CHECK-NEXT:__ZN1C4bar2Ev:
Mike Stumpfb51ddf2009-10-05 22:49:20 +000033
34
35void C::bar3() { }
36
37// CHECK:.align 10, 0x90
38// CHECK-NEXT:.globl __ZN1C4bar3Ev
39// CHECK-NEXT:__ZN1C4bar3Ev: