Files
swift-mirror/test/IRGen/non-copyable-class-mangling.swift
Erik Eckstein 65ad4ebbdd mangling: support inverse conformance requirement mangling in the old re-mangler
This is needed to emit ObjC class names for classes inside generic types with e.g. non-copyable requirements.
Fixes a compiler crash in IRGen.

rdar://133333754
2024-08-07 09:52:05 +02:00

12 lines
211 B
Swift

// RUN: %target-swift-frontend %s -emit-ir -o /dev/null
// Check that we don't crash on this in the old re-mangler.
// rdar://133333754
struct S<T> where T: ~Copyable {
final class C {
let x = 27
}
}