[RISCV][NFC] Remove Redundant Inline Asm Logic (#124202)
[llvm-project.git] / libc / test / src / __support / CPP / CMakeLists.txt
blob2b4d6107b767d3dfa5b488a37c78c24f11956be4
1 add_custom_target(libc-cpp-utils-tests)
3 add_libc_test(
4   algorithm_test
5   SUITE
6     libc-cpp-utils-tests
7   SRCS
8     algorithm_test.cpp
9   DEPENDS
10     libc.src.__support.CPP.algorithm
11   )
13 add_libc_test(
14   array_test
15   SUITE
16     libc-cpp-utils-tests
17   SRCS
18     array_test.cpp
19   DEPENDS
20     libc.src.__support.CPP.array
21   )
23 add_libc_test(
24   bit_test
25   SUITE
26     libc-cpp-utils-tests
27   SRCS
28     bit_test.cpp
29   DEPENDS
30     libc.src.__support.big_int
31     libc.src.__support.CPP.bit
32     libc.src.__support.macros.properties.types
35 add_libc_test(
36   bitset_test
37   SUITE
38     libc-cpp-utils-tests
39   SRCS
40     bitset_test.cpp
41   DEPENDS
42     libc.src.__support.CPP.bitset
45 add_libc_test(
46   cstddef_test
47   SUITE
48     libc-cpp-utils-tests
49   SRCS
50     cstddef_test.cpp
51   DEPENDS
52     libc.src.__support.CPP.cstddef
55 add_libc_test(
56   stringview_test
57   SUITE
58     libc-cpp-utils-tests
59   SRCS
60     stringview_test.cpp
61   DEPENDS
62     libc.src.__support.CPP.string_view
65 add_libc_test(
66   limits_test
67   SUITE
68     libc-cpp-utils-tests
69   SRCS
70     limits_test.cpp
71   DEPENDS
72     libc.src.__support.big_int
73     libc.src.__support.CPP.limits
74     libc.src.__support.macros.properties.types
77 add_libc_test(
78   mutex_test
79   SUITE
80     libc-cpp-utils-tests
81   SRCS
82     mutex_test.cpp
83   DEPENDS
84     libc.src.__support.CPP.mutex
87 add_libc_test(
88   int_seq_test
89   SUITE
90     libc-cpp-utils-tests
91   SRCS
92     integer_sequence_test.cpp
93   DEPENDS
94     libc.src.__support.CPP.utility
98 # This test fails with invalid address space operations on sm_60
99 if(NOT LIBC_TARGET_ARCHITECTURE_IS_NVPTX)
100   add_libc_test(
101     atomic_test
102     SUITE
103       libc-cpp-utils-tests
104     SRCS
105       atomic_test.cpp
106     DEPENDS
107       libc.src.__support.CPP.atomic
108   )
109 endif()
111 add_libc_test(
112   stringstream_test
113   SUITE
114     libc-cpp-utils-tests
115   SRCS
116     stringstream_test.cpp
117   DEPENDS
118     libc.src.__support.CPP.span
119     libc.src.__support.CPP.stringstream
122 add_libc_test(
123   optional_test
124   SUITE
125     libc-cpp-utils-tests
126   SRCS
127     optional_test.cpp
128   DEPENDS
129     libc.src.__support.CPP.optional
132 add_libc_test(
133   span_test
134   SUITE
135     libc-cpp-utils-tests
136   SRCS
137     span_test.cpp
138   DEPENDS
139     libc.src.__support.CPP.span
142 add_libc_test(
143   string_test
144   SUITE
145     libc-cpp-utils-tests
146   SRCS
147     string_test.cpp
148   DEPENDS
149   libc.src.__support.CPP.string
150   libc.src.__support.CPP.string_view
153 add_libc_test(
154   type_traits_test
155   SUITE
156     libc-cpp-utils-tests
157   SRCS
158   type_traits_test.cpp
159   DEPENDS
160   libc.src.__support.CPP.type_traits