| commit | df0019f3d064a73bcf25106784ae00d7cf2a7c40 | [log] [tgz] |
|---|---|---|
| author | Christoffer Adamsen <christofferqa@google.com> | Thu Apr 10 15:11:00 2025 +0000 |
| committer | Christoffer Adamsen <christofferqa@google.com> | Thu Apr 10 15:11:00 2025 +0000 |
| tree | 639558773f8ff1f496f4543c0f85167b73eedf53 | |
| parent | 8ca5d9f0a22f9330a863d241703b03d164dc73a0 [diff] |
Update ReflectiveConstructionWithInlineClassTest Change-Id: I26b91a90db57c30d35894d3f262a4bd91add70f1
diff --git a/src/test/java/com/android/tools/r8/kotlin/reflection/ReflectiveConstructionWithInlineClassTest.java b/src/test/java/com/android/tools/r8/kotlin/reflection/ReflectiveConstructionWithInlineClassTest.java index 3aed375..9ec5f51 100644 --- a/src/test/java/com/android/tools/r8/kotlin/reflection/ReflectiveConstructionWithInlineClassTest.java +++ b/src/test/java/com/android/tools/r8/kotlin/reflection/ReflectiveConstructionWithInlineClassTest.java
@@ -136,6 +136,9 @@ .assertNoErrorMessages() .apply(KotlinMetadataTestBase::verifyExpectedWarningsFromKotlinReflectAndStdLib) .run(parameters.getRuntime(), MAIN_CLASS) - .assertSuccessWithOutputLines(EXPECTED_OUTPUT); + .applyIf( + parameters.canUseJavaLangInvokeVarHandleStoreStoreFence(), + rr -> rr.assertFailureWithErrorThatThrows(NullPointerException.class), + rr -> rr.assertSuccessWithOutputLines(EXPECTED_OUTPUT)); } }