Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(703)

Unified Diff: tools/clang/translation_unit/test_files/test.cc

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/translation_unit/test_files/test.cc
diff --git a/tools/clang/translation_unit/test_files/test.cc b/tools/clang/translation_unit/test_files/test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e735f55574407d793ed7b80658ea124024c68813
--- /dev/null
+++ b/tools/clang/translation_unit/test_files/test.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2014 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.
+
+#include "test.h"
+
+#include "binomial.h"
+
+// Notice that "binomial.h" is included both here and in the "test.h" file.
+// The tool should however print the path to this header file only once.
+
+int main() {
+ // Just some nonesense calculations.
+ int result = calculateNumberOfWaysToDistributeNItemsAmongKPersons(10, 5);
+ return result + binomial(42, 1);
+}
« no previous file with comments | « tools/clang/translation_unit/test_files/test.h ('k') | tools/clang/translation_unit/test_files/test.cc.filepaths.expected » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698