# Copyright (C) 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

.class public LTestCase;

.super Ljava/lang/Object;

.field public static value:Z

## CHECK-START: int TestCase.testCase(int) builder (after)

## CHECK:  name            "B0"
## CHECK:  <<Const0:i\d+>> IntConstant 0

## CHECK:  name            "B1"
## CHECK:  successors      "B5" "B2"
## CHECK:  StoreLocal      [v0,<<Const0>>]
## CHECK:  If

## CHECK:  name            "B2"
## CHECK:  successors      "B4"
## CHECK:  Goto

## CHECK:  name            "B3"
## CHECK:  Return

## CHECK:  name            "B4"
## CHECK:  successors      "B3"
## CHECK:  Goto

## CHECK:  name            "B5"
## CHECK:  successors      "B3"
## CHECK:  Goto

.method public static testCase(I)I
    .registers 2

    const/4 v0, 0
    packed-switch v0, :switch_data
    goto :default

    :switch_data
    .packed-switch 0x0
        :case
    .end packed-switch

    :return
    return v1

    :default
    goto :return

    :case
    goto :return

.end method
