aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/dll.x
blob: 63a1e180e2c3d4fff9402da92d318cbbbd02152f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This test examines the attribute support for DLLs.
# Only COFF/PE formats support DLLs, (plus, as a special case
# the mcore-elf toolchain), so the code here tries to determine
# the file format and decide whether the test should be marked
# as unsupported.

set torture_eval_before_compile {

    if ![istarget "mcore-*-elf"] {
       
        set objformat [gcc_target_object_format]
    
        if { $objformat != "pe" } {
            unsupported "dll.c"
            return 1
        }
    }
}

return 0