llvm/llvm/test/MC/ELF/section-sym-err.s

// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.o 2>&1 | FileCheck %s

.section foo
foo:

// CHECK: error: symbol 'foo' is already defined