llvm-project/llvm/test/FrontendC++/member-alignment.cpp

21 lines
279 B
C++
Raw Normal View History

// RUN: %llvmgxx -S -emit-llvm %s -o - | FileCheck %s
// XFAIL: arm,powerpc
// rdar://7268289
class t {
public:
virtual void foo(void);
void bar(void);
};
void
t::bar(void) {
// CHECK: _ZN1t3barEv{{.*}} align 2
}
void
t::foo(void) {
2009-10-02 14:50:50 +08:00
// CHECK: _ZN1t3fooEv{{.*}} align 2
}