set(LLVM_LINK_COMPONENTS
  Support
  )

set(ADTSources
  APFloatTest.cpp
  APIntTest.cpp
  APSIntTest.cpp
  ArrayRefTest.cpp
  BitVectorTest.cpp
  DAGDeltaAlgorithmTest.cpp
  DeltaAlgorithmTest.cpp
  DenseMapTest.cpp
  DenseSetTest.cpp
  FoldingSet.cpp
  FunctionRefTest.cpp
  HashingTest.cpp
  ilistTest.cpp
  ImmutableMapTest.cpp
  ImmutableSetTest.cpp
  IntEqClassesTest.cpp
  IntervalMapTest.cpp
  IntrusiveRefCntPtrTest.cpp
  MakeUniqueTest.cpp
  MapVectorTest.cpp
  OptionalTest.cpp
  PackedVectorTest.cpp
  PointerIntPairTest.cpp
  PointerUnionTest.cpp
  PostOrderIteratorTest.cpp
  RangeAdapterTest.cpp
  SCCIteratorTest.cpp
  SmallPtrSetTest.cpp
  SmallStringTest.cpp
  SmallVectorTest.cpp
  SparseBitVectorTest.cpp
  SparseMultiSetTest.cpp
  SparseSetTest.cpp
  StringMapTest.cpp
  StringRefTest.cpp
  TinyPtrVectorTest.cpp
  TripleTest.cpp
  TwineTest.cpp
  VariadicFunctionTest.cpp
 )

add_llvm_unittest(ADTTests
  ${ADTSources}
  )

add_dependencies(ADTTests intrinsics_gen)