diff options
Diffstat (limited to 'dx/tests/106-verify-object-ops')
19 files changed, 0 insertions, 479 deletions
diff --git a/dx/tests/106-verify-object-ops/expected.txt b/dx/tests/106-verify-object-ops/expected.txt deleted file mode 100644 index ce36b7e98..000000000 --- a/dx/tests/106-verify-object-ops/expected.txt +++ /dev/null @@ -1,32 +0,0 @@ -Generated: ./op_anewarray.class -anewarray: expected failure occurred -Generated: ./op_arraylength.class -arraylength: expected failure occurred -Generated: ./op_athrow.class -athrow: expected failure occurred -Generated: ./op_checkcast.class -checkcast: expected failure occurred -Generated: ./op_getfield.class -getfield: expected failure occurred -Generated: ./op_instanceof.class -instanceof: expected failure occurred -Generated: ./op_invokeinterface.class -invokeinterface: expected failure occurred -Generated: ./op_invokespecial.class -invokespecial: expected failure occurred -Generated: ./op_invokestatic.class -invokestatic: expected failure occurred -Generated: ./op_invokevirtual.class -invokevirtual: expected failure occurred -Generated: ./op_monitorenter.class -monitorenter: expected failure occurred -Generated: ./op_monitorexit.class -monitorexit: expected failure occurred -Generated: ./op_multianewarray.class -multianewarray: expected failure occurred -Generated: ./op_newarray.class -newarray: expected failure occurred -Generated: ./op_putfield.class -putfield: expected failure occurred -Generated: ./op_putstatic.class -putstatic: expected failure occurred diff --git a/dx/tests/106-verify-object-ops/info.txt b/dx/tests/106-verify-object-ops/info.txt deleted file mode 100644 index 85295d7fc..000000000 --- a/dx/tests/106-verify-object-ops/info.txt +++ /dev/null @@ -1,2 +0,0 @@ -This tests that the various "objecty" opcodes verify that their -arguments are actually of the appropriate types. diff --git a/dx/tests/106-verify-object-ops/op_anewarray.j b/dx/tests/106-verify-object-ops/op_anewarray.j deleted file mode 100644 index 348acbd94..000000000 --- a/dx/tests/106-verify-object-ops/op_anewarray.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_anewarray -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - anewarray java/lang/Object - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_arraylength.j b/dx/tests/106-verify-object-ops/op_arraylength.j deleted file mode 100644 index df5af825b..000000000 --- a/dx/tests/106-verify-object-ops/op_arraylength.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_arraylength -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - arraylength - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_athrow.j b/dx/tests/106-verify-object-ops/op_athrow.j deleted file mode 100644 index a5a5be39c..000000000 --- a/dx/tests/106-verify-object-ops/op_athrow.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_athrow -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - athrow - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_checkcast.j b/dx/tests/106-verify-object-ops/op_checkcast.j deleted file mode 100644 index d921ec43c..000000000 --- a/dx/tests/106-verify-object-ops/op_checkcast.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_checkcast -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - checkcast java/lang/Object - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_getfield.j b/dx/tests/106-verify-object-ops/op_getfield.j deleted file mode 100644 index 4d5f78267..000000000 --- a/dx/tests/106-verify-object-ops/op_getfield.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_getfield -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - getfield blort/x I - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_instanceof.j b/dx/tests/106-verify-object-ops/op_instanceof.j deleted file mode 100644 index 8a938f525..000000000 --- a/dx/tests/106-verify-object-ops/op_instanceof.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_instanceof -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - instanceof java/lang/Object - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_invokeinterface.j b/dx/tests/106-verify-object-ops/op_invokeinterface.j deleted file mode 100644 index 2f1528fb6..000000000 --- a/dx/tests/106-verify-object-ops/op_invokeinterface.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_invokeinterface -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - invokeinterface blort/x()V 1 - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_invokespecial.j b/dx/tests/106-verify-object-ops/op_invokespecial.j deleted file mode 100644 index 87baffc81..000000000 --- a/dx/tests/106-verify-object-ops/op_invokespecial.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_invokespecial -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - invokespecial blort/x()V - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_invokestatic.j b/dx/tests/106-verify-object-ops/op_invokestatic.j deleted file mode 100644 index 80247bd65..000000000 --- a/dx/tests/106-verify-object-ops/op_invokestatic.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_invokestatic -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - invokestatic blort/x(I)V - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_invokevirtual.j b/dx/tests/106-verify-object-ops/op_invokevirtual.j deleted file mode 100644 index d7ba9b56e..000000000 --- a/dx/tests/106-verify-object-ops/op_invokevirtual.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_invokevirtual -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - invokevirtual blort/x()V - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_monitorenter.j b/dx/tests/106-verify-object-ops/op_monitorenter.j deleted file mode 100644 index 95e23d881..000000000 --- a/dx/tests/106-verify-object-ops/op_monitorenter.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_monitorenter -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - monitorenter - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_monitorexit.j b/dx/tests/106-verify-object-ops/op_monitorexit.j deleted file mode 100644 index 50e5fe2ce..000000000 --- a/dx/tests/106-verify-object-ops/op_monitorexit.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_monitorexit -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - monitorexit - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_multianewarray.j b/dx/tests/106-verify-object-ops/op_multianewarray.j deleted file mode 100644 index d02f474bc..000000000 --- a/dx/tests/106-verify-object-ops/op_multianewarray.j +++ /dev/null @@ -1,26 +0,0 @@ -; Copyright (C) 2008 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 op_multianewarray -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - iconst_0 - multianewarray [[[I 2 - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_newarray.j b/dx/tests/106-verify-object-ops/op_newarray.j deleted file mode 100644 index 16ab256c6..000000000 --- a/dx/tests/106-verify-object-ops/op_newarray.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_newarray -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - newarray short - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_putfield.j b/dx/tests/106-verify-object-ops/op_putfield.j deleted file mode 100644 index eb33fc994..000000000 --- a/dx/tests/106-verify-object-ops/op_putfield.j +++ /dev/null @@ -1,26 +0,0 @@ -; Copyright (C) 2008 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 op_putfield -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - iconst_0 - putfield blort/x I - return -.end method diff --git a/dx/tests/106-verify-object-ops/op_putstatic.j b/dx/tests/106-verify-object-ops/op_putstatic.j deleted file mode 100644 index 221f08b67..000000000 --- a/dx/tests/106-verify-object-ops/op_putstatic.j +++ /dev/null @@ -1,25 +0,0 @@ -; Copyright (C) 2008 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 op_putstatic -.super java/lang/Object - -.method public static test()V - .limit locals 2 - .limit stack 3 - - fconst_0 - putstatic blort/x I - return -.end method diff --git a/dx/tests/106-verify-object-ops/run b/dx/tests/106-verify-object-ops/run deleted file mode 100644 index f512210bc..000000000 --- a/dx/tests/106-verify-object-ops/run +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2007 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. - -function oneop() -{ - jasmin -d . op_"$1".j - dx --debug --dex op_"$1".class >/dev/null 2>&1 - if [ "$?" = "0" ]; then - dx --debug --dex --dump-method="op_$1.test*" op_"$1".class - else - echo "$1: expected failure occurred" - fi -} - -oneop anewarray -oneop arraylength -oneop athrow -oneop checkcast -oneop getfield -oneop instanceof -oneop invokeinterface -oneop invokespecial -oneop invokestatic -oneop invokevirtual -oneop monitorenter -oneop monitorexit -oneop multianewarray -oneop newarray -oneop putfield -oneop putstatic |