mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Such tests would fail with the -allow-unused-prefixes FileCheck option. diff --git a/test/lit.cfg b/test/lit.cfg -run_filecheck = '%s %s --sanitize BUILD_DIR=%s --sanitize SOURCE_DIR=%s --use-filecheck %s %s' % ( +run_filecheck = '%s %s --sanitize BUILD_DIR=%s --sanitize SOURCE_DIR=%s --use-filecheck %s %s -allow-unused-prefixes=false' % ( It helps avoiding some wrong CHECK patterns. I just looked briefly at some of the fails. TODO: fix remaining tests, too. rdar://74189761
9 lines
294 B
Swift
9 lines
294 B
Swift
// RUN: %target-swift-frontend -g -emit-ir %s | %FileCheck %s --check-prefix=CHECK
|
|
|
|
// Test that we don't generate debug info for hidden global variables.
|
|
|
|
// CHECK: @"$s4main2E1OWV" ={{.*}} constant
|
|
// CHECK-NOT: !DIGlobalVariable
|
|
public enum E1 { case E }
|
|
public func f() -> E1 { return .E }
|