summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/member-alignment.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-08-16 21:41:38 +0000
committerEric Christopher <echristo@apple.com>2011-08-16 21:41:38 +0000
commitb5715827f530579809f31d88be7ea9e5f337c2c3 (patch)
treef16194b48c991bc746a22ed3b6c098719d753e6e /test/CodeGenCXX/member-alignment.cpp
parentb06cf89e0d7f5184dbc9e6a40b82ac4eafc12c61 (diff)
Migrate from llvm/test/FrontendC++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/member-alignment.cpp')
-rw-r--r--test/CodeGenCXX/member-alignment.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGenCXX/member-alignment.cpp b/test/CodeGenCXX/member-alignment.cpp
new file mode 100644
index 0000000000..8e120f7125
--- /dev/null
+++ b/test/CodeGenCXX/member-alignment.cpp
@@ -0,0 +1,20 @@
+// RUN: %clang_cc1 -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) {
+// CHECK: _ZN1t3fooEv{{.*}} align 2
+}