view test/MC/COFF/linkonce-invalid.s @ 122:36195a0db682

merging ( incomplete )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 17 Nov 2017 20:32:31 +0900 (2017-11-17)
parents 54457678186b
children
line wrap: on
line source
// 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

// CHECK: error: cannot make section associative with .linkonce
.linkonce associative

// CHECK: error: section 'multi' is already linkonce
.section multi
.linkonce discard
.linkonce same_size