mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
8064628379
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185753 91177308-0d34-0410-b5e6-96231b3b80d8
41 lines
938 B
ArmAsm
41 lines
938 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: expected associated section name
|
|
.linkonce associative
|
|
|
|
// CHECK: error: cannot associate unknown section 'unknown'
|
|
.linkonce associative unknown
|
|
|
|
// CHECK: error: cannot associate a section with itself
|
|
.linkonce associative invalid
|
|
|
|
// CHECK: error: associated section must be a COMDAT section
|
|
.linkonce associative non_comdat
|
|
|
|
// CHECK: error: associated section cannot be itself associative
|
|
.linkonce associative assoc
|
|
|
|
// CHECK: error: section 'multi' is already linkonce
|
|
.section multi
|
|
.linkonce discard
|
|
.linkonce same_size
|