Files
swift-mirror/test/Interop/Cxx/concepts/method-requires.swift
Egor Zhdan 21745e52c4 [cxx-interop] Do not emit IR for C++20 requires expr
This fixes a compiler crash when emitting IR for a for-in loop over a C++ `std::vector` in C++20 mode.

rdar://108810356
2023-05-05 17:21:38 +01:00

11 lines
239 B
Swift

// RUN: %target-swiftxx-frontend -emit-ir -Xcc -std=gnu++20 -I %S/Inputs %s | %FileCheck %s
//
// REQUIRES: OS=macosx
import MethodRequires
var s = MyStruct()
s.foo(123)
// CHECK-NOT: calledFromConceptBody
// CHECK: calledFromMethodBody