diff options
author | Richard Trieu <rtrieu@google.com> | 2014-07-22 04:42:15 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2014-07-22 04:42:15 +0000 |
commit | d53def22efc4a3d3d30ae05ca2d2f720181ae417 (patch) | |
tree | cdcf206a85d28fc6a149e2267198e3417bb513a4 /clang/test/Misc/diag-template-diffing.cpp | |
parent | 41b20e77833b05157e258a4868fb25a470f70548 (diff) | |
download | bcm5719-llvm-d53def22efc4a3d3d30ae05ca2d2f720181ae417.tar.gz bcm5719-llvm-d53def22efc4a3d3d30ae05ca2d2f720181ae417.zip |
Fix '&' printing for template arguments in parentheses in template diffing.
llvm-svn: 213613
Diffstat (limited to 'clang/test/Misc/diag-template-diffing.cpp')
-rw-r--r-- | clang/test/Misc/diag-template-diffing.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/test/Misc/diag-template-diffing.cpp b/clang/test/Misc/diag-template-diffing.cpp index 391915ee970..fcafb332564 100644 --- a/clang/test/Misc/diag-template-diffing.cpp +++ b/clang/test/Misc/diag-template-diffing.cpp @@ -1120,9 +1120,13 @@ Wrapper<S<ptr>> W = MakeWrapper<S<&global>>(); // Don't print an extra '&' for 'ptr' // CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper<S<&global>>' to 'Wrapper<S<ptr>>' -Wrapper<S<(&global2)>> W2 = MakeWrapper<S<&global>>(); // Handle parens correctly -// CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper<S<&global>>' to 'Wrapper<S<global2>>' +Wrapper<S<(&global2)>> W2 = MakeWrapper<S<&global>>(); +// CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper<S<&global>>' to 'Wrapper<S<&global2>>' +Wrapper<S<&global2>> W3 = MakeWrapper<S<(&global)>>(); +// CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper<S<&global>>' to 'Wrapper<S<&global2>>' +Wrapper<S<(&global2)>> W4 = MakeWrapper<S<(&global)>>(); +// CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper<S<&global>>' to 'Wrapper<S<&global2>>' } // CHECK-ELIDE-NOTREE: {{[0-9]*}} errors generated. |