global_variable4.carbon 339 B

1234567891011121314
  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. package ExecutableSemanticsTest api;
  5. // Test mutation of a global variable.
  6. var zero: i32 = 1;
  7. fn main() -> i32 {
  8. zero = 0;
  9. return zero;
  10. }