mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
12 lines
211 B
Swift
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
|
|
}
|
|
}
|
|
|