diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/template-function/main.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/template-function/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/template-function/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/template-function/main.cpp new file mode 100644 index 00000000000..035e6450cd3 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/template-function/main.cpp @@ -0,0 +1,16 @@ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +template<typename T> +int foo(T t1) { + return int(t1); +} + +int main() { + return foo(42); +} |