Rebase.
[official-gcc.git] / libgomp / testsuite / libgomp.c / c.exp
blob300b9211f6de36b9a77f98c9e780cdb190057495
1 if [info exists lang_library_path] then {
2 unset lang_library_path
3 unset lang_link_flags
5 if [info exists lang_test_file] then {
6 unset lang_test_file
8 if [info exists lang_include_flags] then {
9 unset lang_include_flags
12 load_lib libgomp-dg.exp
13 load_gcc_lib gcc-dg.exp
15 # If a testcase doesn't have special options, use these.
16 if ![info exists DEFAULT_CFLAGS] then {
17 set DEFAULT_CFLAGS "-O2"
20 # Initialize dg.
21 dg-init
23 # Turn on OpenMP.
24 lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
26 # Gather a list of all tests.
27 set tests [lsort [find $srcdir/$subdir *.c]]
29 set ld_library_path $always_ld_library_path
30 append ld_library_path [gcc-set-multilib-library-path $GCC_UNDER_TEST]
31 set_ld_library_path_env_vars
33 # Main loop.
34 dg-runtest $tests "" $DEFAULT_CFLAGS
36 # All done.
37 dg-finish