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
This commit is contained in:
Evan Cheng 2009-10-02 06:07:47 +00:00
parent 892597943a
commit 6ad9da4001

View File

@ -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
}