| 12345678910111213141516171819202122 |
- // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- // Exceptions. See /LICENSE for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- //
- // NOAUTOUPDATE
- package ExplorerTest api;
- // `y` is unformed here.
- var y: i32;
- fn AssignIntTo(x: i32, destination: i32*) {
- *destination = x;
- }
- fn Main() -> i32 {
- AssignIntTo(42, &y);
- // `y` is fully formed and usable.
- return y;
- }
- // CHECK:STDOUT: result: 42
|