mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
09f104fc32
User may initialize a var with non-zero value and specify .bss section. E.g. : int a __attribute__((section(".bss"))) = 2; This patch converts an assertion to error report for better user experience. Differential Revision: http://reviews.llvm.org/D4199 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211455 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
220 B
ArmAsm
10 lines
220 B
ArmAsm
// RUN: not llvm-mc -filetype=obj -triple arm-linux-gnu %s -o %t 2>%t.out
|
|
// RUN: FileCheck --input-file=%t.out %s
|
|
// CHECK: non-zero initializer found in section '.bss'
|
|
.bss
|
|
.globl a
|
|
.align 2
|
|
a:
|
|
.long 1
|
|
.size a, 4
|