diff options
Diffstat (limited to 'test/Misc/diag-template-diffing-color.cpp')
-rw-r--r-- | test/Misc/diag-template-diffing-color.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Misc/diag-template-diffing-color.cpp b/test/Misc/diag-template-diffing-color.cpp new file mode 100644 index 0000000000..edbf4c216d --- /dev/null +++ b/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<typename> struct foo {}; +void func(foo<int>); +int main() { + func(foo<double>()); +} +// CHECK: {{.*}}candidate function not viable: no known conversion from 'foo<{{.}}[0;1;36mdouble{{.}}[0m>' to 'foo<{{.}}[0;1;36mint{{.}}[0m>' for 1st argument{{.}}[0m |