From 63056c391842ebf9a9d82caab7b9ef13d15529e2 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Tue, 22 Jul 2014 04:06:54 +0000 Subject: More gracefully handle parentheses in templare arguments in template diffing. llvm-svn: 213611 --- clang/test/Misc/diag-template-diffing.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clang/test/Misc/diag-template-diffing.cpp') diff --git a/clang/test/Misc/diag-template-diffing.cpp b/clang/test/Misc/diag-template-diffing.cpp index 41cdca47126..391915ee970 100644 --- a/clang/test/Misc/diag-template-diffing.cpp +++ b/clang/test/Misc/diag-template-diffing.cpp @@ -1114,11 +1114,15 @@ struct Wrapper {}; template Wrapper MakeWrapper(); -int global; +int global, global2; constexpr int * ptr = nullptr; Wrapper> W = MakeWrapper>(); // Don't print an extra '&' for 'ptr' // CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper>' to 'Wrapper>' + +Wrapper> W2 = MakeWrapper>(); +// Handle parens correctly +// CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper>' to 'Wrapper>' } // CHECK-ELIDE-NOTREE: {{[0-9]*}} errors generated. -- cgit v1.2.3