Merge from mainline
[official-gcc.git] / libgomp / testsuite / libgomp.c / c.exp
blob8056a86054da4476f1298c94f269fd8b3941db9a
1 if [info exists lang_library_path] then {
2 unset lang_library_path
3 unset lang_test_file
4 unset lang_link_flags
7 load_lib libgomp-dg.exp
9 # If a testcase doesn't have special options, use these.
10 if ![info exists DEFAULT_CFLAGS] then {
11 set DEFAULT_CFLAGS "-O2 -fopenmp"
14 # Initialize dg.
15 dg-init
17 # Gather a list of all tests.
18 set tests [lsort [find $srcdir/$subdir *.c]]
20 # Main loop.
21 dg-runtest $tests "" $DEFAULT_CFLAGS
23 # All done.
24 dg-finish