Files
swift-mirror/test/Driver/color-diagnostics.swift
2019-07-08 04:22:06 +03:00

10 lines
352 B
Swift

// RUN: not %target-swiftc_driver -color-diagnostics -emit-executable -o %t %s 2>&1 \
// RUN: | %FileCheck -check-prefix=CHECK-CD %s
// CHECK-CD: [0m1 = 2{{$}}
// RUN: not %target-swiftc_driver -no-color-diagnostics -emit-executable -o %t %s 2>&1 \
// RUN: | %FileCheck -check-prefix=CHECK-NCD --match-full-lines %s
// CHECK-NCD: 1 = 2
1 = 2