Index: tools/clang/rewrite_to_chrome_style/tests/template-original.cc |
diff --git a/tools/clang/rewrite_to_chrome_style/tests/template-original.cc b/tools/clang/rewrite_to_chrome_style/tests/template-original.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..39ae4e5efbf726abe3dfc5e29cea2c4a5a138ff8 |
--- /dev/null |
+++ b/tools/clang/rewrite_to_chrome_style/tests/template-original.cc |
@@ -0,0 +1,23 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+namespace blink { |
+ |
+template <typename T, int number> |
+void F() { |
+ // We don't assert on this, and we don't end up considering it a const for |
+ // now. |
+ const int maybe_a_const = sizeof(T); |
+ const int is_a_const = number; |
+} |
+ |
+template <int number, typename... T> |
+void F() { |
+ // We don't assert on this, and we don't end up considering it a const for |
+ // now. |
+ const int maybe_a_const = sizeof...(T); |
+ const int is_a_const = number; |
+} |
+ |
+} // namespace blink |