diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-05-09 21:16:22 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-05-09 21:16:22 (GMT) |
commit | a4adc28b0b5f601928887863effe7d808f467e33 (patch) | |
tree | e5213592b74000e5d022d72aead0220acfeebad5 /src/libgomp-test.c | |
parent | 3171447283bdba8145e41c8a2d86b486b9d4fe36 (diff) | |
download | mxe-a4adc28b0b5f601928887863effe7d808f467e33.zip mxe-a4adc28b0b5f601928887863effe7d808f467e33.tar.gz mxe-a4adc28b0b5f601928887863effe7d808f467e33.tar.bz2 |
add test program for package libgomp (by Tony Theodore)
Diffstat (limited to 'src/libgomp-test.c')
-rw-r--r-- | src/libgomp-test.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libgomp-test.c b/src/libgomp-test.c new file mode 100644 index 0000000..fbf304d --- /dev/null +++ b/src/libgomp-test.c @@ -0,0 +1,17 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <omp.h> +#include <stdio.h> + +int main(int argc, char* argv[]) +{ + (void)argc; + (void)argv; + + #pragma omp parallel + printf("Hello from thread %d, nthreads %d\n", + omp_get_thread_num(), omp_get_num_threads()); + + return 0; +} |