diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-10-02 06:07:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-10-02 06:07:47 +0000 |
commit | 6ad9da40010784791443e51a93cdfa6dc2bdcb49 (patch) | |
tree | f4c7531b3703a178ffa8c220d3ae3f68a51a8219 /test/FrontendC++/member-alignment.cpp | |
parent | 892597943adc02583af32a86b4289f1fb02d2e4f (diff) | |
download | external_llvm-6ad9da40010784791443e51a93cdfa6dc2bdcb49.zip external_llvm-6ad9da40010784791443e51a93cdfa6dc2bdcb49.tar.gz external_llvm-6ad9da40010784791443e51a93cdfa6dc2bdcb49.tar.bz2 |
C++ member functions must be 2 byte aligned per ABI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++/member-alignment.cpp')
-rw-r--r-- | test/FrontendC++/member-alignment.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/FrontendC++/member-alignment.cpp b/test/FrontendC++/member-alignment.cpp new file mode 100644 index 0000000..cf18d6a --- /dev/null +++ b/test/FrontendC++/member-alignment.cpp @@ -0,0 +1,19 @@ +// RUN: %llvmgxx -S -emit-llvm %s -o - | FileCheck %s + +// rdar://7268289 + +class t { +public: + virtual void foo(void); + void bar(void); +}; + +void +t::bar(void) { +// CHECK: _ZN1t3barEv{{.*}} align 2 +} + +void +t::foo(void) { +// CHECK: _ZN1t3fooEv{.*}} align 2 +} |