[clang] [CIR] Add support for C++ conversion operators (PR #151066)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 29 07:46:58 PDT 2025
================
@@ -0,0 +1,130 @@
+// RUN: %clang_cc1 -std=c++11 -triple aarch64-none-linux-android21 -fclangir -emit-cir %s -o %t.cir
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -std=c++11 -triple aarch64-none-linux-android21 -fclangir -emit-llvm %s -o %t-cir.ll
+// RUN: FileCheck --check-prefix=LLVM --input-file=%t-cir.ll %s
+// RUN: %clang_cc1 -std=c++11 -triple aarch64-none-linux-android21 -emit-llvm %s -o %t.ll
+// RUN: FileCheck --check-prefix=OGCG --input-file=%t.ll %s
+
+struct inline_operator {
+ operator int() const {
----------------
bcardosolopes wrote:
maybe indent this to 2 spaces to follow the more common pattern?
https://github.com/llvm/llvm-project/pull/151066
More information about the cfe-commits
mailing list