summary refs log tree commit diff stats
path: root/tests/stdlib/concurrency/tatomic_import.nim
blob: e8faaae2040b15186113c660eaadc7803fc62fb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import atomicSample

block crossFileObjectContainingAGenericWithAComplexObject:
  discard initAtomicWithGeneric[string]("foo")

block crossFileObjectContainingAGenericWithAnInteger:
  discard initAtomicWithGeneric[int](1)
  discard initAtomicWithGeneric[int8](1)
  discard initAtomicWithGeneric[int16](1)
  discard initAtomicWithGeneric[int32](1)
  discard initAtomicWithGeneric[int64](1)