Files
swift-mirror/test/IRGen/objc_protocol_multi_file.swift
Joe Groff 8cb1175e49 IRGen: Emit public definitions with protected visibility on ELF.
This prevents the linker from trying to emit relative relocations to locally-defined public symbols into dynamic libraries, which gives ld.so heartache.
2016-02-08 13:09:27 -08:00

12 lines
552 B
Swift

// RUN: %target-swift-frontend -primary-file %s %S/Inputs/objc_protocol_multi_file_helper.swift -g -emit-ir | FileCheck %s
// REQUIRES: objc_interop
// This used to crash <rdar://problem/17929944>.
// To tickle the crash, SubProto must not be used elsewhere in this file.
protocol SubProto : BaseProto {}
// CHECK: @_TMp24objc_protocol_multi_file8SubProto = {{(protected )?}}constant %swift.protocol
protocol DoubleSubProto : IntermediateProto {}
// CHECK: @_TMp24objc_protocol_multi_file14DoubleSubProto = {{(protected )?}}constant %swift.protocol