| // Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| package com.android.tools.r8; |
| import com.android.tools.r8.utils.StringUtils; |
| float[][][] fs = new float[1][2][3]; |
| public static void main(String[] args) { |
| System.out.println(new Tester().foo()); |
| // The DirectoryClasspathProvider asserts lookups are reference types which witnessed the issue. |
| public class RegressionForPrimitiveDefinitionForLookup extends TestBase { |
| public final Class<Tester> CLASS = Tester.class; |
| public String EXPECTED = StringUtils.lines("1"); |
| public void testWithArchiveClasspath() throws Exception { |
| .addClasspathClasses(CLASS) |
| .addProgramClasses(CLASS) |
| .assertSuccessWithOutput(EXPECTED); |
| public void testWithDirectoryClasspath() throws Exception { |
| .addClasspathFiles(ToolHelper.getClassPathForTests()) |
| .addProgramClasses(CLASS) |
| .assertSuccessWithOutput(EXPECTED); |