SanityCheck.smali revision 158f35c98e2ec0d40d2c032b8cdce5fb60944a7f
1#
2#  Copyright (C) 2015 The Android Open Source Project
3#
4#  Licensed under the Apache License, Version 2.0 (the "License");
5#  you may not use this file except in compliance with the License.
6#  You may obtain a copy of the License at
7#
8#       http://www.apache.org/licenses/LICENSE-2.0
9#
10#  Unless required by applicable law or agreed to in writing, software
11#  distributed under the License is distributed on an "AS IS" BASIS,
12#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13#  See the License for the specific language governing permissions and
14#  limitations under the License.
15#
16.class public LSanityCheck;
17.super Ljava/lang/Object;
18
19
20.method public constructor <init>()V
21.registers 1
22   invoke-direct {p0}, Ljava/lang/Object;-><init>()V
23   return-void
24.end method
25
26# This test is just here to make sure that we can at least execute basic non-lambda
27# functionality such as printing (when lambdas are enabled in the runtime).
28.method public static run()I
29# Don't use too many registers here to avoid hitting the Stack::SanityCheck frame<2KB assert
30.registers 3
31    const-string v0, "SanityCheck"
32    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
33    invoke-virtual {v1, v0}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
34    const v2, 123456
35    return v2
36.end method
37