mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 02:22:31 +00:00
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:
parent
892597943a
commit
6ad9da4001
19
test/FrontendC++/member-alignment.cpp
Normal file
19
test/FrontendC++/member-alignment.cpp
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user