================
@@ -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
----------------
divVerent wrote:

I honestly don't know if any order is guaranteed. However, in this case I think 
I can safely assume indeed that the call must come after the function the call 
is contained in is declared. So, done.

https://github.com/llvm/llvm-project/pull/186755
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to