1 // Test invalid use of the .linkonce directive.
3 // RUN: not llvm-mc -triple i386-pc-win32 -filetype=obj %s 2>&1 | FileCheck %s
11 .linkonce associative comdat
16 // CHECK: error: unrecognized COMDAT type 'unknown'
19 // CHECK: error: unexpected token in directive
22 // CHECK: error: expected associated section name
25 // CHECK: error: cannot associate unknown section 'unknown'
26 .linkonce associative unknown
28 // CHECK: error: cannot associate a section with itself
29 .linkonce associative invalid
31 // CHECK: error: associated section must be a COMDAT section
32 .linkonce associative non_comdat
34 // CHECK: error: associated section cannot be itself associative
35 .linkonce associative assoc
37 // CHECK: error: section 'multi' is already linkonce