repo.or.cz
/
OpenFOAM-1.6.x.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
no reduction on failedMeshChecks counter
[OpenFOAM-1.6.x.git]
/
applications
/
test
/
alloc
/
allocTest.C
blob
db4318475b5202fdff9326f4ab55f678a6293f2d
1
#include <iostream>
2
#include <unistd.h>
3
4
using namespace std;
5
6
int main()
7
{
8
int *ptrs[500000];
9
10
// for (;;);
11
12
cerr << "allocating ints\n";
13
14
for (int i=0; i<500000; i++)
15
{
16
ptrs[i] = new int[1];
17
delete[] ptrs[i];
18
}
19
20
for (;;);
21
22
cerr << "allocating double\n";
23
24
double* array = new double[500000];
25
26
for (;;);
27
}