66 .checkMatchesOutput(".*WARNING: can not compute layout for type .+" +
67 " with flexible array member\\. Emitting undefined layout reference\\..*");
68 try (Loader loader = classLoader(jar)) {
69 assertNotNull(loader.loadClass(headerInterfaceName("incompleteArray2.h")));
70 } finally {
71 deleteFile(jar);
72 }
73 }
74
75 @Test
76 public void testIncompleteArrayUnion() {
77 if (IS_WINDOWS) { // MSVC extension
78 Path jar = getOutputFilePath("incompleteArray3.jar");
79 Path input = getInputFilePath("incompleteArray3.h");
80 run("-o", jar.toString(),
81 input.toString())
82 .checkSuccess()
83 .checkMatchesOutput(".*WARNING: can not compute layout for type .+" +
84 " with flexible array member\\. Emitting undefined layout reference\\..*");
85 try (Loader loader = classLoader(jar)) {
86 assertNotNull(loader.loadClass(headerInterfaceName("incompleteArray3i.h")));
87 } finally {
88 deleteFile(jar);
89 }
90 }
91 }
92
93 }
|
66 .checkMatchesOutput(".*WARNING: can not compute layout for type .+" +
67 " with flexible array member\\. Emitting undefined layout reference\\..*");
68 try (Loader loader = classLoader(jar)) {
69 assertNotNull(loader.loadClass(headerInterfaceName("incompleteArray2.h")));
70 } finally {
71 deleteFile(jar);
72 }
73 }
74
75 @Test
76 public void testIncompleteArrayUnion() {
77 if (IS_WINDOWS) { // MSVC extension
78 Path jar = getOutputFilePath("incompleteArray3.jar");
79 Path input = getInputFilePath("incompleteArray3.h");
80 run("-o", jar.toString(),
81 input.toString())
82 .checkSuccess()
83 .checkMatchesOutput(".*WARNING: can not compute layout for type .+" +
84 " with flexible array member\\. Emitting undefined layout reference\\..*");
85 try (Loader loader = classLoader(jar)) {
86 assertNotNull(loader.loadClass(headerInterfaceName("incompleteArray3.h")));
87 } finally {
88 deleteFile(jar);
89 }
90 }
91 }
92
93 }
|