diff options
Diffstat (limited to 'test/Misc/diag-template-diffing-cxx98.cpp')
-rw-r--r-- | test/Misc/diag-template-diffing-cxx98.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Misc/diag-template-diffing-cxx98.cpp b/test/Misc/diag-template-diffing-cxx98.cpp new file mode 100644 index 0000000000..cd40ccc374 --- /dev/null +++ b/test/Misc/diag-template-diffing-cxx98.cpp @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -fsyntax-only %s -std=c++98 2>&1 | FileCheck %s + +namespace PR14342 { + template<typename T, char a> struct X {}; + X<int, 1> x = X<long, 257>(); + // CHECK: error: no viable conversion from 'X<long, [...]>' to 'X<int, [...]>' +}
\ No newline at end of file |