diff options
author | Mike Stump <mrs@apple.com> | 2009-10-05 22:49:20 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-10-05 22:49:20 +0000 |
commit | 3472ae5bac95965083490b746c7da045054658f8 (patch) | |
tree | fddc7585bc5ab507afbf89cf76e7bb44baa37cd4 /clang/test/CodeGenCXX/attr.cpp | |
parent | 2dfb5da6bb727b12bc3ff485a243d63b5cef3545 (diff) | |
download | bcm5719-llvm-3472ae5bac95965083490b746c7da045054658f8.tar.gz bcm5719-llvm-3472ae5bac95965083490b746c7da045054658f8.zip |
Ensure we have atleast 2-byte alignment for member functions.
llvm-svn: 83337
Diffstat (limited to 'clang/test/CodeGenCXX/attr.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/attr.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/attr.cpp b/clang/test/CodeGenCXX/attr.cpp index 57507d87b33..8077b7839d8 100644 --- a/clang/test/CodeGenCXX/attr.cpp +++ b/clang/test/CodeGenCXX/attr.cpp @@ -10,8 +10,9 @@ int foo() { } class C { - virtual void bar1() __attribute__((aligned(2))); - virtual void bar2() __attribute__((aligned(1024))); + virtual void bar1() __attribute__((aligned(1))); + virtual void bar2() __attribute__((aligned(2))); + virtual void bar3() __attribute__((aligned(1024))); } c; void C::bar1() { } @@ -23,6 +24,13 @@ void C::bar1() { } void C::bar2() { } -// CHECK:.align 10, 0x90 +// CHECK:.align 1, 0x90 // CHECK-NEXT:.globl __ZN1C4bar2Ev // CHECK-NEXT:__ZN1C4bar2Ev: + + +void C::bar3() { } + +// CHECK:.align 10, 0x90 +// CHECK-NEXT:.globl __ZN1C4bar3Ev +// CHECK-NEXT:__ZN1C4bar3Ev: |