parens.carbon 646 B

12345678910111213141516
  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 test_i32: i32 = ((1) + (2));
  7. // CHECK:STDOUT: file "parens.carbon" {
  8. // CHECK:STDOUT: %test_i32.var: ref i32 = var test_i32
  9. // CHECK:STDOUT: %test_i32: ref i32 = bind_name test_i32, %test_i32.var
  10. // CHECK:STDOUT: %.loc7_23: i32 = int_literal 1
  11. // CHECK:STDOUT: %.loc7_29: i32 = int_literal 2
  12. // CHECK:STDOUT: %.loc7_26: i32 = add %.loc7_23, %.loc7_29
  13. // CHECK:STDOUT: assign %test_i32.var, %.loc7_26
  14. // CHECK:STDOUT: }