From: Evan Cheng Date: Fri, 2 Oct 2009 06:07:47 +0000 (+0000) Subject: C++ member functions must be 2 byte aligned per ABI. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6ad9da40010784791443e51a93cdfa6dc2bdcb49;p=oota-llvm.git 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 --- diff --git a/test/FrontendC++/member-alignment.cpp b/test/FrontendC++/member-alignment.cpp new file mode 100644 index 00000000000..cf18d6a6867 --- /dev/null +++ b/test/FrontendC++/member-alignment.cpp @@ -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 +}