1# Copyright (c) 2016, 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 5# Before Lollipop (Art 5.1.1) Art/Dalvik failed on verification if an empty sparse switch payload 6# was the last instruction in a method. This was originally reported as 19827056, and fixed in 7# https://android.googlesource.com/platform/art/+/9ccd151d0d27a729f88af9d00285afe4d147981a 8 9# This test is copied from 10# https://android.googlesource.com/platform/art/+/9ccd151d0d27a729f88af9d00285afe4d147981a 11.class public LTest; 12.super Ljava/lang/Object; 13 14.method public static run()V 15 .registers 2 16 17 :start 18 const v0, 0 19 20 sparse-switch v0, :SparseSwitch 21 22 return-void 23 24 :SparseSwitch 25 .sparse-switch 26 .end sparse-switch 27 28.end method 29 30.method public static main([Ljava/lang/String;)V 31 .locals 0 32 33 invoke-static {}, LTest;->run()V 34 35 return-void 36.end method 37