gn build: Merge r374476
[llvm-complete.git] / test / MC / COFF / linkonce-invalid.s
blobcc3a27c90333e6c5869828769856b219a5825325
1 // Test invalid use of the .linkonce directive.
2 //
3 // RUN: not llvm-mc -triple i386-pc-win32 -filetype=obj %s 2>&1 | FileCheck %s
5 .section non_comdat
7 .section comdat
8 .linkonce discard
10 .section assoc
11 .linkonce associative comdat
14 .section invalid
16 // CHECK: error: unrecognized COMDAT type 'unknown'
17 .linkonce unknown
19 // CHECK: error: unexpected token in directive
20 .linkonce discard foo
22 // CHECK: error: cannot make section associative with .linkonce
23 .linkonce associative
25 // CHECK: error: section 'multi' is already linkonce
26 .section multi
27 .linkonce discard
28 .linkonce same_size