cpp_interop.carbon 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/none.carbon
  6. // EXTRA-ARGS: --dump-raw-sem-ir --builtin-sem-ir
  7. //
  8. // AUTOUPDATE
  9. // TIP: To test this file alone, run:
  10. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/basics/raw_sem_ir/cpp_interop.carbon
  11. // TIP: To dump output, run:
  12. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/basics/raw_sem_ir/cpp_interop.carbon
  13. // --- header.h
  14. struct X {
  15. X *p;
  16. };
  17. void f(X x = {}) {
  18. }
  19. // --- import.carbon
  20. import Cpp library "header.h";
  21. fn G(x: Cpp.X) {
  22. Cpp.f();
  23. Cpp.f(x);
  24. }
  25. // CHECK:STDOUT: ---
  26. // CHECK:STDOUT: filename: import.carbon
  27. // CHECK:STDOUT: sem_ir:
  28. // CHECK:STDOUT: import_irs:
  29. // CHECK:STDOUT: ir0: {decl_id: inst<none>, is_export: false}
  30. // CHECK:STDOUT: ir1: {decl_id: inst<none>, is_export: false}
  31. // CHECK:STDOUT: import_ir_insts:
  32. // CHECK:STDOUT: import_ir_inst0: {ir_id: ir1, clang_source_loc_id: clang_source_loc0}
  33. // CHECK:STDOUT: clang_decls:
  34. // CHECK:STDOUT: clang_decl_id0: {key: "<translation unit>", inst_id: inst16}
  35. // CHECK:STDOUT: clang_decl_id1: {key: "struct X {}", inst_id: inst18}
  36. // CHECK:STDOUT: clang_decl_id2: {key: {decl: "void f(X x = {})", num_params: 0}, inst_id: inst41}
  37. // CHECK:STDOUT: clang_decl_id3: {key: {decl: "extern void f__carbon_thunk()", num_params: 0}, inst_id: inst44}
  38. // CHECK:STDOUT: clang_decl_id4: {key: {decl: "void f(X x = {})", num_params: 1}, inst_id: inst55}
  39. // CHECK:STDOUT: clang_decl_id5: {key: {decl: "extern void f__carbon_thunk(X * _Nonnull x)", num_params: 1}, inst_id: inst64}
  40. // CHECK:STDOUT: name_scopes:
  41. // CHECK:STDOUT: name_scope0: {inst: inst14, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst16, name1: inst27}}
  42. // CHECK:STDOUT: name_scope1: {inst: inst16, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name3: inst18, name4: inst38}}
  43. // CHECK:STDOUT: name_scope2: {inst: inst18, parent_scope: name_scope1, has_error: false, extended_scopes: [], names: {}}
  44. // CHECK:STDOUT: entity_names:
  45. // CHECK:STDOUT: entity_name0: {name: name2, parent_scope: name_scope<none>, index: -1, is_template: 0, clang_decl_id: clang_decl_id<none>}
  46. // CHECK:STDOUT: entity_name1: {name: name2, parent_scope: name_scope<none>, index: -1, is_template: 0, clang_decl_id: clang_decl_id<none>}
  47. // CHECK:STDOUT: entity_name2: {name: name2, parent_scope: name_scope<none>, index: -1, is_template: 0, clang_decl_id: clang_decl_id<none>}
  48. // CHECK:STDOUT: functions:
  49. // CHECK:STDOUT: function0: {name: name1, parent_scope: name_scope0, call_params_id: inst_block6, body: [inst_block9]}
  50. // CHECK:STDOUT: function1: {name: name4, parent_scope: name_scope1, call_params_id: inst_block_empty}
  51. // CHECK:STDOUT: function2: {name: name6, parent_scope: name_scope1, call_params_id: inst_block_empty}
  52. // CHECK:STDOUT: function3: {name: name4, parent_scope: name_scope1, call_params_id: inst_block13}
  53. // CHECK:STDOUT: function4: {name: name6, parent_scope: name_scope1, call_params_id: inst_block18}
  54. // CHECK:STDOUT: classes:
  55. // CHECK:STDOUT: class0: {name: name3, parent_scope: name_scope1, self_type_id: type(inst19), inheritance_kind: Base, is_dynamic: 0, scope_id: name_scope2, body_block_id: inst_block10, adapt_id: inst<none>, base_id: inst<none>, complete_type_witness_id: inst33, vtable_decl_id: inst<none>}}
  56. // CHECK:STDOUT: generics: {}
  57. // CHECK:STDOUT: specifics: {}
  58. // CHECK:STDOUT: struct_type_fields:
  59. // CHECK:STDOUT: struct_type_fields0: {}
  60. // CHECK:STDOUT: types:
  61. // CHECK:STDOUT: 'type(TypeType)':
  62. // CHECK:STDOUT: value_repr: {kind: copy, type: type(TypeType)}
  63. // CHECK:STDOUT: 'type(Error)':
  64. // CHECK:STDOUT: value_repr: {kind: copy, type: type(Error)}
  65. // CHECK:STDOUT: 'type(inst(NamespaceType))':
  66. // CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(NamespaceType))}
  67. // CHECK:STDOUT: 'type(inst28)':
  68. // CHECK:STDOUT: value_repr: {kind: none, type: type(inst29)}
  69. // CHECK:STDOUT: 'type(inst29)':
  70. // CHECK:STDOUT: value_repr: {kind: none, type: type(inst29)}
  71. // CHECK:STDOUT: 'type(inst(WitnessType))':
  72. // CHECK:STDOUT: value_repr: {kind: copy, type: type(inst(WitnessType))}
  73. // CHECK:STDOUT: 'type(inst32)':
  74. // CHECK:STDOUT: value_repr: {kind: pointer, type: type(inst35)}
  75. // CHECK:STDOUT: 'type(inst35)':
  76. // CHECK:STDOUT: value_repr: {kind: copy, type: type(inst35)}
  77. // CHECK:STDOUT: 'type(inst19)':
  78. // CHECK:STDOUT: value_repr: {kind: pointer, type: type(inst35)}
  79. // CHECK:STDOUT: 'type(inst37)':
  80. // CHECK:STDOUT: value_repr: {kind: none, type: type(inst29)}
  81. // CHECK:STDOUT: 'type(inst42)':
  82. // CHECK:STDOUT: value_repr: {kind: none, type: type(inst29)}
  83. // CHECK:STDOUT: 'type(inst45)':
  84. // CHECK:STDOUT: value_repr: {kind: none, type: type(inst29)}
  85. // CHECK:STDOUT: 'type(inst56)':
  86. // CHECK:STDOUT: value_repr: {kind: none, type: type(inst29)}
  87. // CHECK:STDOUT: 'type(inst65)':
  88. // CHECK:STDOUT: value_repr: {kind: none, type: type(inst29)}
  89. // CHECK:STDOUT: 'type(inst58)':
  90. // CHECK:STDOUT: value_repr: {kind: copy, type: type(inst58)}
  91. // CHECK:STDOUT: insts:
  92. // CHECK:STDOUT: 'inst(TypeType)': {kind: TypeType, type: type(TypeType)}
  93. // CHECK:STDOUT: 'inst(AutoType)': {kind: AutoType, type: type(TypeType)}
  94. // CHECK:STDOUT: 'inst(BoolType)': {kind: BoolType, type: type(TypeType)}
  95. // CHECK:STDOUT: 'inst(BoundMethodType)': {kind: BoundMethodType, type: type(TypeType)}
  96. // CHECK:STDOUT: 'inst(CharLiteralType)': {kind: CharLiteralType, type: type(TypeType)}
  97. // CHECK:STDOUT: 'inst(ErrorInst)': {kind: ErrorInst, type: type(Error)}
  98. // CHECK:STDOUT: 'inst(FloatLiteralType)': {kind: FloatLiteralType, type: type(TypeType)}
  99. // CHECK:STDOUT: 'inst(ImplWitnessTablePlaceholder)': {kind: ImplWitnessTablePlaceholder, type: type(TypeType)}
  100. // CHECK:STDOUT: 'inst(InstType)': {kind: InstType, type: type(TypeType)}
  101. // CHECK:STDOUT: 'inst(IntLiteralType)': {kind: IntLiteralType, type: type(TypeType)}
  102. // CHECK:STDOUT: 'inst(NamespaceType)': {kind: NamespaceType, type: type(TypeType)}
  103. // CHECK:STDOUT: 'inst(SpecificFunctionType)': {kind: SpecificFunctionType, type: type(TypeType)}
  104. // CHECK:STDOUT: 'inst(VtableType)': {kind: VtableType, type: type(TypeType)}
  105. // CHECK:STDOUT: 'inst(WitnessType)': {kind: WitnessType, type: type(TypeType)}
  106. // CHECK:STDOUT: inst14: {kind: Namespace, arg0: name_scope0, arg1: inst<none>, type: type(inst(NamespaceType))}
  107. // CHECK:STDOUT: inst15: {kind: ImportCppDecl}
  108. // CHECK:STDOUT: inst16: {kind: Namespace, arg0: name_scope1, arg1: inst15, type: type(inst(NamespaceType))}
  109. // CHECK:STDOUT: inst17: {kind: NameRef, arg0: name0, arg1: inst16, type: type(inst(NamespaceType))}
  110. // CHECK:STDOUT: inst18: {kind: ClassDecl, arg0: class0, arg1: inst_block<none>, type: type(TypeType)}
  111. // CHECK:STDOUT: inst19: {kind: ClassType, arg0: class0, arg1: specific<none>, type: type(TypeType)}
  112. // CHECK:STDOUT: inst20: {kind: NameRef, arg0: name3, arg1: inst18, type: type(TypeType)}
  113. // CHECK:STDOUT: inst21: {kind: BindName, arg0: entity_name0, arg1: inst25, type: type(inst19)}
  114. // CHECK:STDOUT: inst22: {kind: PatternType, arg0: inst19, type: type(TypeType)}
  115. // CHECK:STDOUT: inst23: {kind: BindingPattern, arg0: entity_name0, type: type(inst22)}
  116. // CHECK:STDOUT: inst24: {kind: ValueParamPattern, arg0: inst23, arg1: call_param0, type: type(inst22)}
  117. // CHECK:STDOUT: inst25: {kind: ValueParam, arg0: call_param0, arg1: name2, type: type(inst19)}
  118. // CHECK:STDOUT: inst26: {kind: SpliceBlock, arg0: inst_block4, arg1: inst20, type: type(TypeType)}
  119. // CHECK:STDOUT: inst27: {kind: FunctionDecl, arg0: function0, arg1: inst_block8, type: type(inst28)}
  120. // CHECK:STDOUT: inst28: {kind: FunctionType, arg0: function0, arg1: specific<none>, type: type(TypeType)}
  121. // CHECK:STDOUT: inst29: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
  122. // CHECK:STDOUT: inst30: {kind: StructValue, arg0: inst_block_empty, type: type(inst28)}
  123. // CHECK:STDOUT: inst31: {kind: CustomLayoutType, arg0: struct_type_fields0, arg1: custom_layout1, type: type(TypeType)}
  124. // CHECK:STDOUT: inst32: {kind: CustomLayoutType, arg0: struct_type_fields0, arg1: custom_layout1, type: type(TypeType)}
  125. // CHECK:STDOUT: inst33: {kind: CompleteTypeWitness, arg0: inst31, type: type(inst(WitnessType))}
  126. // CHECK:STDOUT: inst34: {kind: CompleteTypeWitness, arg0: inst32, type: type(inst(WitnessType))}
  127. // CHECK:STDOUT: inst35: {kind: PointerType, arg0: inst32, type: type(TypeType)}
  128. // CHECK:STDOUT: inst36: {kind: NameRef, arg0: name0, arg1: inst16, type: type(inst(NamespaceType))}
  129. // CHECK:STDOUT: inst37: {kind: CppOverloadSetType, arg0: cpp_overload_set0, arg1: specific<none>, type: type(TypeType)}
  130. // CHECK:STDOUT: inst38: {kind: CppOverloadSetValue, arg0: cpp_overload_set0, type: type(inst37)}
  131. // CHECK:STDOUT: inst39: {kind: CppOverloadSetValue, arg0: cpp_overload_set0, type: type(inst37)}
  132. // CHECK:STDOUT: inst40: {kind: NameRef, arg0: name4, arg1: inst38, type: type(inst37)}
  133. // CHECK:STDOUT: inst41: {kind: FunctionDecl, arg0: function1, arg1: inst_block_empty, type: type(inst42)}
  134. // CHECK:STDOUT: inst42: {kind: FunctionType, arg0: function1, arg1: specific<none>, type: type(TypeType)}
  135. // CHECK:STDOUT: inst43: {kind: StructValue, arg0: inst_block_empty, type: type(inst42)}
  136. // CHECK:STDOUT: inst44: {kind: FunctionDecl, arg0: function2, arg1: inst_block_empty, type: type(inst45)}
  137. // CHECK:STDOUT: inst45: {kind: FunctionType, arg0: function2, arg1: specific<none>, type: type(TypeType)}
  138. // CHECK:STDOUT: inst46: {kind: StructValue, arg0: inst_block_empty, type: type(inst45)}
  139. // CHECK:STDOUT: inst47: {kind: Call, arg0: inst44, arg1: inst_block_empty, type: type(inst29)}
  140. // CHECK:STDOUT: inst48: {kind: NameRef, arg0: name0, arg1: inst16, type: type(inst(NamespaceType))}
  141. // CHECK:STDOUT: inst49: {kind: NameRef, arg0: name4, arg1: inst38, type: type(inst37)}
  142. // CHECK:STDOUT: inst50: {kind: NameRef, arg0: name2, arg1: inst21, type: type(inst19)}
  143. // CHECK:STDOUT: inst51: {kind: BindName, arg0: entity_name1, arg1: inst54, type: type(inst19)}
  144. // CHECK:STDOUT: inst52: {kind: BindingPattern, arg0: entity_name1, type: type(inst22)}
  145. // CHECK:STDOUT: inst53: {kind: ValueParamPattern, arg0: inst52, arg1: call_param0, type: type(inst22)}
  146. // CHECK:STDOUT: inst54: {kind: ValueParam, arg0: call_param0, arg1: name2, type: type(inst19)}
  147. // CHECK:STDOUT: inst55: {kind: FunctionDecl, arg0: function3, arg1: inst_block15, type: type(inst56)}
  148. // CHECK:STDOUT: inst56: {kind: FunctionType, arg0: function3, arg1: specific<none>, type: type(TypeType)}
  149. // CHECK:STDOUT: inst57: {kind: StructValue, arg0: inst_block_empty, type: type(inst56)}
  150. // CHECK:STDOUT: inst58: {kind: PointerType, arg0: inst19, type: type(TypeType)}
  151. // CHECK:STDOUT: inst59: {kind: BindName, arg0: entity_name2, arg1: inst63, type: type(inst58)}
  152. // CHECK:STDOUT: inst60: {kind: PatternType, arg0: inst58, type: type(TypeType)}
  153. // CHECK:STDOUT: inst61: {kind: BindingPattern, arg0: entity_name2, type: type(inst60)}
  154. // CHECK:STDOUT: inst62: {kind: ValueParamPattern, arg0: inst61, arg1: call_param0, type: type(inst60)}
  155. // CHECK:STDOUT: inst63: {kind: ValueParam, arg0: call_param0, arg1: name2, type: type(inst58)}
  156. // CHECK:STDOUT: inst64: {kind: FunctionDecl, arg0: function4, arg1: inst_block20, type: type(inst65)}
  157. // CHECK:STDOUT: inst65: {kind: FunctionType, arg0: function4, arg1: specific<none>, type: type(TypeType)}
  158. // CHECK:STDOUT: inst66: {kind: StructValue, arg0: inst_block_empty, type: type(inst65)}
  159. // CHECK:STDOUT: inst67: {kind: ValueAsRef, arg0: inst50, type: type(inst19)}
  160. // CHECK:STDOUT: inst68: {kind: AddrOf, arg0: inst67, type: type(inst58)}
  161. // CHECK:STDOUT: inst69: {kind: Call, arg0: inst64, arg1: inst_block22, type: type(inst29)}
  162. // CHECK:STDOUT: inst70: {kind: Return}
  163. // CHECK:STDOUT: constant_values:
  164. // CHECK:STDOUT: values:
  165. // CHECK:STDOUT: 'inst(TypeType)': concrete_constant(inst(TypeType))
  166. // CHECK:STDOUT: 'inst(AutoType)': concrete_constant(inst(AutoType))
  167. // CHECK:STDOUT: 'inst(BoolType)': concrete_constant(inst(BoolType))
  168. // CHECK:STDOUT: 'inst(BoundMethodType)': concrete_constant(inst(BoundMethodType))
  169. // CHECK:STDOUT: 'inst(CharLiteralType)': concrete_constant(inst(CharLiteralType))
  170. // CHECK:STDOUT: 'inst(ErrorInst)': concrete_constant(inst(ErrorInst))
  171. // CHECK:STDOUT: 'inst(FloatLiteralType)': concrete_constant(inst(FloatLiteralType))
  172. // CHECK:STDOUT: 'inst(ImplWitnessTablePlaceholder)': concrete_constant(inst(ImplWitnessTablePlaceholder))
  173. // CHECK:STDOUT: 'inst(InstType)': concrete_constant(inst(InstType))
  174. // CHECK:STDOUT: 'inst(IntLiteralType)': concrete_constant(inst(IntLiteralType))
  175. // CHECK:STDOUT: 'inst(NamespaceType)': concrete_constant(inst(NamespaceType))
  176. // CHECK:STDOUT: 'inst(SpecificFunctionType)': concrete_constant(inst(SpecificFunctionType))
  177. // CHECK:STDOUT: 'inst(VtableType)': concrete_constant(inst(VtableType))
  178. // CHECK:STDOUT: 'inst(WitnessType)': concrete_constant(inst(WitnessType))
  179. // CHECK:STDOUT: inst14: concrete_constant(inst14)
  180. // CHECK:STDOUT: inst16: concrete_constant(inst16)
  181. // CHECK:STDOUT: inst17: concrete_constant(inst16)
  182. // CHECK:STDOUT: inst18: concrete_constant(inst19)
  183. // CHECK:STDOUT: inst19: concrete_constant(inst19)
  184. // CHECK:STDOUT: inst20: concrete_constant(inst19)
  185. // CHECK:STDOUT: inst22: concrete_constant(inst22)
  186. // CHECK:STDOUT: inst23: concrete_constant(inst23)
  187. // CHECK:STDOUT: inst24: concrete_constant(inst24)
  188. // CHECK:STDOUT: inst26: concrete_constant(inst19)
  189. // CHECK:STDOUT: inst27: concrete_constant(inst30)
  190. // CHECK:STDOUT: inst28: concrete_constant(inst28)
  191. // CHECK:STDOUT: inst29: concrete_constant(inst29)
  192. // CHECK:STDOUT: inst30: concrete_constant(inst30)
  193. // CHECK:STDOUT: inst31: concrete_constant(inst32)
  194. // CHECK:STDOUT: inst32: concrete_constant(inst32)
  195. // CHECK:STDOUT: inst33: concrete_constant(inst34)
  196. // CHECK:STDOUT: inst34: concrete_constant(inst34)
  197. // CHECK:STDOUT: inst35: concrete_constant(inst35)
  198. // CHECK:STDOUT: inst36: concrete_constant(inst16)
  199. // CHECK:STDOUT: inst37: concrete_constant(inst37)
  200. // CHECK:STDOUT: inst38: concrete_constant(inst39)
  201. // CHECK:STDOUT: inst39: concrete_constant(inst39)
  202. // CHECK:STDOUT: inst40: concrete_constant(inst39)
  203. // CHECK:STDOUT: inst41: concrete_constant(inst43)
  204. // CHECK:STDOUT: inst42: concrete_constant(inst42)
  205. // CHECK:STDOUT: inst43: concrete_constant(inst43)
  206. // CHECK:STDOUT: inst44: concrete_constant(inst46)
  207. // CHECK:STDOUT: inst45: concrete_constant(inst45)
  208. // CHECK:STDOUT: inst46: concrete_constant(inst46)
  209. // CHECK:STDOUT: inst48: concrete_constant(inst16)
  210. // CHECK:STDOUT: inst49: concrete_constant(inst39)
  211. // CHECK:STDOUT: inst52: concrete_constant(inst52)
  212. // CHECK:STDOUT: inst53: concrete_constant(inst53)
  213. // CHECK:STDOUT: inst55: concrete_constant(inst57)
  214. // CHECK:STDOUT: inst56: concrete_constant(inst56)
  215. // CHECK:STDOUT: inst57: concrete_constant(inst57)
  216. // CHECK:STDOUT: inst58: concrete_constant(inst58)
  217. // CHECK:STDOUT: inst60: concrete_constant(inst60)
  218. // CHECK:STDOUT: inst61: concrete_constant(inst61)
  219. // CHECK:STDOUT: inst62: concrete_constant(inst62)
  220. // CHECK:STDOUT: inst64: concrete_constant(inst66)
  221. // CHECK:STDOUT: inst65: concrete_constant(inst65)
  222. // CHECK:STDOUT: inst66: concrete_constant(inst66)
  223. // CHECK:STDOUT: symbolic_constants: {}
  224. // CHECK:STDOUT: inst_blocks:
  225. // CHECK:STDOUT: inst_block_empty: {}
  226. // CHECK:STDOUT: exports:
  227. // CHECK:STDOUT: 0: inst27
  228. // CHECK:STDOUT: imports:
  229. // CHECK:STDOUT: 0: inst16
  230. // CHECK:STDOUT: 1: inst18
  231. // CHECK:STDOUT: 2: inst38
  232. // CHECK:STDOUT: 3: inst41
  233. // CHECK:STDOUT: 4: inst44
  234. // CHECK:STDOUT: 5: inst55
  235. // CHECK:STDOUT: 6: inst64
  236. // CHECK:STDOUT: global_init: {}
  237. // CHECK:STDOUT: inst_block4:
  238. // CHECK:STDOUT: 0: inst17
  239. // CHECK:STDOUT: 1: inst20
  240. // CHECK:STDOUT: inst_block5:
  241. // CHECK:STDOUT: 0: inst24
  242. // CHECK:STDOUT: inst_block6:
  243. // CHECK:STDOUT: 0: inst25
  244. // CHECK:STDOUT: inst_block7:
  245. // CHECK:STDOUT: 0: inst23
  246. // CHECK:STDOUT: 1: inst24
  247. // CHECK:STDOUT: inst_block8:
  248. // CHECK:STDOUT: 0: inst25
  249. // CHECK:STDOUT: 1: inst26
  250. // CHECK:STDOUT: 2: inst21
  251. // CHECK:STDOUT: inst_block9:
  252. // CHECK:STDOUT: 0: inst36
  253. // CHECK:STDOUT: 1: inst40
  254. // CHECK:STDOUT: 2: inst47
  255. // CHECK:STDOUT: 3: inst48
  256. // CHECK:STDOUT: 4: inst49
  257. // CHECK:STDOUT: 5: inst50
  258. // CHECK:STDOUT: 6: inst67
  259. // CHECK:STDOUT: 7: inst68
  260. // CHECK:STDOUT: 8: inst69
  261. // CHECK:STDOUT: 9: inst70
  262. // CHECK:STDOUT: inst_block10:
  263. // CHECK:STDOUT: 0: inst31
  264. // CHECK:STDOUT: 1: inst33
  265. // CHECK:STDOUT: inst_block11: {}
  266. // CHECK:STDOUT: inst_block12:
  267. // CHECK:STDOUT: 0: inst53
  268. // CHECK:STDOUT: inst_block13:
  269. // CHECK:STDOUT: 0: inst54
  270. // CHECK:STDOUT: inst_block14:
  271. // CHECK:STDOUT: 0: inst52
  272. // CHECK:STDOUT: 1: inst53
  273. // CHECK:STDOUT: inst_block15:
  274. // CHECK:STDOUT: 0: inst54
  275. // CHECK:STDOUT: 1: inst51
  276. // CHECK:STDOUT: inst_block16: {}
  277. // CHECK:STDOUT: inst_block17:
  278. // CHECK:STDOUT: 0: inst62
  279. // CHECK:STDOUT: inst_block18:
  280. // CHECK:STDOUT: 0: inst63
  281. // CHECK:STDOUT: inst_block19:
  282. // CHECK:STDOUT: 0: inst61
  283. // CHECK:STDOUT: 1: inst62
  284. // CHECK:STDOUT: inst_block20:
  285. // CHECK:STDOUT: 0: inst63
  286. // CHECK:STDOUT: 1: inst59
  287. // CHECK:STDOUT: inst_block21:
  288. // CHECK:STDOUT: 0: inst50
  289. // CHECK:STDOUT: inst_block22:
  290. // CHECK:STDOUT: 0: inst68
  291. // CHECK:STDOUT: inst_block23:
  292. // CHECK:STDOUT: 0: inst14
  293. // CHECK:STDOUT: 1: inst15
  294. // CHECK:STDOUT: 2: inst27
  295. // CHECK:STDOUT: ...