| 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);
|
| +}
|
|
|