Home | History | Annotate | Download | only in debuginfo
      1 // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
      2 // for details. All rights reserved. Use of this source code is governed by a
      3 // BSD-style license that can be found in the LICENSE file.
      4 package com.android.tools.r8.debuginfo;
      5 
      6 public class LocalSwapTest {
      7 
      8   public static int foo(int x, int y) {
      9     int sum = x + y;
     10     {
     11       int t = x;
     12       x = y;
     13       y = t;
     14     }
     15     return sum + x + y;
     16   }
     17 
     18   public static void main(String[] args) {
     19     System.out.print(foo(1, 2));
     20   }
     21 }
     22