Files
swift-mirror/test/DebugInfo/external-global.swift
Adrian Prantl de7de7db9c Debug info: Don't emit externally defined global variables.
rdar://problem/20507438

Swift SVN r28276
2015-05-07 18:14:55 +00:00

8 lines
344 B
Swift

// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -emit-module-path %t/Globals.swiftmodule %S/Globals.swift
// RUN: %target-swift-frontend -I %t %s -g -emit-ir -o - | FileCheck %s
import Globals
// No debug info should be emitted for an externally defined global variable.
// CHECK-NOT: !DIGlobalVariable({{.*}}global
global = 23