mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 12:05:48 -04:00

Previously llvm-mc would silently accept code from testcase, that contains invalid metadata symbol in section declaration. Patch fixes the issue. Differential revision: https://reviews.llvm.org/D41641 llvm-svn: 321599
11 lines
273 B
ArmAsm
11 lines
273 B
ArmAsm
// RUN: not llvm-mc -triple x86_64-pc-linux-gnu %s \
|
|
// RUN: -filetype=obj -o %t.o 2>&1 | FileCheck %s
|
|
|
|
// Check we do not silently ignore invalid metadata symbol (123).
|
|
// CHECK: error: invalid metadata symbol
|
|
|
|
.section .foo,"a"
|
|
.quad 0
|
|
|
|
.section bar,"ao",@progbits,123
|