blob: 5585ef21a6cc911d8c17d1752cb47fb4e2017f8d [file] [log] [blame]
Jim Cownie18d84732014-05-10 17:02:09 +00001<ompts:test>
2<ompts:version>2.0</ompts:version>
3<ompts:testdescription>Testing if the conditional compilation is supported or not.
4Yi Wen at 05032004: Do we want to write two versions of has_omp? both C23456789
5and #ifdef formats are supposed to work. At least Sun's compiler cannot deal with
6the second format (#ifdef)</ompts:testdescription>
7
8<ompts:testcode>
9 INTEGER FUNCTION <ompts:testcode:functionname>has_openmp</ompts:testcode:functionname>()
10 <testfunctionname></testfunctionname> = 0
11
12<ompts:check>
13!version 1.
14!C23456789
15!$ <testfunctionname></testfunctionname> = 1
16
17! version 2.
18!#ifdef _OPENMP
19 <testfunctionname></testfunctionname> = 1
20!#endif
21</ompts:check>
22
23 END FUNCTION
24</ompts:testcode>
25</ompts:test>