mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
11 lines
508 B
Swift
11 lines
508 B
Swift
// REQUIRES: VENDOR=apple
|
|
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: echo "import Foundation" > %t/main.swift
|
|
// RUN: echo "@objc(CApi) public class Api {}" >> %t/main.swift
|
|
// RUN: %target-swift-frontend -emit-ir -o/dev/null -parse-as-library -module-name test -import-objc-header %S/Inputs/objc_class_header.h -validate-tbd-against-ir=missing %t/main.swift -disable-objc-attr-requires-foundation-module -emit-tbd -emit-tbd-path %t/main.tbd
|
|
|
|
// RUN: %FileCheck %s < %t/main.tbd
|
|
|
|
// CHECK: objc-classes: [ CApi ]
|