decl.carbon 543 B

1234567891011121314151617
  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. var a: i32;
  7. // CHECK:STDOUT: --- decl.carbon
  8. // CHECK:STDOUT:
  9. // CHECK:STDOUT: file {
  10. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  11. // CHECK:STDOUT: .a = %a
  12. // CHECK:STDOUT: }
  13. // CHECK:STDOUT: %a.var: ref i32 = var a
  14. // CHECK:STDOUT: %a: ref i32 = bind_name a, %a.var
  15. // CHECK:STDOUT: }
  16. // CHECK:STDOUT: