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.
6
7set torture_eval_before_compile {
8
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    }
18}
19
20return 0
21