Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

29 lines
585 B
ArmAsm

// 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