29 lines · plain
1// Test invalid use of the .linkonce directive.2//3// RUN: not llvm-mc -triple i386-pc-win32 -filetype=obj %s 2>&1 | FileCheck %s4 5.section non_comdat6 7.section comdat8.linkonce discard9 10.section assoc11.linkonce associative comdat12 13 14.section invalid15 16// CHECK: error: unrecognized COMDAT type 'unknown'17.linkonce unknown18 19// CHECK: error: unexpected token in directive20.linkonce discard foo21 22// CHECK: error: cannot make section associative with .linkonce23.linkonce associative24 25// CHECK: error: section 'multi' is already linkonce26.section multi27.linkonce discard28.linkonce same_size29