summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC/2008-08-07-AlignPadding1.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-26 23:49:39 +0000
committerEric Christopher <echristo@apple.com>2011-07-26 23:49:39 +0000
commit44817320155b0f68c3c5c8aa793cc203edcfc7ea (patch)
treef269da111298fa66bb80dfd11085ff4024fabada /llvm/test/FrontendC/2008-08-07-AlignPadding1.c
parentfbcce6fba31fa8ae689e99358e25f6a736aee286 (diff)
downloadbcm5719-llvm-44817320155b0f68c3c5c8aa793cc203edcfc7ea.tar.gz
bcm5719-llvm-44817320155b0f68c3c5c8aa793cc203edcfc7ea.zip
Remove test/FrontendC, almost all of the tests have been migrated
to clang now, the rest are in process (6) or have been deleted. llvm-svn: 136191
Diffstat (limited to 'llvm/test/FrontendC/2008-08-07-AlignPadding1.c')
-rw-r--r--llvm/test/FrontendC/2008-08-07-AlignPadding1.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/test/FrontendC/2008-08-07-AlignPadding1.c b/llvm/test/FrontendC/2008-08-07-AlignPadding1.c
deleted file mode 100644
index 6be9fe4ed3b..00000000000
--- a/llvm/test/FrontendC/2008-08-07-AlignPadding1.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* RUN: %llvmgcc %s -S -o - -O0 | grep {zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer}
-
-The FE must generate padding here both at the end of each PyG_Head and
-between array elements. Reduced from Python. */
-
-typedef union _gc_head {
- struct {
- union _gc_head *gc_next;
- union _gc_head *gc_prev;
- long gc_refs;
- } gc;
- int dummy __attribute__((aligned(16)));
-} PyGC_Head;
-
-struct gc_generation {
- PyGC_Head head;
- int threshold;
- int count;
-};
-
-#define GEN_HEAD(n) (&generations[n].head)
-
-/* linked lists of container objects */
-static struct gc_generation generations[3] = {
- /* PyGC_Head, threshold, count */
- {{{GEN_HEAD(0), GEN_HEAD(0), 0}}, 700, 0},
- {{{GEN_HEAD(1), GEN_HEAD(1), 0}}, 10, 0},
- {{{GEN_HEAD(2), GEN_HEAD(2), 0}}, 10, 0},
-};
OpenPOWER on IntegriCloud