diff options
author | Dale Johannesen <dalej@apple.com> | 2009-09-09 23:37:46 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-09-09 23:37:46 +0000 |
commit | b63fd7ac883260d3bf2224c291e4c9a479f67805 (patch) | |
tree | 254f49ceea023cacbfbceedba8a65b0f5d1a5c4a /test/FrontendC++/2009-09-09-packed-layout.cpp | |
parent | cd3b9a4f17cf78f208765ab2ab01f2019a9e5651 (diff) |
Testcase for (llvm-gcc) 81399. Adjust an older
test case to allow for different, functionally
identical output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++/2009-09-09-packed-layout.cpp')
-rw-r--r-- | test/FrontendC++/2009-09-09-packed-layout.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/FrontendC++/2009-09-09-packed-layout.cpp b/test/FrontendC++/2009-09-09-packed-layout.cpp new file mode 100644 index 0000000000..a569f9f787 --- /dev/null +++ b/test/FrontendC++/2009-09-09-packed-layout.cpp @@ -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; |