1 /*
2  * Copyright 2017-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package internal_test2
6 
7 import internal_test1.D
8 import kotlinx.atomicfu.test.A
9 import kotlin.test.*
10 
11 class C {
12     @Test
testInternalnull13     fun testInternal() {
14         val a = A()
15         check(a.yyy.decrementAndGet() == 638753975930025819)
16         check(a.intArr[3].getAndAdd(5) == 0)
17         val d = D()
18         check(d.da.intArr[2].compareAndSet(0, 38535))
19         check(d.da.xxx.getAndAdd(90) == 5)
20         check(d.da.xxx.value == 95)
21     }
22 
23     @Test
testInternalGetFieldnull24     fun testInternalGetField() {
25         val a = A()
26         a.set(1, "Hello")
27     }
28 }