aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/smali/array_and_switch.smali
blob: 3ee3f6d0140c18b38ac9ec0495439b1e1be00560 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.class public Lbaksmali/test/class;
.super Ljava/lang/Object;

.source "baksmali_test_class.smali"

.method public testMethod(ILjava/lang/String;)Ljava/lang/String;
	.registers 3
	.annotation runtime Lorg/junit/Test;
	.end annotation
	.annotation system Lyet/another/annotation;
		somevalue = 1234
		anothervalue = 3.14159
	.end annotation

	const-string v0, "testing\n123"

	goto switch:

	sget v0, Lbaksmali/test/class;->staticField:I

	switch:
	packed-switch v0, pswitch:

	try_start:
	const/4 v0, 7
	const v0, 10
	nop
	try_end:
	.catch Ljava/lang/Exception; {try_start: .. try_end:} handler:
	.catchall {try_start: .. try_end:} handler2:

	handler:

	Label10:
	Label11:
	Label12:
	Label13:
	return-object v0



	.array-data 4
		1 2 3 4 5 6 200
	.end array-data

	pswitch:
	.packed-switch 10
		Label10:
		Label11:
		Label12:
		Label13:
	.end packed-switch

	handler2:

	return-void

.end method