1 ;; Test that we get a parser error when we have a debug assign record with an
2 ;; incorrect number of arguments.
3 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
5 source_filename = "<stdin>"
7 define dso_local i32 @f(i32 %a) !dbg !7 {
9 ; CHECK: <stdin>:[[@LINE+1]]:50: error: Expected ',' here
10 #dbg_assign(i32 %a, !12, !DIExpression(), !14)
15 !llvm.module.flags = !{!3, !4, !5}
18 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 18.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
19 !1 = !DIFile(filename: "print.c", directory: "/tmp")
21 !3 = !{i32 2, !"Dwarf Version", i32 5}
22 !4 = !{i32 2, !"Debug Info Version", i32 3}
23 !5 = !{i32 1, !"wchar_size", i32 4}
24 !6 = !{!"clang version 18.0.0"}
25 !7 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 3, type: !8, scopeLine: 3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !11)
26 !8 = !DISubroutineType(types: !9)
28 !10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
30 !12 = !DILocalVariable(name: "a", arg: 1, scope: !7, file: !1, line: 3, type: !10)
31 !13 = !DILocalVariable(name: "b", scope: !7, file: !1, line: 3, type: !10)
32 !14 = !DILocation(line: 3, column: 15, scope: !7)
33 !15 = distinct !DIAssignID()
34 !16 = !DILocation(line: 3, column: 20, scope: !7)
35 !17 = !DILocation(line: 3, column: 25, scope: !7)
36 !18 = !DILocation(line: 3, column: 30, scope: !7)