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