mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
C++ member functions must be 2 byte aligned per ABI.
llvm-svn: 83239
This commit is contained in:
parent
5b9107c1b9
commit
72758db303
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…
Reference in New Issue
Block a user