[libc-commits] [libc] [libc] Fix hdrgen test test_small_proxy.h (PR #185890)

via libc-commits libc-commits at lists.llvm.org
Wed Mar 11 10:04:02 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Victor Campos (vhscampos)

<details>
<summary>Changes</summary>

The expected output was outdated as it did not contain the macro definitions.

This patch fixes the issue.

---
Full diff: https://github.com/llvm/llvm-project/pull/185890.diff


1 Files Affected:

- (modified) libc/utils/hdrgen/tests/expected_output/test_small_proxy.h (+6) 


``````````diff
diff --git a/libc/utils/hdrgen/tests/expected_output/test_small_proxy.h b/libc/utils/hdrgen/tests/expected_output/test_small_proxy.h
index 4cb950f1f51c8..bf98581ef4763 100644
--- a/libc/utils/hdrgen/tests/expected_output/test_small_proxy.h
+++ b/libc/utils/hdrgen/tests/expected_output/test_small_proxy.h
@@ -18,6 +18,12 @@
 #include "llvm-libc-types/type_a.h"
 #include "llvm-libc-types/type_b.h"
 
+#define MACRO_A 1
+
+#define MACRO_B 2
+
+#define MACRO_C
+
 #else // Overlay mode
 
 #include <test_small.h>

``````````

</details>


https://github.com/llvm/llvm-project/pull/185890


More information about the libc-commits mailing list