2013-07-06 20:13:10 +08:00
|
|
|
// Test invalid use of the .linkonce directive.
|
|
|
|
//
|
|
|
|
// RUN: not llvm-mc -triple i386-pc-win32 -filetype=obj %s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
.section non_comdat
|
|
|
|
|
|
|
|
.section comdat
|
|
|
|
.linkonce discard
|
|
|
|
|
|
|
|
.section assoc
|
|
|
|
.linkonce associative comdat
|
|
|
|
|
|
|
|
|
|
|
|
.section invalid
|
|
|
|
|
|
|
|
// CHECK: error: unrecognized COMDAT type 'unknown'
|
|
|
|
.linkonce unknown
|
|
|
|
|
|
|
|
// CHECK: error: unexpected token in directive
|
|
|
|
.linkonce discard foo
|
|
|
|
|
2014-06-07 03:26:12 +08:00
|
|
|
// CHECK: error: cannot make section associative with .linkonce
|
2013-07-06 20:13:10 +08:00
|
|
|
.linkonce associative
|
|
|
|
|
|
|
|
// CHECK: error: section 'multi' is already linkonce
|
|
|
|
.section multi
|
|
|
|
.linkonce discard
|
|
|
|
.linkonce same_size
|