Files
swift-mirror/test/Interop/Cxx/concepts/method-requires.swift
Egor Zhdan 2c00ae939b [cxx-interop] Adjust a concepts test for rebranch
Clang now includes concepts in the mangled names of C++ functions: 4b163e343c

This adjusts the test to verify that we don't transitively emit the symbols referenced from the requires expression. Those symbols shouldn't be emitted because they are not executed.

rdar://127263407
2024-07-08 17:59:21 +01:00

9 lines
218 B
Swift

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