From 9e55d7407425524b5338229e10d5e31286ff4333 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 28 Jun 2012 21:46:07 +0000 Subject: Fix template type diffing coloring (r159216) when forcing color output to a file (not a terminal) Reviewed (over the shoulder) by Richard Trieu. llvm-svn: 159381 --- clang/test/Misc/diag-template-diffing-color.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 clang/test/Misc/diag-template-diffing-color.cpp (limited to 'clang/test/Misc/diag-template-diffing-color.cpp') diff --git a/clang/test/Misc/diag-template-diffing-color.cpp b/clang/test/Misc/diag-template-diffing-color.cpp new file mode 100644 index 00000000000..edbf4c216d2 --- /dev/null +++ b/clang/test/Misc/diag-template-diffing-color.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -fsyntax-only -fcolor-diagnostics %s 2>&1 | FileCheck %s +// XFAIL: cygwin,mingw32,win32 +template struct foo {}; +void func(foo); +int main() { + func(foo()); +} +// CHECK: {{.*}}candidate function not viable: no known conversion from 'foo<{{.}}[0;1;36mdouble{{.}}[0m>' to 'foo<{{.}}[0;1;36mint{{.}}[0m>' for 1st argument{{.}}[0m -- cgit v1.2.3