Don't use nopl in cpus that don't support it.
[oota-llvm.git] / test / MC / COFF / linkonce-invalid.s
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
4
5 .section non_comdat
6
7 .section comdat
8 .linkonce discard
9
10 .section assoc
11 .linkonce associative comdat
12
13
14 .section invalid
15
16 // CHECK: error: unrecognized COMDAT type 'unknown'
17 .linkonce unknown
18
19 // CHECK: error: unexpected token in directive
20 .linkonce discard foo
21
22 // CHECK: error: expected associated section name
23 .linkonce associative
24
25 // CHECK: error: cannot associate unknown section 'unknown'
26 .linkonce associative unknown
27
28 // CHECK: error: cannot associate a section with itself
29 .linkonce associative invalid
30
31 // CHECK: error: associated section must be a COMDAT section
32 .linkonce associative non_comdat
33
34 // CHECK: error: associated section cannot be itself associative
35 .linkonce associative assoc
36
37 // CHECK: error: section 'multi' is already linkonce
38 .section multi
39 .linkonce discard
40 .linkonce same_size