[llvm-commits] [llvm] r81400 - in /llvm/trunk/test/FrontendC++: 2009-06-20-DarwinPPCLayout.cpp 2009-09-09-packed-layout.cpp
Dale Johannesen
dalej at apple.com
Wed Sep 9 16:37:46 PDT 2009
Author: johannes
Date: Wed Sep 9 18:37:46 2009
New Revision: 81400
URL: http://llvm.org/viewvc/llvm-project?rev=81400&view=rev
Log:
Testcase for (llvm-gcc) 81399. Adjust an older
test case to allow for different, functionally
identical output.
Added:
llvm/trunk/test/FrontendC++/2009-09-09-packed-layout.cpp
Modified:
llvm/trunk/test/FrontendC++/2009-06-20-DarwinPPCLayout.cpp
Modified: llvm/trunk/test/FrontendC++/2009-06-20-DarwinPPCLayout.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2009-06-20-DarwinPPCLayout.cpp?rev=81400&r1=81399&r2=81400&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC++/2009-06-20-DarwinPPCLayout.cpp (original)
+++ llvm/trunk/test/FrontendC++/2009-06-20-DarwinPPCLayout.cpp Wed Sep 9 18:37:46 2009
@@ -3,8 +3,7 @@
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep quux | grep global | grep {struct.bar}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep foo | grep global | grep {struct.SRCFilter::FilterEntry}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.bar} | grep {1 x i32}
-// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.CC} | grep {struct.bar}
-// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.bar} | grep {1 x i32}
+// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.CC} | grep {struct.payre<KBFP,float*} | grep {.base.32} | grep {1 x i32}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.SRCFilter::FilterEntry} | not grep {1 x i32}
// XFAIL: *
// XTARGET: powerpc-apple-darwin
@@ -30,3 +29,4 @@
struct bar { KBFP x; float* y;}; // 16 bytes
struct bar quux;
+
Added: llvm/trunk/test/FrontendC++/2009-09-09-packed-layout.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2009-09-09-packed-layout.cpp?rev=81400&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2009-09-09-packed-layout.cpp (added)
+++ llvm/trunk/test/FrontendC++/2009-09-09-packed-layout.cpp Wed Sep 9 18:37:46 2009
@@ -0,0 +1,18 @@
+// RUN: %llvmgxx -S -m32 -emit-llvm %s -o /dev/null
+class X {
+ public:
+ virtual ~X();
+ short y;
+};
+#pragma pack(push, 1)
+class Z : public X {
+ public: enum { foo = ('x') };
+ virtual int y() const;
+};
+#pragma pack(pop)
+class Y : public X {
+public: enum { foo = ('y'), bar = 0 };
+};
+X x;
+Y y;
+Z z;
More information about the llvm-commits
mailing list