Merge from trunk @ 138209
[official-gcc.git] / libgomp / testsuite / libgomp.c / c.exp
blob4085d0c07e0b35c936195f276a19f4ee623c32d8
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"
14 # Initialize dg.
15 dg-init
17 # Gather a list of all tests.
18 set tests [lsort [find $srcdir/$subdir *.c]]
20 set ld_library_path $always_ld_library_path
21 append ld_library_path [gcc-set-multilib-library-path $GCC_UNDER_TEST]
22 set_ld_library_path_env_vars
24 # Main loop.
25 dg-runtest $tests "" $DEFAULT_CFLAGS
27 # All done.
28 dg-finish