Files
swift-mirror/test/DebugInfo/value-witness-table.swift
Erik Eckstein 78ec15cf38 tests: remove some unused FileCheck prefix options
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
2021-03-25 15:19:30 +01:00

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 }