mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
9 lines
218 B
Swift
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
|