* g++spec.c (lang_specific_driver): An -Xlinker or -Wl, option
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / dll.x
blob63a1e180e2c3d4fff9402da92d318cbbbd02152f
1 # This test examines the attribute support for DLLs.
2 # Only COFF/PE formats support DLLs, (plus, as a special case
3 # the mcore-elf toolchain), so the code here tries to determine
4 # the file format and decide whether the test should be marked
5 # as unsupported.
7 set torture_eval_before_compile {
9     if ![istarget "mcore-*-elf"] {
10        
11         set objformat [gcc_target_object_format]
12     
13         if { $objformat != "pe" } {
14             unsupported "dll.c"
15             return 1
16         }
17     }
20 return 0