is_null.carbon 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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/bool.carbon
  6. //
  7. // AUTOUPDATE
  8. // TIP: To test this file alone, run:
  9. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/builtins/pointer/is_null.carbon
  10. // TIP: To dump output, run:
  11. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/builtins/pointer/is_null.carbon
  12. // --- call_exact.carbon
  13. library "[[@TEST_NAME]]";
  14. class C {}
  15. fn MakeUnformed(t: type) -> type = "maybe_unformed.make_type";
  16. fn IsNullEmptyStruct(p: MakeUnformed({}*)) -> bool = "pointer.is_null";
  17. fn IsNullC(p: MakeUnformed(C*)) -> bool = "pointer.is_null";
  18. //@dump-sem-ir-begin
  19. fn TestEmptyStruct(s: MakeUnformed({}*)) -> bool {
  20. return IsNullEmptyStruct(s);
  21. }
  22. fn TestC(c: MakeUnformed(C*)) -> bool {
  23. return IsNullC(c);
  24. }
  25. //@dump-sem-ir-end
  26. // --- call_generic.carbon
  27. library "[[@TEST_NAME]]";
  28. fn MakeUnformed(t: type) -> type = "maybe_unformed.make_type";
  29. fn IsNull[T:! type](p: MakeUnformed(T*)) -> bool = "pointer.is_null";
  30. class C {}
  31. //@dump-sem-ir-begin
  32. fn TestEmptyStruct(s: MakeUnformed({}*)) -> bool {
  33. return IsNull(s);
  34. }
  35. fn TestC(c: MakeUnformed(C*)) -> bool {
  36. return IsNull(c);
  37. }
  38. //@dump-sem-ir-end
  39. // --- fail_bad_decl.carbon
  40. library "[[@TEST_NAME]]";
  41. fn MakeUnformed(t: type) -> type = "maybe_unformed.make_type";
  42. // CHECK:STDERR: fail_bad_decl.carbon:[[@LINE+4]]:1: error: invalid signature for builtin function "pointer.is_null" [InvalidBuiltinSignature]
  43. // CHECK:STDERR: fn NoParam() -> bool = "pointer.is_null";
  44. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~
  45. // CHECK:STDERR:
  46. fn NoParam() -> bool = "pointer.is_null";
  47. // CHECK:STDERR: fail_bad_decl.carbon:[[@LINE+4]]:1: error: invalid signature for builtin function "pointer.is_null" [InvalidBuiltinSignature]
  48. // CHECK:STDERR: fn NoRetType(p: MakeUnformed({}*)) = "pointer.is_null";
  49. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  50. // CHECK:STDERR:
  51. fn NoRetType(p: MakeUnformed({}*)) = "pointer.is_null";
  52. // CHECK:STDERR: fail_bad_decl.carbon:[[@LINE+4]]:1: error: invalid signature for builtin function "pointer.is_null" [InvalidBuiltinSignature]
  53. // CHECK:STDERR: fn WrongRetType(p: MakeUnformed({}*)) -> {} = "pointer.is_null";
  54. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55. // CHECK:STDERR:
  56. fn WrongRetType(p: MakeUnformed({}*)) -> {} = "pointer.is_null";
  57. // CHECK:STDERR: fail_bad_decl.carbon:[[@LINE+4]]:1: error: invalid signature for builtin function "pointer.is_null" [InvalidBuiltinSignature]
  58. // CHECK:STDERR: fn NoUnformed(p: {}*) -> bool = "pointer.is_null";
  59. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  60. // CHECK:STDERR:
  61. fn NoUnformed(p: {}*) -> bool = "pointer.is_null";
  62. // CHECK:STDERR: fail_bad_decl.carbon:[[@LINE+4]]:1: error: invalid signature for builtin function "pointer.is_null" [InvalidBuiltinSignature]
  63. // CHECK:STDERR: fn NotPointer(p: MakeUnformed({})) -> bool = "pointer.is_null";
  64. // CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  65. // CHECK:STDERR:
  66. fn NotPointer(p: MakeUnformed({})) -> bool = "pointer.is_null";
  67. // CHECK:STDOUT: --- call_exact.carbon
  68. // CHECK:STDOUT:
  69. // CHECK:STDOUT: constants {
  70. // CHECK:STDOUT: %C: type = class_type @C [concrete]
  71. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  72. // CHECK:STDOUT: %MakeUnformed.type: type = fn_type @MakeUnformed [concrete]
  73. // CHECK:STDOUT: %MakeUnformed: %MakeUnformed.type = struct_value () [concrete]
  74. // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
  75. // CHECK:STDOUT: %ptr.c28: type = ptr_type %empty_struct_type [concrete]
  76. // CHECK:STDOUT: %.b2d: type = maybe_unformed_type %ptr.c28 [concrete]
  77. // CHECK:STDOUT: %pattern_type.b42: type = pattern_type %.b2d [concrete]
  78. // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [concrete]
  79. // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [concrete]
  80. // CHECK:STDOUT: %.df2: form = init_form bool, call_param1 [concrete]
  81. // CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
  82. // CHECK:STDOUT: %IsNullEmptyStruct.type: type = fn_type @IsNullEmptyStruct [concrete]
  83. // CHECK:STDOUT: %IsNullEmptyStruct: %IsNullEmptyStruct.type = struct_value () [concrete]
  84. // CHECK:STDOUT: %ptr.31e: type = ptr_type %C [concrete]
  85. // CHECK:STDOUT: %.edf: type = maybe_unformed_type %ptr.31e [concrete]
  86. // CHECK:STDOUT: %pattern_type.b78: type = pattern_type %.edf [concrete]
  87. // CHECK:STDOUT: %IsNullC.type: type = fn_type @IsNullC [concrete]
  88. // CHECK:STDOUT: %IsNullC: %IsNullC.type = struct_value () [concrete]
  89. // CHECK:STDOUT: %TestEmptyStruct.type: type = fn_type @TestEmptyStruct [concrete]
  90. // CHECK:STDOUT: %TestEmptyStruct: %TestEmptyStruct.type = struct_value () [concrete]
  91. // CHECK:STDOUT: %TestC.type: type = fn_type @TestC [concrete]
  92. // CHECK:STDOUT: %TestC: %TestC.type = struct_value () [concrete]
  93. // CHECK:STDOUT: }
  94. // CHECK:STDOUT:
  95. // CHECK:STDOUT: imports {
  96. // CHECK:STDOUT: }
  97. // CHECK:STDOUT:
  98. // CHECK:STDOUT: file {
  99. // CHECK:STDOUT: %TestEmptyStruct.decl: %TestEmptyStruct.type = fn_decl @TestEmptyStruct [concrete = constants.%TestEmptyStruct] {
  100. // CHECK:STDOUT: %s.patt: %pattern_type.b42 = value_binding_pattern s [concrete]
  101. // CHECK:STDOUT: %s.param_patt: %pattern_type.b42 = value_param_pattern %s.patt, call_param0 [concrete]
  102. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  103. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  104. // CHECK:STDOUT: } {
  105. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  106. // CHECK:STDOUT: %.loc11_45.1: type = value_of_initializer %Bool.call [concrete = bool]
  107. // CHECK:STDOUT: %.loc11_45.2: type = converted %Bool.call, %.loc11_45.1 [concrete = bool]
  108. // CHECK:STDOUT: %.loc11_45.3: form = init_form %.loc11_45.2, call_param1 [concrete = constants.%.df2]
  109. // CHECK:STDOUT: %s.param: %.b2d = value_param call_param0
  110. // CHECK:STDOUT: %.loc11_39.1: type = splice_block %.loc11_39.3 [concrete = constants.%.b2d] {
  111. // CHECK:STDOUT: %MakeUnformed.ref: %MakeUnformed.type = name_ref MakeUnformed, file.%MakeUnformed.decl [concrete = constants.%MakeUnformed]
  112. // CHECK:STDOUT: %.loc11_37: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
  113. // CHECK:STDOUT: %.loc11_38: type = converted %.loc11_37, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
  114. // CHECK:STDOUT: %ptr: type = ptr_type %.loc11_38 [concrete = constants.%ptr.c28]
  115. // CHECK:STDOUT: %MakeUnformed.call: init type = call %MakeUnformed.ref(%ptr) [concrete = constants.%.b2d]
  116. // CHECK:STDOUT: %.loc11_39.2: type = value_of_initializer %MakeUnformed.call [concrete = constants.%.b2d]
  117. // CHECK:STDOUT: %.loc11_39.3: type = converted %MakeUnformed.call, %.loc11_39.2 [concrete = constants.%.b2d]
  118. // CHECK:STDOUT: }
  119. // CHECK:STDOUT: %s: %.b2d = value_binding s, %s.param
  120. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  121. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  122. // CHECK:STDOUT: }
  123. // CHECK:STDOUT: %TestC.decl: %TestC.type = fn_decl @TestC [concrete = constants.%TestC] {
  124. // CHECK:STDOUT: %c.patt: %pattern_type.b78 = value_binding_pattern c [concrete]
  125. // CHECK:STDOUT: %c.param_patt: %pattern_type.b78 = value_param_pattern %c.patt, call_param0 [concrete]
  126. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  127. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  128. // CHECK:STDOUT: } {
  129. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  130. // CHECK:STDOUT: %.loc15_34.1: type = value_of_initializer %Bool.call [concrete = bool]
  131. // CHECK:STDOUT: %.loc15_34.2: type = converted %Bool.call, %.loc15_34.1 [concrete = bool]
  132. // CHECK:STDOUT: %.loc15_34.3: form = init_form %.loc15_34.2, call_param1 [concrete = constants.%.df2]
  133. // CHECK:STDOUT: %c.param: %.edf = value_param call_param0
  134. // CHECK:STDOUT: %.loc15_28.1: type = splice_block %.loc15_28.3 [concrete = constants.%.edf] {
  135. // CHECK:STDOUT: %MakeUnformed.ref: %MakeUnformed.type = name_ref MakeUnformed, file.%MakeUnformed.decl [concrete = constants.%MakeUnformed]
  136. // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [concrete = constants.%C]
  137. // CHECK:STDOUT: %ptr: type = ptr_type %C.ref [concrete = constants.%ptr.31e]
  138. // CHECK:STDOUT: %MakeUnformed.call: init type = call %MakeUnformed.ref(%ptr) [concrete = constants.%.edf]
  139. // CHECK:STDOUT: %.loc15_28.2: type = value_of_initializer %MakeUnformed.call [concrete = constants.%.edf]
  140. // CHECK:STDOUT: %.loc15_28.3: type = converted %MakeUnformed.call, %.loc15_28.2 [concrete = constants.%.edf]
  141. // CHECK:STDOUT: }
  142. // CHECK:STDOUT: %c: %.edf = value_binding c, %c.param
  143. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  144. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  145. // CHECK:STDOUT: }
  146. // CHECK:STDOUT: }
  147. // CHECK:STDOUT:
  148. // CHECK:STDOUT: fn @TestEmptyStruct(%s.param: %.b2d) -> bool {
  149. // CHECK:STDOUT: !entry:
  150. // CHECK:STDOUT: %IsNullEmptyStruct.ref: %IsNullEmptyStruct.type = name_ref IsNullEmptyStruct, file.%IsNullEmptyStruct.decl [concrete = constants.%IsNullEmptyStruct]
  151. // CHECK:STDOUT: %s.ref: %.b2d = name_ref s, %s
  152. // CHECK:STDOUT: %IsNullEmptyStruct.call: init bool = call %IsNullEmptyStruct.ref(%s.ref)
  153. // CHECK:STDOUT: return %IsNullEmptyStruct.call to %return.param
  154. // CHECK:STDOUT: }
  155. // CHECK:STDOUT:
  156. // CHECK:STDOUT: fn @TestC(%c.param: %.edf) -> bool {
  157. // CHECK:STDOUT: !entry:
  158. // CHECK:STDOUT: %IsNullC.ref: %IsNullC.type = name_ref IsNullC, file.%IsNullC.decl [concrete = constants.%IsNullC]
  159. // CHECK:STDOUT: %c.ref: %.edf = name_ref c, %c
  160. // CHECK:STDOUT: %IsNullC.call: init bool = call %IsNullC.ref(%c.ref)
  161. // CHECK:STDOUT: return %IsNullC.call to %return.param
  162. // CHECK:STDOUT: }
  163. // CHECK:STDOUT:
  164. // CHECK:STDOUT: --- call_generic.carbon
  165. // CHECK:STDOUT:
  166. // CHECK:STDOUT: constants {
  167. // CHECK:STDOUT: %MakeUnformed.type: type = fn_type @MakeUnformed [concrete]
  168. // CHECK:STDOUT: %MakeUnformed: %MakeUnformed.type = struct_value () [concrete]
  169. // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [concrete]
  170. // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [concrete]
  171. // CHECK:STDOUT: %.df2: form = init_form bool, call_param1 [concrete]
  172. // CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
  173. // CHECK:STDOUT: %IsNull.type: type = fn_type @IsNull [concrete]
  174. // CHECK:STDOUT: %IsNull: %IsNull.type = struct_value () [concrete]
  175. // CHECK:STDOUT: %C: type = class_type @C [concrete]
  176. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  177. // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
  178. // CHECK:STDOUT: %ptr.c28: type = ptr_type %empty_struct_type [concrete]
  179. // CHECK:STDOUT: %.b2d: type = maybe_unformed_type %ptr.c28 [concrete]
  180. // CHECK:STDOUT: %pattern_type.b42: type = pattern_type %.b2d [concrete]
  181. // CHECK:STDOUT: %TestEmptyStruct.type: type = fn_type @TestEmptyStruct [concrete]
  182. // CHECK:STDOUT: %TestEmptyStruct: %TestEmptyStruct.type = struct_value () [concrete]
  183. // CHECK:STDOUT: %IsNull.specific_fn.34e: <specific function> = specific_function %IsNull, @IsNull(%empty_struct_type) [concrete]
  184. // CHECK:STDOUT: %ptr.31e: type = ptr_type %C [concrete]
  185. // CHECK:STDOUT: %.edf: type = maybe_unformed_type %ptr.31e [concrete]
  186. // CHECK:STDOUT: %pattern_type.b78: type = pattern_type %.edf [concrete]
  187. // CHECK:STDOUT: %TestC.type: type = fn_type @TestC [concrete]
  188. // CHECK:STDOUT: %TestC: %TestC.type = struct_value () [concrete]
  189. // CHECK:STDOUT: %IsNull.specific_fn.b1f: <specific function> = specific_function %IsNull, @IsNull(%C) [concrete]
  190. // CHECK:STDOUT: }
  191. // CHECK:STDOUT:
  192. // CHECK:STDOUT: imports {
  193. // CHECK:STDOUT: }
  194. // CHECK:STDOUT:
  195. // CHECK:STDOUT: file {
  196. // CHECK:STDOUT: %TestEmptyStruct.decl: %TestEmptyStruct.type = fn_decl @TestEmptyStruct [concrete = constants.%TestEmptyStruct] {
  197. // CHECK:STDOUT: %s.patt: %pattern_type.b42 = value_binding_pattern s [concrete]
  198. // CHECK:STDOUT: %s.param_patt: %pattern_type.b42 = value_param_pattern %s.patt, call_param0 [concrete]
  199. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  200. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  201. // CHECK:STDOUT: } {
  202. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  203. // CHECK:STDOUT: %.loc10_45.1: type = value_of_initializer %Bool.call [concrete = bool]
  204. // CHECK:STDOUT: %.loc10_45.2: type = converted %Bool.call, %.loc10_45.1 [concrete = bool]
  205. // CHECK:STDOUT: %.loc10_45.3: form = init_form %.loc10_45.2, call_param1 [concrete = constants.%.df2]
  206. // CHECK:STDOUT: %s.param: %.b2d = value_param call_param0
  207. // CHECK:STDOUT: %.loc10_39.1: type = splice_block %.loc10_39.3 [concrete = constants.%.b2d] {
  208. // CHECK:STDOUT: %MakeUnformed.ref: %MakeUnformed.type = name_ref MakeUnformed, file.%MakeUnformed.decl [concrete = constants.%MakeUnformed]
  209. // CHECK:STDOUT: %.loc10_37: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
  210. // CHECK:STDOUT: %.loc10_38: type = converted %.loc10_37, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
  211. // CHECK:STDOUT: %ptr: type = ptr_type %.loc10_38 [concrete = constants.%ptr.c28]
  212. // CHECK:STDOUT: %MakeUnformed.call: init type = call %MakeUnformed.ref(%ptr) [concrete = constants.%.b2d]
  213. // CHECK:STDOUT: %.loc10_39.2: type = value_of_initializer %MakeUnformed.call [concrete = constants.%.b2d]
  214. // CHECK:STDOUT: %.loc10_39.3: type = converted %MakeUnformed.call, %.loc10_39.2 [concrete = constants.%.b2d]
  215. // CHECK:STDOUT: }
  216. // CHECK:STDOUT: %s: %.b2d = value_binding s, %s.param
  217. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  218. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  219. // CHECK:STDOUT: }
  220. // CHECK:STDOUT: %TestC.decl: %TestC.type = fn_decl @TestC [concrete = constants.%TestC] {
  221. // CHECK:STDOUT: %c.patt: %pattern_type.b78 = value_binding_pattern c [concrete]
  222. // CHECK:STDOUT: %c.param_patt: %pattern_type.b78 = value_param_pattern %c.patt, call_param0 [concrete]
  223. // CHECK:STDOUT: %return.patt: %pattern_type.831 = return_slot_pattern [concrete]
  224. // CHECK:STDOUT: %return.param_patt: %pattern_type.831 = out_param_pattern %return.patt, call_param1 [concrete]
  225. // CHECK:STDOUT: } {
  226. // CHECK:STDOUT: %Bool.call: init type = call constants.%Bool() [concrete = bool]
  227. // CHECK:STDOUT: %.loc14_34.1: type = value_of_initializer %Bool.call [concrete = bool]
  228. // CHECK:STDOUT: %.loc14_34.2: type = converted %Bool.call, %.loc14_34.1 [concrete = bool]
  229. // CHECK:STDOUT: %.loc14_34.3: form = init_form %.loc14_34.2, call_param1 [concrete = constants.%.df2]
  230. // CHECK:STDOUT: %c.param: %.edf = value_param call_param0
  231. // CHECK:STDOUT: %.loc14_28.1: type = splice_block %.loc14_28.3 [concrete = constants.%.edf] {
  232. // CHECK:STDOUT: %MakeUnformed.ref: %MakeUnformed.type = name_ref MakeUnformed, file.%MakeUnformed.decl [concrete = constants.%MakeUnformed]
  233. // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [concrete = constants.%C]
  234. // CHECK:STDOUT: %ptr: type = ptr_type %C.ref [concrete = constants.%ptr.31e]
  235. // CHECK:STDOUT: %MakeUnformed.call: init type = call %MakeUnformed.ref(%ptr) [concrete = constants.%.edf]
  236. // CHECK:STDOUT: %.loc14_28.2: type = value_of_initializer %MakeUnformed.call [concrete = constants.%.edf]
  237. // CHECK:STDOUT: %.loc14_28.3: type = converted %MakeUnformed.call, %.loc14_28.2 [concrete = constants.%.edf]
  238. // CHECK:STDOUT: }
  239. // CHECK:STDOUT: %c: %.edf = value_binding c, %c.param
  240. // CHECK:STDOUT: %return.param: ref bool = out_param call_param1
  241. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  242. // CHECK:STDOUT: }
  243. // CHECK:STDOUT: }
  244. // CHECK:STDOUT:
  245. // CHECK:STDOUT: fn @TestEmptyStruct(%s.param: %.b2d) -> bool {
  246. // CHECK:STDOUT: !entry:
  247. // CHECK:STDOUT: %IsNull.ref: %IsNull.type = name_ref IsNull, file.%IsNull.decl [concrete = constants.%IsNull]
  248. // CHECK:STDOUT: %s.ref: %.b2d = name_ref s, %s
  249. // CHECK:STDOUT: %IsNull.specific_fn: <specific function> = specific_function %IsNull.ref, @IsNull(constants.%empty_struct_type) [concrete = constants.%IsNull.specific_fn.34e]
  250. // CHECK:STDOUT: %IsNull.call: init bool = call %IsNull.specific_fn(%s.ref)
  251. // CHECK:STDOUT: return %IsNull.call to %return.param
  252. // CHECK:STDOUT: }
  253. // CHECK:STDOUT:
  254. // CHECK:STDOUT: fn @TestC(%c.param: %.edf) -> bool {
  255. // CHECK:STDOUT: !entry:
  256. // CHECK:STDOUT: %IsNull.ref: %IsNull.type = name_ref IsNull, file.%IsNull.decl [concrete = constants.%IsNull]
  257. // CHECK:STDOUT: %c.ref: %.edf = name_ref c, %c
  258. // CHECK:STDOUT: %IsNull.specific_fn: <specific function> = specific_function %IsNull.ref, @IsNull(constants.%C) [concrete = constants.%IsNull.specific_fn.b1f]
  259. // CHECK:STDOUT: %IsNull.call: init bool = call %IsNull.specific_fn(%c.ref)
  260. // CHECK:STDOUT: return %IsNull.call to %return.param
  261. // CHECK:STDOUT: }
  262. // CHECK:STDOUT: