Skip to content

Commit ee14b71

Browse files
tomballcopybara-github
authored andcommitted
Suppressed intentional integer overflow test warning.
PiperOrigin-RevId: 715029959
1 parent 7706995 commit ee14b71

File tree

1 file changed

+5
-0
lines changed
  • jre_emul/android/platform/libcore/ojluni/src/test/java/time/tck/java/time

1 file changed

+5
-0
lines changed

jre_emul/android/platform/libcore/ojluni/src/test/java/time/tck/java/time/TCKYearMonth.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@
123123
@RunWith(DataProviderRunner.class)
124124
public class TCKYearMonth extends AbstractDateTimeTest {
125125

126+
/*-[
127+
// Some test values intentionally cause integer overflow, valid in Java.
128+
#pragma GCC diagnostic ignored "-Winteger-overflow"
129+
]-*/
130+
126131
// Android-changed: This was originally non-static and initialized in @Before,
127132
// but @Before is run after @DataProvider
128133
// since multiple test methods were run and the first one did not require this value.

0 commit comments

Comments
 (0)