mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes a compiler crash when emitting IR for a for-in loop over a C++ `std::vector` in C++20 mode. rdar://108810356
11 lines
239 B
Swift
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
|