[clang] [lldb] Serialize `#pragma redefine_extname` into precompiled headers. (PR #186755)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 20 09:50:22 PDT 2026
================
@@ -0,0 +1,14 @@
+// Test this without pch.
+// RUN: %clang_cc1 -triple=x86_64-unknown-linux -include %S/pragma-redefine-extname.h %s -verify -emit-llvm -o - | FileCheck %s
+
+// Test with pch.
+// RUN: %clang_cc1 -triple=x86_64-unknown-linux -x c-header -emit-pch -o %t %S/pragma-redefine-extname.h
+// RUN: %clang_cc1 -triple=x86_64-unknown-linux -include-pch %t %s -verify -emit-llvm -o - | FileCheck %s
+
+// CHECK-DAG: define dso_local void @redeffunc2_ext
+// CHECK-DAG: call void @redeffunc1_ext
+
+///////////// Issue #186742: check that #pragma redefine_extname exports into PCHs even if the header contains no declaration of the symbol
----------------
ilovepi wrote:
```suggestion
/// Issue #186742: check that #pragma redefine_extname exports into PCHs even if the header contains no declaration of the symbol
```
https://github.com/llvm/llvm-project/pull/186755
More information about the cfe-commits
mailing list