unimplemented.carbon 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. // AUTOUPDATE
  6. // TIP: To test this file alone, run:
  7. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/generic/template/unimplemented.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/generic/template/unimplemented.carbon
  10. // --- fail_todo_unimplemented_operator.carbon
  11. library "[[@TEST_NAME]]";
  12. // Check that we get a reasonable diagnostic for an unimplemented operation on a
  13. // template dependent expression.
  14. fn F[template T:! type](x: T) -> i32 {
  15. // CHECK:STDERR: fail_todo_unimplemented_operator.carbon:[[@LINE+4]]:10: error: cannot access member of interface `Core.Mul` in type `<dependent type>` that does not implement that interface [MissingImplInMemberAccess]
  16. // CHECK:STDERR: return x.n * 3;
  17. // CHECK:STDERR: ^~~~~~~
  18. // CHECK:STDERR:
  19. return x.n * 3;
  20. }
  21. // --- fail_todo_unimplemented_value.carbon
  22. library "[[@TEST_NAME]]";
  23. class C {
  24. var n: i32;
  25. }
  26. // Check that we get a reasonable diagnostic for an unimplemented operation on a
  27. // template dependent value where the type is concrete but determined through
  28. // the template dependent value.
  29. fn F(template c:! C) -> i32 {
  30. // CHECK:STDERR: fail_todo_unimplemented_value.carbon:[[@LINE+4]]:10: error: cannot access member of interface `Core.Mul` in type `<dependent type>` that does not implement that interface [MissingImplInMemberAccess]
  31. // CHECK:STDERR: return c.n * 3;
  32. // CHECK:STDERR: ^~~~~~~
  33. // CHECK:STDERR:
  34. return c.n * 3;
  35. }
  36. // --- fail_todo_unimplemented_convert.carbon
  37. library "[[@TEST_NAME]]";
  38. fn F[template T:! type](x: T) {
  39. // TODO: These diagnostics aren't very good, and we should only produce one error here.
  40. // CHECK:STDERR: fail_todo_unimplemented_convert.carbon:[[@LINE+8]]:3: error: member name of type `<dependent type>` in compound member access is not an instance member or an interface member [CompoundMemberAccessDoesNotUseBase]
  41. // CHECK:STDERR: var v: T = 0;
  42. // CHECK:STDERR: ^~~~~~~~
  43. // CHECK:STDERR:
  44. // CHECK:STDERR: fail_todo_unimplemented_convert.carbon:[[@LINE+4]]:3: error: value of type `<dependent type>` is not callable [CallToNonCallable]
  45. // CHECK:STDERR: var v: T = 0;
  46. // CHECK:STDERR: ^~~~~~~~
  47. // CHECK:STDERR:
  48. var v: T = 0;
  49. // CHECK:STDERR: fail_todo_unimplemented_convert.carbon:[[@LINE+7]]:3: error: cannot implicitly convert expression of type `T` to `i32` [ConversionFailure]
  50. // CHECK:STDERR: var w: i32 = x;
  51. // CHECK:STDERR: ^~~~~~~~~~
  52. // CHECK:STDERR: fail_todo_unimplemented_convert.carbon:[[@LINE+4]]:3: note: type `T` does not implement interface `Core.ImplicitAs(i32)` [MissingImplInMemberAccessNote]
  53. // CHECK:STDERR: var w: i32 = x;
  54. // CHECK:STDERR: ^~~~~~~~~~
  55. // CHECK:STDERR:
  56. var w: i32 = x;
  57. }
  58. // CHECK:STDOUT: --- fail_todo_unimplemented_operator.carbon
  59. // CHECK:STDOUT:
  60. // CHECK:STDOUT: constants {
  61. // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, template [template]
  62. // CHECK:STDOUT: %T.patt: type = symbolic_binding_pattern T, 0, template [template]
  63. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
  64. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
  65. // CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
  66. // CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
  67. // CHECK:STDOUT: %require_complete.4ae: <witness> = require_complete_type %T [template]
  68. // CHECK:STDOUT: %int_3: Core.IntLiteral = int_value 3 [concrete]
  69. // CHECK:STDOUT: }
  70. // CHECK:STDOUT:
  71. // CHECK:STDOUT: imports {
  72. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  73. // CHECK:STDOUT: .Int = %Core.Int
  74. // CHECK:STDOUT: .Mul = %Core.Mul
  75. // CHECK:STDOUT: import Core//prelude
  76. // CHECK:STDOUT: import Core//prelude/...
  77. // CHECK:STDOUT: }
  78. // CHECK:STDOUT: }
  79. // CHECK:STDOUT:
  80. // CHECK:STDOUT: file {
  81. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  82. // CHECK:STDOUT: .Core = imports.%Core
  83. // CHECK:STDOUT: .F = %F.decl
  84. // CHECK:STDOUT: }
  85. // CHECK:STDOUT: %Core.import = import Core
  86. // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [concrete = constants.%F] {
  87. // CHECK:STDOUT: %T.patt.loc6_15.1: type = symbolic_binding_pattern T, 0, template [template = %T.patt.loc6_15.2 (constants.%T.patt)]
  88. // CHECK:STDOUT: %x.patt: @F.%T.loc6_15.2 (%T) = binding_pattern x
  89. // CHECK:STDOUT: %x.param_patt: @F.%T.loc6_15.2 (%T) = value_param_pattern %x.patt, call_param0
  90. // CHECK:STDOUT: %return.patt: %i32 = return_slot_pattern
  91. // CHECK:STDOUT: %return.param_patt: %i32 = out_param_pattern %return.patt, call_param1
  92. // CHECK:STDOUT: } {
  93. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  94. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  95. // CHECK:STDOUT: %T.loc6_15.1: type = bind_symbolic_name T, 0, template [template = %T.loc6_15.2 (constants.%T)]
  96. // CHECK:STDOUT: %x.param: @F.%T.loc6_15.2 (%T) = value_param call_param0
  97. // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc6_15.1 [template = %T.loc6_15.2 (constants.%T)]
  98. // CHECK:STDOUT: %x: @F.%T.loc6_15.2 (%T) = bind_name x, %x.param
  99. // CHECK:STDOUT: %return.param: ref %i32 = out_param call_param1
  100. // CHECK:STDOUT: %return: ref %i32 = return_slot %return.param
  101. // CHECK:STDOUT: }
  102. // CHECK:STDOUT: }
  103. // CHECK:STDOUT:
  104. // CHECK:STDOUT: generic fn @F(%T.loc6_15.1: type) {
  105. // CHECK:STDOUT: %T.loc6_15.2: type = bind_symbolic_name T, 0, template [template = %T.loc6_15.2 (constants.%T)]
  106. // CHECK:STDOUT: %T.patt.loc6_15.2: type = symbolic_binding_pattern T, 0, template [template = %T.patt.loc6_15.2 (constants.%T.patt)]
  107. // CHECK:STDOUT:
  108. // CHECK:STDOUT: !definition:
  109. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %T.loc6_15.2 [template = %require_complete (constants.%require_complete.4ae)]
  110. // CHECK:STDOUT: %.loc11_11.3: <instruction> = refine_type_action %x.ref, %T.loc6_15.2 [template]
  111. // CHECK:STDOUT: %.loc11_11.4: <instruction> = access_member_action %.loc11_11.1, n [template]
  112. // CHECK:STDOUT: %.loc11_11.5: type = type_of_inst %.loc11_11.4 [template]
  113. // CHECK:STDOUT:
  114. // CHECK:STDOUT: fn(%x.param: @F.%T.loc6_15.2 (%T)) -> %i32 {
  115. // CHECK:STDOUT: !entry:
  116. // CHECK:STDOUT: %x.ref: @F.%T.loc6_15.2 (%T) = name_ref x, %x
  117. // CHECK:STDOUT: %.loc11_11.1: @F.%T.loc6_15.2 (%T) = splice_inst %.loc11_11.3
  118. // CHECK:STDOUT: %.loc11_11.2: @F.%.loc11_11.5 (@F.%.loc11_11.5) = splice_inst %.loc11_11.4
  119. // CHECK:STDOUT: %int_3: Core.IntLiteral = int_value 3 [concrete = constants.%int_3]
  120. // CHECK:STDOUT: return <error>
  121. // CHECK:STDOUT: }
  122. // CHECK:STDOUT: }
  123. // CHECK:STDOUT:
  124. // CHECK:STDOUT: specific @F(constants.%T) {
  125. // CHECK:STDOUT: %T.loc6_15.2 => constants.%T
  126. // CHECK:STDOUT: %T.patt.loc6_15.2 => constants.%T.patt
  127. // CHECK:STDOUT: }
  128. // CHECK:STDOUT:
  129. // CHECK:STDOUT: --- fail_todo_unimplemented_value.carbon
  130. // CHECK:STDOUT:
  131. // CHECK:STDOUT: constants {
  132. // CHECK:STDOUT: %C: type = class_type @C [concrete]
  133. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
  134. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
  135. // CHECK:STDOUT: %C.elem: type = unbound_element_type %C, %i32 [concrete]
  136. // CHECK:STDOUT: %struct_type.n: type = struct_type {.n: %i32} [concrete]
  137. // CHECK:STDOUT: %complete_type.54b: <witness> = complete_type_witness %struct_type.n [concrete]
  138. // CHECK:STDOUT: %c: %C = bind_symbolic_name c, 0, template [template]
  139. // CHECK:STDOUT: %c.patt: %C = symbolic_binding_pattern c, 0, template [template]
  140. // CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
  141. // CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
  142. // CHECK:STDOUT: %int_3: Core.IntLiteral = int_value 3 [concrete]
  143. // CHECK:STDOUT: }
  144. // CHECK:STDOUT:
  145. // CHECK:STDOUT: imports {
  146. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  147. // CHECK:STDOUT: .Int = %Core.Int
  148. // CHECK:STDOUT: .Mul = %Core.Mul
  149. // CHECK:STDOUT: import Core//prelude
  150. // CHECK:STDOUT: import Core//prelude/...
  151. // CHECK:STDOUT: }
  152. // CHECK:STDOUT: }
  153. // CHECK:STDOUT:
  154. // CHECK:STDOUT: file {
  155. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  156. // CHECK:STDOUT: .Core = imports.%Core
  157. // CHECK:STDOUT: .C = %C.decl
  158. // CHECK:STDOUT: .F = %F.decl
  159. // CHECK:STDOUT: }
  160. // CHECK:STDOUT: %Core.import = import Core
  161. // CHECK:STDOUT: %C.decl: type = class_decl @C [concrete = constants.%C] {} {}
  162. // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [concrete = constants.%F] {
  163. // CHECK:STDOUT: %c.patt.loc11_15.1: %C = symbolic_binding_pattern c, 0, template [template = %c.patt.loc11_15.2 (constants.%c.patt)]
  164. // CHECK:STDOUT: %return.patt: %i32 = return_slot_pattern
  165. // CHECK:STDOUT: %return.param_patt: %i32 = out_param_pattern %return.patt, call_param0
  166. // CHECK:STDOUT: } {
  167. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  168. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  169. // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [concrete = constants.%C]
  170. // CHECK:STDOUT: %c.loc11_15.1: %C = bind_symbolic_name c, 0, template [template = %c.loc11_15.2 (constants.%c)]
  171. // CHECK:STDOUT: %return.param: ref %i32 = out_param call_param0
  172. // CHECK:STDOUT: %return: ref %i32 = return_slot %return.param
  173. // CHECK:STDOUT: }
  174. // CHECK:STDOUT: }
  175. // CHECK:STDOUT:
  176. // CHECK:STDOUT: class @C {
  177. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  178. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  179. // CHECK:STDOUT: %.loc5: %C.elem = field_decl n, element0 [concrete]
  180. // CHECK:STDOUT: %struct_type.n: type = struct_type {.n: %i32} [concrete = constants.%struct_type.n]
  181. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %struct_type.n [concrete = constants.%complete_type.54b]
  182. // CHECK:STDOUT: complete_type_witness = %complete_type
  183. // CHECK:STDOUT:
  184. // CHECK:STDOUT: !members:
  185. // CHECK:STDOUT: .Self = constants.%C
  186. // CHECK:STDOUT: .n = %.loc5
  187. // CHECK:STDOUT: }
  188. // CHECK:STDOUT:
  189. // CHECK:STDOUT: generic fn @F(%c.loc11_15.1: %C) {
  190. // CHECK:STDOUT: %c.loc11_15.2: %C = bind_symbolic_name c, 0, template [template = %c.loc11_15.2 (constants.%c)]
  191. // CHECK:STDOUT: %c.patt.loc11_15.2: %C = symbolic_binding_pattern c, 0, template [template = %c.patt.loc11_15.2 (constants.%c.patt)]
  192. // CHECK:STDOUT:
  193. // CHECK:STDOUT: !definition:
  194. // CHECK:STDOUT: %.loc16_11.2: <instruction> = access_member_action %c.ref, n [template]
  195. // CHECK:STDOUT: %.loc16_11.3: type = type_of_inst %.loc16_11.2 [template]
  196. // CHECK:STDOUT:
  197. // CHECK:STDOUT: fn() -> %i32 {
  198. // CHECK:STDOUT: !entry:
  199. // CHECK:STDOUT: %c.ref: %C = name_ref c, %c.loc11_15.1 [template = %c.loc11_15.2 (constants.%c)]
  200. // CHECK:STDOUT: %.loc16_11.1: @F.%.loc16_11.3 (@F.%.loc16_11.3) = splice_inst %.loc16_11.2
  201. // CHECK:STDOUT: %int_3: Core.IntLiteral = int_value 3 [concrete = constants.%int_3]
  202. // CHECK:STDOUT: return <error>
  203. // CHECK:STDOUT: }
  204. // CHECK:STDOUT: }
  205. // CHECK:STDOUT:
  206. // CHECK:STDOUT: specific @F(constants.%c) {
  207. // CHECK:STDOUT: %c.loc11_15.2 => constants.%c
  208. // CHECK:STDOUT: %c.patt.loc11_15.2 => constants.%c.patt
  209. // CHECK:STDOUT: }
  210. // CHECK:STDOUT:
  211. // CHECK:STDOUT: --- fail_todo_unimplemented_convert.carbon
  212. // CHECK:STDOUT:
  213. // CHECK:STDOUT: constants {
  214. // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, template [template]
  215. // CHECK:STDOUT: %T.patt: type = symbolic_binding_pattern T, 0, template [template]
  216. // CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
  217. // CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
  218. // CHECK:STDOUT: %require_complete.4ae: <witness> = require_complete_type %T [template]
  219. // CHECK:STDOUT: %int_0: Core.IntLiteral = int_value 0 [concrete]
  220. // CHECK:STDOUT: %ImplicitAs.type.d628ce.2: type = facet_type <@ImplicitAs, @ImplicitAs(%T)> [template]
  221. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
  222. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
  223. // CHECK:STDOUT: }
  224. // CHECK:STDOUT:
  225. // CHECK:STDOUT: imports {
  226. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  227. // CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
  228. // CHECK:STDOUT: .Int = %Core.Int
  229. // CHECK:STDOUT: import Core//prelude
  230. // CHECK:STDOUT: import Core//prelude/...
  231. // CHECK:STDOUT: }
  232. // CHECK:STDOUT: }
  233. // CHECK:STDOUT:
  234. // CHECK:STDOUT: file {
  235. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  236. // CHECK:STDOUT: .Core = imports.%Core
  237. // CHECK:STDOUT: .F = %F.decl
  238. // CHECK:STDOUT: }
  239. // CHECK:STDOUT: %Core.import = import Core
  240. // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [concrete = constants.%F] {
  241. // CHECK:STDOUT: %T.patt.loc4_15.1: type = symbolic_binding_pattern T, 0, template [template = %T.patt.loc4_15.2 (constants.%T.patt)]
  242. // CHECK:STDOUT: %x.patt: @F.%T.loc4_15.2 (%T) = binding_pattern x
  243. // CHECK:STDOUT: %x.param_patt: @F.%T.loc4_15.2 (%T) = value_param_pattern %x.patt, call_param0
  244. // CHECK:STDOUT: } {
  245. // CHECK:STDOUT: %T.loc4_15.1: type = bind_symbolic_name T, 0, template [template = %T.loc4_15.2 (constants.%T)]
  246. // CHECK:STDOUT: %x.param: @F.%T.loc4_15.2 (%T) = value_param call_param0
  247. // CHECK:STDOUT: %T.ref.loc4: type = name_ref T, %T.loc4_15.1 [template = %T.loc4_15.2 (constants.%T)]
  248. // CHECK:STDOUT: %x: @F.%T.loc4_15.2 (%T) = bind_name x, %x.param
  249. // CHECK:STDOUT: }
  250. // CHECK:STDOUT: }
  251. // CHECK:STDOUT:
  252. // CHECK:STDOUT: generic fn @F(%T.loc4_15.1: type) {
  253. // CHECK:STDOUT: %T.loc4_15.2: type = bind_symbolic_name T, 0, template [template = %T.loc4_15.2 (constants.%T)]
  254. // CHECK:STDOUT: %T.patt.loc4_15.2: type = symbolic_binding_pattern T, 0, template [template = %T.patt.loc4_15.2 (constants.%T.patt)]
  255. // CHECK:STDOUT:
  256. // CHECK:STDOUT: !definition:
  257. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %T.loc4_15.2 [template = %require_complete (constants.%require_complete.4ae)]
  258. // CHECK:STDOUT: %ImplicitAs.type.loc14_3.2: type = facet_type <@ImplicitAs, @ImplicitAs(%T.loc4_15.2)> [template = %ImplicitAs.type.loc14_3.2 (constants.%ImplicitAs.type.d628ce.2)]
  259. // CHECK:STDOUT: %.loc14_3.4: <instruction> = access_member_action %ImplicitAs.type.loc14_3.1, Convert [template]
  260. // CHECK:STDOUT: %.loc14_3.5: type = type_of_inst %.loc14_3.4 [template]
  261. // CHECK:STDOUT:
  262. // CHECK:STDOUT: fn(%x.param: @F.%T.loc4_15.2 (%T)) {
  263. // CHECK:STDOUT: !entry:
  264. // CHECK:STDOUT: name_binding_decl {
  265. // CHECK:STDOUT: %v.patt: @F.%T.loc4_15.2 (%T) = binding_pattern v
  266. // CHECK:STDOUT: %.loc14_3.1: @F.%T.loc4_15.2 (%T) = var_pattern %v.patt
  267. // CHECK:STDOUT: }
  268. // CHECK:STDOUT: %v.var: ref @F.%T.loc4_15.2 (%T) = var v
  269. // CHECK:STDOUT: %int_0: Core.IntLiteral = int_value 0 [concrete = constants.%int_0]
  270. // CHECK:STDOUT: %ImplicitAs.type.loc14_3.1: type = facet_type <@ImplicitAs, @ImplicitAs(constants.%T)> [template = %ImplicitAs.type.loc14_3.2 (constants.%ImplicitAs.type.d628ce.2)]
  271. // CHECK:STDOUT: %.loc14_3.2: @F.%.loc14_3.5 (@F.%.loc14_3.5) = splice_inst %.loc14_3.4
  272. // CHECK:STDOUT: %.loc14_3.3: @F.%T.loc4_15.2 (%T) = converted %int_0, <error> [concrete = <error>]
  273. // CHECK:STDOUT: assign %v.var, <error>
  274. // CHECK:STDOUT: %T.ref.loc14: type = name_ref T, %T.loc4_15.1 [template = %T.loc4_15.2 (constants.%T)]
  275. // CHECK:STDOUT: %v: ref @F.%T.loc4_15.2 (%T) = bind_name v, %v.var
  276. // CHECK:STDOUT: name_binding_decl {
  277. // CHECK:STDOUT: %w.patt: %i32 = binding_pattern w
  278. // CHECK:STDOUT: %.loc22_3.1: %i32 = var_pattern %w.patt
  279. // CHECK:STDOUT: }
  280. // CHECK:STDOUT: %w.var: ref %i32 = var w
  281. // CHECK:STDOUT: %x.ref: @F.%T.loc4_15.2 (%T) = name_ref x, %x
  282. // CHECK:STDOUT: %.loc22_3.2: %i32 = converted %x.ref, <error> [concrete = <error>]
  283. // CHECK:STDOUT: assign %w.var, <error>
  284. // CHECK:STDOUT: %.loc22_10: type = splice_block %i32 [concrete = constants.%i32] {
  285. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete = constants.%int_32]
  286. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(constants.%int_32) [concrete = constants.%i32]
  287. // CHECK:STDOUT: }
  288. // CHECK:STDOUT: %w: ref %i32 = bind_name w, %w.var
  289. // CHECK:STDOUT: return
  290. // CHECK:STDOUT: }
  291. // CHECK:STDOUT: }
  292. // CHECK:STDOUT:
  293. // CHECK:STDOUT: specific @F(constants.%T) {
  294. // CHECK:STDOUT: %T.loc4_15.2 => constants.%T
  295. // CHECK:STDOUT: %T.patt.loc4_15.2 => constants.%T.patt
  296. // CHECK:STDOUT: }
  297. // CHECK:STDOUT: