[InstCombine] Remove insertRangeTest code that handles the equality case.
[llvm-complete.git] / unittests / Support / CMakeLists.txt
blobda2b501878a8d6545d12bb11eb6e6094c4906458
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
5 add_llvm_unittest(SupportTests
6   AlignOfTest.cpp
7   AllocatorTest.cpp
8   AnnotationsTest.cpp
9   ARMAttributeParser.cpp
10   ArrayRecyclerTest.cpp
11   BinaryStreamTest.cpp
12   BlockFrequencyTest.cpp
13   BranchProbabilityTest.cpp
14   CachePruningTest.cpp
15   CrashRecoveryTest.cpp
16   Casting.cpp
17   CheckedArithmeticTest.cpp
18   Chrono.cpp
19   CommandLineTest.cpp
20   CompressionTest.cpp
21   ConvertUTFTest.cpp
22   CRCTest.cpp
23   DataExtractorTest.cpp
24   DebugTest.cpp
25   DebugCounterTest.cpp
26   DJBTest.cpp
27   EndianStreamTest.cpp
28   EndianTest.cpp
29   ErrnoTest.cpp
30   ErrorOrTest.cpp
31   ErrorTest.cpp
32   FileCheckTest.cpp
33   FileOutputBufferTest.cpp
34   FormatVariadicTest.cpp
35   GlobPatternTest.cpp
36   Host.cpp
37   ItaniumManglingCanonicalizerTest.cpp
38   JSONTest.cpp
39   KnownBitsTest.cpp
40   LEB128Test.cpp
41   LineIteratorTest.cpp
42   LockFileManagerTest.cpp
43   MatchersTest.cpp
44   MD5Test.cpp
45   ManagedStatic.cpp
46   MathExtrasTest.cpp
47   MemoryBufferTest.cpp
48   MemoryTest.cpp
49   NativeFormatTests.cpp
50   ParallelTest.cpp
51   Path.cpp
52   ProcessTest.cpp
53   ProgramTest.cpp
54   RegexTest.cpp
55   ReverseIterationTest.cpp
56   ReplaceFileTest.cpp
57   ScaledNumberTest.cpp
58   SourceMgrTest.cpp
59   SpecialCaseListTest.cpp
60   StringPool.cpp
61   SwapByteOrderTest.cpp
62   SymbolRemappingReaderTest.cpp
63   TarWriterTest.cpp
64   TargetParserTest.cpp
65   TaskQueueTest.cpp
66   ThreadLocalTest.cpp
67   ThreadPool.cpp
68   Threading.cpp
69   TimerTest.cpp
70   TypeNameTest.cpp
71   TypeTraitsTest.cpp
72   TrailingObjectsTest.cpp
73   TrigramIndexTest.cpp
74   UnicodeTest.cpp
75   VersionTupleTest.cpp
76   VirtualFileSystemTest.cpp
77   YAMLIOTest.cpp
78   YAMLParserTest.cpp
79   formatted_raw_ostream_test.cpp
80   raw_ostream_test.cpp
81   raw_pwrite_stream_test.cpp
82   raw_sha1_ostream_test.cpp
83   xxhashTest.cpp
84   )
86 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
88 # Disable all warning for AlignOfTest.cpp,
89 # as it does things intentionally, and there is no reliable way of
90 # disabling all warnings for all the compilers by using pragmas.
91 # Don't disable on MSVC, because all incriminated warnings are already disabled
92 # in source; and because we would otherwise see this warning:
93 #   cl : Command line warning D9025: overriding '/W4' with '/w'
94 if(NOT MSVC)
95   set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
96 endif()
97 if(MSVC)
98   if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
99     # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
100     # generates a warning:
101     # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
102     #   warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
103     set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
104   endif()
105 endif()
107 # ManagedStatic.cpp uses <pthread>.
108 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
110 add_subdirectory(DynamicLibrary)