mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
33 lines
1.7 KiB
C
33 lines
1.7 KiB
C
// #target: macos-x64
|
|
// #debuginfo: yes
|
|
const char AA @private = 1;
|
|
const char BB = 200 ;
|
|
const uint CC @private = ~(uint)(0);
|
|
const FOO @private = ~(uint)(0);
|
|
|
|
/* #expect: constants.ll
|
|
|
|
@constants.AA = protected unnamed_addr constant i8 1, align 1
|
|
@constants.BB = local_unnamed_addr constant i8 -56, align 1
|
|
@constants.CC = protected unnamed_addr constant i32 -1, align 4
|
|
@constants.FOO = protected unnamed_addr constant i32 -1, align 4
|
|
!llvm.module.flags = !{!0, !1, !2, !3}
|
|
!llvm.dbg.cu = !{!4}
|
|
!0 = !{i32 2, !"Dwarf Version", i32 4}
|
|
!1 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!2 = !{i32 2, !"frame-pointer", i32 2}
|
|
!3 = !{i32 1, !"uwtable", i32 2}
|
|
!4 = distinct !DICompileUnit(language: DW_LANG_C11, file: !5, producer: "c3c", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !6, splitDebugInlining: false)
|
|
!5 = !DIFile(filename: "constants.c3",
|
|
!6 = !{!7, !10, !12, !15}
|
|
!7 = !DIGlobalVariableExpression(var: !8, expr: !DIExpression())
|
|
!8 = distinct !DIGlobalVariable(name: "AA", linkageName: "constants.AA", scope: !5
|
|
!9 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_unsigned_char)
|
|
!10 = !DIGlobalVariableExpression(var: !11, expr: !DIExpression())
|
|
!11 = distinct !DIGlobalVariable(name: "BB", linkageName: "constants.BB", scope: !5, file: !5, line: 2
|
|
!12 = !DIGlobalVariableExpression(var: !13, expr: !DIExpression())
|
|
!13 = distinct !DIGlobalVariable(name: "CC", linkageName: "constants.CC", scope: !5, file: !5, line: 3
|
|
!14 = !DIBasicType(name: "uint", size: 32, encoding: DW_ATE_unsigned)
|
|
!15 = !DIGlobalVariableExpression(var: !16, expr: !DIExpression())
|
|
!16 = distinct !DIGlobalVariable(name: "FOO", linkageName: "constants.FOO", scope: !5, file: !5, line: 4, type: !14, isLocal: true, isDefinition: true, align: 4)
|