aboutsummaryrefslogtreecommitdiff
path: root/test/array.c
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-11-06 17:06:06 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-11-06 17:06:06 +0000
commit7b10c3694a09cf5ee8b0aa19b2ea5ca25e895023 (patch)
treeb393f08e28848b5f239ebb824d771f906605d32d /test/array.c
parentd1565abd688daeff10f9398bd04df837b3d467ed (diff)
Moved *.c files into subdirectory TestSources to avoid overwriting
corresponding *.ll files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/array.c')
-rw-r--r--test/array.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/array.c b/test/array.c
deleted file mode 100644
index c24321e8fb..0000000000
--- a/test/array.c
+++ /dev/null
@@ -1,30 +0,0 @@
-extern printf(const char *, double, double);
-
-int
-checkIdxCode(int N, int* A, float F[][30])
-{
- int i, j;
- float sumA=0.0, sumF=0.0;
- for (i=0; i < 12; i++)
- {
- sumA = sumA + A[i];
- for (j=0; j < 10; j++)
- {
- F[i][j] = 0.5 * (F[i][j-1] + F[i-1][j]);
- sumF = sumF + F[i][j];
- }
- }
- printf("sumA = %lf, sumF = %lf\n", sumA, sumF);
-}
-
-#if 0
-int
-main(int argc, char** argv)
-{
- int N = argc+20;
- int* A = (int*) malloc(N * sizeof(int));
- float F[25][30];
- return checkIdxCode(N, A, F);
-}
-
-#endif