• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: cannot make section associative with .linkonce
23.linkonce associative
24
25// CHECK: error: section 'multi' is already linkonce
26.section multi
27.linkonce discard
28.linkonce same_size
29