diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
commit | 30815c536baacc07e925f0aef23a5395883173dc (patch) | |
tree | 2cbcf22585e99f8a87d12d5ff94f392c0d266819 /test/FrontendC++/2007-04-05-PackedBitFieldsSmall.cpp | |
parent | 411bd29eea3c360d5b48a18a17b5e87f5671af0e (diff) |
Diffstat (limited to 'test/FrontendC++/2007-04-05-PackedBitFieldsSmall.cpp')
-rw-r--r-- | test/FrontendC++/2007-04-05-PackedBitFieldsSmall.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/FrontendC++/2007-04-05-PackedBitFieldsSmall.cpp b/test/FrontendC++/2007-04-05-PackedBitFieldsSmall.cpp deleted file mode 100644 index 7377b8292d56f..0000000000000 --- a/test/FrontendC++/2007-04-05-PackedBitFieldsSmall.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - - -#ifdef PACKED -// This is an example where size of Packed struct is smaller then -// the size of bit field type. -#define P __attribute__((packed)) -#else -#define P -#endif - -struct P M_Packed { - unsigned long long X:50; - unsigned Y:2; -}; - -struct M_Packed sM_Packed; - -int testM_Packed (void) { - struct M_Packed x; - return (0 != x.Y); -} - -int testM_Packed2 (void) { - struct M_Packed x; - return (0 != x.X); -} |