llvm-6502/test/Assembler/invalid-dilocalvariable-arg-large.ll
Duncan P. N. Exon Smith 16fb1632a1 DebugInfo: Really support 2^16 arguments in a subprogram
As a follow-up to r235955, actually support up to 65535 arguments in a
subprogram.  r235955 missed assembly support, having only tested the new
limit via C++ unit tests.  Code patch by Amjad Aboud.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238854 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-02 17:17:44 +00:00

7 lines
272 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
!0 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !{}, arg: 65535)
; CHECK: <stdin>:[[@LINE+1]]:66: error: value for 'arg' too large, limit is 65535
!1 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !{}, arg: 65536)