aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-25 21:09:42 +0000
committerChris Lattner <sabre@nondot.org>2003-07-25 21:09:42 +0000
commit8d6b9fe24204b1e4217d2d95b5de88f2fe08b4fd (patch)
treefdc184e3710af6bbe98a28bb5e030996012f8a0f
parent4446617ae2a72d737d86da7d2924f573989a513d (diff)
This test has been automatized
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7333 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/DSGraphs/ggcollapse.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/test/DSGraphs/ggcollapse.c b/test/DSGraphs/ggcollapse.c
deleted file mode 100644
index c055caf668..0000000000
--- a/test/DSGraphs/ggcollapse.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <stdio.h>
-
-typedef struct Tree_struct {
- int data;
- struct Tree_struct *left, *right;
-} Tree;
-
-static Tree T1, T2, T3, T4, T5;
-static Tree *Root, *ANode;
-static int N = 4107;
-
-/* forces *Tb->right to be collapsed */
-void makeMore(Tree* Ta, Tree* Tb)
-{
- Ta->left = &T1;
- Ta->right = &T2;
- Tb->left = &T4;
- Tb->right = (Tree*) (((char*) &T5) + 5); /* point to fifth byte of T5 */
-}
-
-void makeRoots()
-{
- T1.left = &T2;
- makeMore(&T1, &T3);
-}
-
-int main()
-{
- makeRoots();
- T3.right = &T4;
- printf("T3.data = %d\n", T3.data);
-}