Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / test / src / __support / CPP / CMakeLists.txt
blob5772a83a65cad135945e460c14de861734c745d5
1 add_custom_target(libc-cpp-utils-tests)
3 add_libc_test(
4   bitset_test
5   SUITE
6     libc-cpp-utils-tests
7   SRCS
8     bitset_test.cpp
9   DEPENDS
10     libc.src.__support.CPP.bitset
13 add_libc_test(
14   cstddef_test
15   SUITE
16     libc-cpp-utils-tests
17   SRCS
18     cstddef_test.cpp
19   DEPENDS
20     libc.src.__support.CPP.cstddef
23 add_libc_test(
24   stringview_test
25   SUITE
26     libc-cpp-utils-tests
27   SRCS
28     stringview_test.cpp
29   DEPENDS
30     libc.src.__support.CPP.string_view
33 add_libc_test(
34   limits_test
35   SUITE
36     libc-cpp-utils-tests
37   SRCS
38     limits_test.cpp
39   DEPENDS
40     libc.src.__support.CPP.limits
41     libc.src.__support.uint
44 add_libc_test(
45   int_seq_test
46   SUITE
47     libc-cpp-utils-tests
48   SRCS
49     integer_sequence_test.cpp
50   DEPENDS
51     libc.src.__support.CPP.utility
55 # This test fails with invalid address space operations on sm_60
56 if(NOT LIBC_GPU_TARGET_ARCHITECTURE_IS_NVPTX)
57   add_libc_test(
58     atomic_test
59     SUITE
60       libc-cpp-utils-tests
61     SRCS
62       atomic_test.cpp
63     DEPENDS
64       libc.src.__support.CPP.atomic
65   )
66 endif()
68 add_libc_test(
69   stringstream_test
70   SUITE
71     libc-cpp-utils-tests
72   SRCS
73     stringstream_test.cpp
74   DEPENDS
75     libc.src.__support.CPP.span
76     libc.src.__support.CPP.stringstream
79 add_libc_test(
80   optional_test
81   SUITE
82     libc-cpp-utils-tests
83   SRCS
84     optional_test.cpp
85   DEPENDS
86     libc.src.__support.CPP.optional
89 add_libc_test(
90   span_test
91   SUITE
92     libc-cpp-utils-tests
93   SRCS
94     span_test.cpp
95   DEPENDS
96     libc.src.__support.CPP.span
99 add_libc_test(
100   string_test
101   SUITE
102     libc-cpp-utils-tests
103   SRCS
104     string_test.cpp
105   DEPENDS
106   libc.src.__support.CPP.string
107   libc.src.__support.CPP.string_view
110 add_libc_test(
111   type_traits_test
112   SUITE
113     libc-cpp-utils-tests
114   SRCS
115   type_traits_test.cpp
116   DEPENDS
117   libc.src.__support.CPP.type_traits