C++ member functions must be 2 byte aligned per ABI.

llvm-svn: 83239
This commit is contained in:
Evan Cheng 2009-10-02 06:07:47 +00:00
parent 5b9107c1b9
commit 72758db303

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
}