reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
; RUN: llvm-rc /FO %t -- %p/Inputs/tag-stringtable-basic.rc
; RUN: llvm-readobj %t | FileCheck %s

; CHECK:      Resource type (int): STRINGTABLE (ID 6)
; CHECK-NEXT: Resource name (int): 1
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 32
; CHECK-NEXT: Characteristics: 50
; CHECK-NEXT: Data size: 40
; CHECK-NEXT: Data: (
; CHECK-NEXT:   0000: 01006100 01006200 01006300 01006400  |..a...b...c...d.|
; CHECK-NEXT:   0010: 00000000 00000000 00000000 00000000  |................|
; CHECK-NEXT:   0020: 00000000 00000000                    |........|
; CHECK-NEXT: )

; CHECK-DAG:  Resource type (int): STRINGTABLE (ID 6)
; CHECK-NEXT: Resource name (int): 2
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 0
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 40
; CHECK-NEXT: Data: (
; CHECK-NEXT:   0000: 02006200 62000200 63006300 00000000  |..b.b...c.c.....|
; CHECK-NEXT:   0010: 00000000 00000000 00000000 00000000  |................|
; CHECK-NEXT:   0020: 00000000 00000000                    |........|
; CHECK-NEXT: )

; CHECK-DAG:  Resource type (int): STRINGTABLE (ID 6)
; CHECK-NEXT: Resource name (int): 2
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 7172
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 100
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 80
; CHECK-NEXT: Data: (
; CHECK-NEXT:   0000: 05006800 65006C00 6C006F00 05007700  |..h.e.l.l.o...w.|
; CHECK-NEXT:   0010: 6F007200 6C006400 00000000 00000000  |o.r.l.d.........|
; CHECK-NEXT:   0020: 00000E00 73006F00 6D006500 74006800  |....s.o.m.e.t.h.|
; CHECK-NEXT:   0030: 69006E00 67002000 65006C00 73006500  |i.n.g. .e.l.s.e.|
; CHECK-NEXT:   0040: 00000000 00000000 00000000 00000000  |................|
; CHECK-NEXT: )

; CHECK-DAG:  Resource type (int): STRINGTABLE (ID 6)
; CHECK-NEXT: Resource name (int): 3
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 50
; CHECK-NEXT: Characteristics: 50
; CHECK-NEXT: Data size: 38
; CHECK-NEXT: Data: (
; CHECK-NEXT:   0000: 03006300 63006300 00000000 00000000  |..c.c.c.........|
; CHECK-NEXT:   0010: 00000000 00000000 00000000 00000000  |................|
; CHECK-NEXT:   0020: 00000000 0000                        |......|
; CHECK-NEXT: )

; CHECK-DAG:  Resource type (int): STRINGTABLE (ID 6)
; CHECK-NEXT: Resource name (int): 4096
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 7172
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 101
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 74
; CHECK-NEXT: Data: (
; CHECK-NEXT:   0000: 00000000 00000000 00000000 00000000  |................|
; CHECK-NEXT:   0010: 00000C00 6C006100 72006700 65002000  |....l.a.r.g.e. .|
; CHECK-NEXT:   0020: 6E007500 6D006200 65007200 00000000  |n.u.m.b.e.r.....|
; CHECK-NEXT:   0030: 00000000 00000900 6D006900 6E007500  |........m.i.n.u.|
; CHECK-NEXT:   0040: 73002000 6F006E00 6500               |s. .o.n.e.|
; CHECK-NEXT: )


; RUN: llvm-rc /N /FO %t0 -- %p/Inputs/tag-stringtable-basic.rc
; RUN: llvm-readobj %t0 | FileCheck %s --check-prefix=NULL

; NULL:      Resource type (int): STRINGTABLE (ID 6)
; NULL-NEXT: Resource name (int): 1
; NULL-NEXT: Data version: 0
; NULL-NEXT: Memory flags: 0x1030
; NULL-NEXT: Language ID: 1033
; NULL-NEXT: Version (major): 0
; NULL-NEXT: Version (minor): 32
; NULL-NEXT: Characteristics: 50
; NULL-NEXT: Data size: 52
; NULL-NEXT: Data: (
; NULL-NEXT:   0000: 02006100 00000200 62000000 02006300  |..a.....b.....c.|
; NULL-NEXT:   0010: 00000200 64000000 01000000 00000000  |....d...........|
; NULL-NEXT:   0020: 00000100 00000000 00000000 00000000  |................|
; NULL-NEXT:   0030: 00000000                             |....|
; NULL-NEXT: )

; NULL-DAG:  Resource type (int): STRINGTABLE (ID 6)
; NULL-NEXT: Resource name (int): 2
; NULL-NEXT: Data version: 0
; NULL-NEXT: Memory flags: 0x1030
; NULL-NEXT: Language ID: 1033
; NULL-NEXT: Version (major): 0
; NULL-NEXT: Version (minor): 0
; NULL-NEXT: Characteristics: 0
; NULL-NEXT: Data size: 44
; NULL-NEXT: Data: (
; NULL-NEXT:   0000: 03006200 62000000 03006300 63000000  |..b.b.....c.c...|
; NULL-NEXT:   0010: 00000000 00000000 00000000 00000000  |................|
; NULL-NEXT:   0020: 00000000 00000000 00000000           |............|
; NULL-NEXT: )

; NULL-DAG:  Resource type (int): STRINGTABLE (ID 6)
; NULL-NEXT: Resource name (int): 2
; NULL-NEXT: Data version: 0
; NULL-NEXT: Memory flags: 0x1030
; NULL-NEXT: Language ID: 7172
; NULL-NEXT: Version (major): 0
; NULL-NEXT: Version (minor): 100
; NULL-NEXT: Characteristics: 0
; NULL-NEXT: Data size: 86
; NULL-NEXT: Data: (
; NULL-NEXT:   0000: 06006800 65006C00 6C006F00 00000600  |..h.e.l.l.o.....|
; NULL-NEXT:   0010: 77006F00 72006C00 64000000 00000000  |w.o.r.l.d.......|
; NULL-NEXT:   0020: 00000000 00000F00 73006F00 6D006500  |........s.o.m.e.|
; NULL-NEXT:   0030: 74006800 69006E00 67002000 65006C00  |t.h.i.n.g. .e.l.|
; NULL-NEXT:   0040: 73006500 00000000 00000000 00000000  |s.e.............|
; NULL-NEXT:   0050: 00000000 0000                        |......|
; NULL-NEXT: )

; NULL-DAG:  Resource type (int): STRINGTABLE (ID 6)
; NULL-NEXT: Resource name (int): 3
; NULL-NEXT: Data version: 0
; NULL-NEXT: Memory flags: 0x1030
; NULL-NEXT: Language ID: 1033
; NULL-NEXT: Version (major): 0
; NULL-NEXT: Version (minor): 50
; NULL-NEXT: Characteristics: 50
; NULL-NEXT: Data size: 40
; NULL-NEXT: Data: (
; NULL-NEXT:   0000: 04006300 63006300 00000000 00000000  |..c.c.c.........|
; NULL-NEXT:   0010: 00000000 00000000 00000000 00000000  |................|
; NULL-NEXT:   0020: 00000000 00000000                    |........|
; NULL-NEXT: )

; NULL-DAG:  Resource type (int): STRINGTABLE (ID 6)
; NULL-NEXT: Resource name (int): 4096
; NULL-NEXT: Data version: 0
; NULL-NEXT: Memory flags: 0x1030
; NULL-NEXT: Language ID: 7172
; NULL-NEXT: Version (major): 0
; NULL-NEXT: Version (minor): 101
; NULL-NEXT: Characteristics: 0
; NULL-NEXT: Data size: 78
; NULL-NEXT: Data: (
; NULL-NEXT:   0000: 00000000 00000000 00000000 00000000  |................|
; NULL-NEXT:   0010: 00000D00 6C006100 72006700 65002000  |....l.a.r.g.e. .|
; NULL-NEXT:   0020: 6E007500 6D006200 65007200 00000000  |n.u.m.b.e.r.....|
; NULL-NEXT:   0030: 00000000 00000000 0A006D00 69006E00  |..........m.i.n.|
; NULL-NEXT:   0040: 75007300 20006F00 6E006500 0000      |u.s. .o.n.e...|
; NULL-NEXT: )


; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-stringtable-same-ids.rc 2>&1 | FileCheck %s --check-prefix SAMEIDS
; SAMEIDS: llvm-rc: Multiple STRINGTABLE strings located under ID 1