mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The option -enable-anonymous-context-mangled-names prevents stripping of dead metadata to improve debuggability. But with optimizations enabled, we do a lot of dead code stripping which affects debuggability anyway. rdar://problem/48123944
11 lines
563 B
Swift
11 lines
563 B
Swift
// RUN: %target-swiftc_driver -### -g %s 2>&1 | %FileCheck %s
|
|
// RUN: %target-swiftc_driver -### -g -Onone %s 2>&1 | %FileCheck -check-prefix=CHECK-ONONE %s
|
|
// RUN: %target-swiftc_driver -### -g -O %s 2>&1 | %FileCheck -check-prefix=CHECK-O %s
|
|
// RUN: %target-swiftc_driver -### -g -Osize %s 2>&1 | %FileCheck -check-prefix=CHECK-OSIZE %s
|
|
|
|
// CHECK: -enable-anonymous-context-mangled-names
|
|
// CHECK-ONONE: -enable-anonymous-context-mangled-names
|
|
// CHECK-O-NOT: -enable-anonymous-context-mangled-names
|
|
// CHECK-OSIZE-NOT: -enable-anonymous-context-mangled-names
|
|
|