[libc-commits] [libc] [libc] Add compile tests for each public header (PR #122527)
Roland McGrath via libc-commits
libc-commits at lists.llvm.org
Fri Jan 10 14:07:33 PST 2025
================
@@ -0,0 +1,14 @@
+/*===-- Test for <@HEADER_NAME@> ----------------------------------------===
+ *
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+ * See https://llvm.org/LICENSE.txt for license information.
+ * SPDSList-License-Identifier: Apache-2.0 WITH LLVM-exception
+ */
+
+#include <@HEADER_NAME@>
+
+#ifdef __cplusplus
+extern "C" int main() { return 0; }
+#else
+int main(void) { return 0; }
+#endif
----------------
frobtech wrote:
Done.
https://github.com/llvm/llvm-project/pull/122527
More information about the libc-commits
mailing list