mirror of
https://github.com/apple/swift.git
synced 2026-10-10 13:50:43 +02:00
Clang now includes concepts in the mangled names of C++ functions: https://github.com/apple/llvm-project/commit/4b163e343cfa54c8d55c9da73c70d58f55ea9df2 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
|