Files
swift-mirror/test/Interop/Cxx/class/custom-new-operator-irgen.swift
Finagolfin 15e1c73969 [android][test] Enable several C++ Interop and other tests
Also, fix lit.cfg for running the test suite natively in Android and mark one
SILOptimizer executable_test as such.
2024-07-20 17:56:51 +05:30

9 lines
280 B
Swift

// RUN: %target-swiftxx-frontend -I %S/Inputs %s -emit-ir | %FileCheck %s
import CustomNewOperator
var x = callsCustomNew()
// Make sure the definition of `operator new` is emitted.
// CHECK: define {{.*}} @{{_ZnwmPv15container_new_t|"\?\?2@YAPEAX_KPEAXUcontainer_new_t@@@Z"}}