Files
swift-mirror/test/Driver/color-diagnostics.swift
Owen Voorhees c4e67e29ed [Diagnostics] Add -diagnostic-style=(llvm|swift) to control printed output
This default formatting style remains the same "LLVM style". "Swift style"
is what was previously enabled via -enable-experimental-diagnostic-formatting
2020-05-20 19:34:15 -05:00

10 lines
375 B
Swift

// RUN: not %target-swiftc_driver -color-diagnostics -diagnostic-style=llvm -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