diff options
Diffstat (limited to 'jack-tests/tests/com/android/jack/shrob/test020')
4 files changed, 83 insertions, 0 deletions
diff --git a/jack-tests/tests/com/android/jack/shrob/test020/dx/Tests.java b/jack-tests/tests/com/android/jack/shrob/test020/dx/Tests.java new file mode 100644 index 0000000..13c272a --- /dev/null +++ b/jack-tests/tests/com/android/jack/shrob/test020/dx/Tests.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2012 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. + */ + +package com.android.jack.shrob.test020.dx; + +import com.android.jack.shrob.test020.jack.Shrob020; + +import junit.framework.Assert; + +import org.junit.Test; + +public class Tests { + + @Test + public void test() { + Assert.assertEquals(5, Shrob020.test()); + } +} diff --git a/jack-tests/tests/com/android/jack/shrob/test020/jack/Shrob020.java b/jack-tests/tests/com/android/jack/shrob/test020/jack/Shrob020.java new file mode 100644 index 0000000..594cdcf --- /dev/null +++ b/jack-tests/tests/com/android/jack/shrob/test020/jack/Shrob020.java @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2013 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. + */ + +package com.android.jack.shrob.test020.jack; + +import com.android.jack.shrob.test020.lib.Shrob20Lib; + +public class Shrob020 { + + public static int test() { + return Shrob20Lib.f; + } +} diff --git a/jack-tests/tests/com/android/jack/shrob/test020/lib/Shrob20Lib.java b/jack-tests/tests/com/android/jack/shrob/test020/lib/Shrob20Lib.java new file mode 100644 index 0000000..cc01e60 --- /dev/null +++ b/jack-tests/tests/com/android/jack/shrob/test020/lib/Shrob20Lib.java @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2013 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. + */ + +package com.android.jack.shrob.test020.lib; + +public class Shrob20Lib { + + public static int f = 5; + +} diff --git a/jack-tests/tests/com/android/jack/shrob/test020/proguard.flags b/jack-tests/tests/com/android/jack/shrob/test020/proguard.flags new file mode 100644 index 0000000..84738f0 --- /dev/null +++ b/jack-tests/tests/com/android/jack/shrob/test020/proguard.flags @@ -0,0 +1,3 @@ +-keep class com.android.jack.shrob.test020.jack.Shrob020 { +int test(); +}
\ No newline at end of file |