mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 08:20:12 +01:00
16 lines
333 B
Plaintext
16 lines
333 B
Plaintext
// 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
|
|
|
|
// Test overshadowing of global variable.
|
|
|
|
var x: Int = 1;
|
|
|
|
fn identity(x: Int) {
|
|
return x;
|
|
}
|
|
|
|
fn main() -> Int {
|
|
return identity(0);
|
|
}
|