001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.harmony.drlvm.tests.regression.h2899;
019:
020: import junit.framework.TestCase;
021:
022: public class ManyArgsTest extends TestCase {
023: static {
024: System.loadLibrary("ManyArgs");
025: }
026:
027: public native Object native_method(Object arg1, Object arg2,
028: Object arg3, Object arg4, Object arg5, Object arg6,
029: Object arg7, Object arg8, Object arg9, Object arg10,
030: Object arg11, Object arg12, Object arg13, Object arg14,
031: Object arg15, Object arg16, Object arg17, Object arg18,
032: Object arg19, Object arg20, Object arg21, Object arg22,
033: Object arg23, Object arg24, Object arg25, Object arg26,
034: Object arg27, Object arg28, Object arg29, Object arg30,
035: Object arg31, Object arg32, Object arg33, Object arg34,
036: Object arg35, Object arg36, Object arg37, Object arg38,
037: Object arg39, Object arg40, Object arg41, Object arg42,
038: Object arg43, Object arg44, Object arg45, Object arg46,
039: Object arg47, Object arg48, Object arg49, Object arg50,
040: Object arg51, Object arg52, Object arg53, Object arg54,
041: Object arg55, Object arg56, Object arg57, Object arg58,
042: Object arg59, Object arg60, Object arg61, Object arg62,
043: Object arg63, Object arg64, Object arg65, Object arg66,
044: Object arg67, Object arg68, Object arg69, Object arg70,
045: Object arg71, Object arg72, Object arg73, Object arg74,
046: Object arg75, Object arg76, Object arg77, Object arg78,
047: Object arg79, Object arg80, Object arg81, Object arg82,
048: Object arg83, Object arg84, Object arg85, Object arg86,
049: Object arg87, Object arg88, Object arg89, Object arg90,
050: Object arg91, Object arg92, Object arg93, Object arg94,
051: Object arg95, Object arg96, Object arg97, Object arg98,
052: Object arg99, Object arg100, Object arg101, Object arg102,
053: Object arg103, Object arg104, Object arg105, Object arg106,
054: Object arg107, Object arg108, Object arg109, Object arg110,
055: Object arg111, Object arg112, Object arg113, Object arg114,
056: Object arg115, Object arg116, Object arg117, Object arg118,
057: Object arg119, Object arg120, Object arg121, Object arg122,
058: Object arg123, Object arg124, Object arg125, Object arg126,
059: Object arg127, Object arg128, Object arg129, Object arg130,
060: Object arg131, Object arg132, Object arg133, Object arg134,
061: Object arg135, Object arg136, Object arg137, Object arg138,
062: Object arg139, Object arg140, Object arg141, Object arg142,
063: Object arg143, Object arg144, Object arg145, Object arg146,
064: Object arg147, Object arg148, Object arg149, Object arg150,
065: Object arg151, Object arg152, Object arg153, Object arg154,
066: Object arg155, Object arg156, Object arg157, Object arg158,
067: Object arg159, Object arg160, Object arg161, Object arg162,
068: Object arg163, Object arg164, Object arg165, Object arg166,
069: Object arg167, Object arg168, Object arg169, Object arg170,
070: Object arg171, Object arg172, Object arg173, Object arg174,
071: Object arg175, Object arg176, Object arg177, Object arg178,
072: Object arg179, Object arg180, Object arg181, Object arg182,
073: Object arg183, Object arg184, Object arg185, Object arg186,
074: Object arg187, Object arg188, Object arg189, Object arg190,
075: Object arg191, Object arg192, Object arg193, Object arg194,
076: Object arg195, Object arg196, Object arg197, Object arg198,
077: Object arg199, Object arg200, Object arg201, Object arg202,
078: Object arg203, Object arg204, Object arg205, Object arg206,
079: Object arg207, Object arg208, Object arg209, Object arg210,
080: Object arg211, Object arg212, Object arg213, Object arg214,
081: Object arg215, Object arg216, Object arg217, Object arg218,
082: Object arg219, Object arg220, Object arg221, Object arg222,
083: Object arg223, Object arg224, Object arg225, Object arg226,
084: Object arg227, Object arg228, Object arg229, Object arg230,
085: Object arg231, Object arg232, Object arg233, Object arg234,
086: Object arg235, Object arg236, Object arg237, Object arg238,
087: Object arg239, Object arg240, Object arg241, Object arg242,
088: Object arg243, Object arg244, Object arg245, Object arg246,
089: Object arg247, Object arg248, Object arg249, Object arg250,
090: Object arg251, Object arg252, Object arg253, Object arg254);
091:
092: public void testNativeCall() {
093: Object ret = native_method(null, null, null, null, null, null,
094: null, null, null, null, null, null, null, null, null,
095: null, null, null, null, null, null, null, null, null,
096: null, null, null, null, null, null, null, null, null,
097: null, null, null, null, null, null, null, null, null,
098: null, null, null, null, null, null, null, null, null,
099: null, null, null, null, null, null, null, null, null,
100: null, null, null, null, null, null, null, null, null,
101: null, null, null, null, null, null, null, null, null,
102: null, null, null, null, null, null, null, null, null,
103: null, null, null, null, null, null, null, null, null,
104: null, null, null, null, null, null, null, null, null,
105: null, null, null, null, null, null, null, null, null,
106: null, null, null, null, null, null, null, null, null,
107: null, null, null, null, null, null, null, null, null,
108: null, null, null, null, null, null, null, null, null,
109: null, null, null, null, null, null, null, null, null,
110: null, null, null, null, null, null, null, null, null,
111: null, null, null, null, null, null, null, null, null,
112: null, null, null, null, null, null, null, null, null,
113: null, null, null, null, null, null, null, null, null,
114: null, null, null, null, null, null, null, null, null,
115: null, null, null, null, null, null, null, null, null,
116: null, null, null, null, null, null, null, null, null,
117: null, null, null, null, null, null, null, null, null,
118: null, null, null, null, null, null, null, null, null,
119: null, null, null, null, null, null, null, null, null,
120: null, null, null, null, null, null, null, null, null,
121: null, null, null, null, null);
122: assertNull(ret);
123: }
124: }
|