[clang-tools-extra] r272027 - Fixing a build bot issue with duplicate explicit instantiations.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 7 10:32:07 PDT 2016
Author: aaronballman
Date: Tue Jun 7 12:32:07 2016
New Revision: 272027
URL: http://llvm.org/viewvc/llvm-project?rev=272027&view=rev
Log:
Fixing a build bot issue with duplicate explicit instantiations.
Modified:
clang-tools-extra/trunk/test/clang-tidy/misc-misplaced-const.cpp
Modified: clang-tools-extra/trunk/test/clang-tidy/misc-misplaced-const.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/misc-misplaced-const.cpp?rev=272027&r1=272026&r2=272027&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/misc-misplaced-const.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/misc-misplaced-const.cpp Tue Jun 7 12:32:07 2016
@@ -26,7 +26,14 @@ struct S {
template struct S<int>;
template struct S<ip>; // ok
template struct S<cip>;
-template struct S<int *>; // ok
+
+template <typename Ty>
+struct U {
+ const Ty *i;
+ const Ty &i2;
+};
+
+template struct U<int *>; // ok
struct T {
typedef void (T::*PMF)();
More information about the cfe-commits
mailing list