================
@@ -0,0 +1,39 @@
+// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir 
-emit-cir %s -o %t.cir
+// RUN: FileCheck %s --input-file=%t.cir
+// RUN: FileCheck %s --input-file=%t.cir --check-prefix=TAG
+
+namespace std {
+inline namespace __1 {
+int *find(int *first, int *last, int value);
+}
+struct container {
+  int *find(int value);
+};
+struct traits {
+  static int *find(int *first);
+};
+}
+
+namespace other {
+int *find(int *first, int *last, int value);
+}
+
+int *std_call(int *first, int *last) { return std::find(first, last, 42); }
+// The free std find carries its tag, with inline namespaces looked
+// through.
+// CHECK-DAG: cir.func{{.*}} @_ZNSt3__14find{{.*}} 
func_info<#cir.func_identity<std_find>>
----------------
SharmaRithik wrote:

Changed to CHECK, it was a lone directive so DAG added nothing.

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

Reply via email to