summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-move/Inputs/function_test.h
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2016-11-16 13:05:19 +0000
committerHaojian Wu <hokein@google.com>2016-11-16 13:05:19 +0000
commit4543feceb397a562feca7ed61b14731add849c82 (patch)
tree8801c650f054d0acce259fdba1927d738f920808 /clang-tools-extra/test/clang-move/Inputs/function_test.h
parentf9889f22a91bc5e8a1e8ab989645e341e78a40de (diff)
downloadbcm5719-llvm-4543feceb397a562feca7ed61b14731add849c82.tar.gz
bcm5719-llvm-4543feceb397a562feca7ed61b14731add849c82.zip
[clang-move] Support moving function.
Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26665 llvm-svn: 287101
Diffstat (limited to 'clang-tools-extra/test/clang-move/Inputs/function_test.h')
-rw-r--r--clang-tools-extra/test/clang-move/Inputs/function_test.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-move/Inputs/function_test.h b/clang-tools-extra/test/clang-move/Inputs/function_test.h
new file mode 100644
index 00000000000..810f803b6e8
--- /dev/null
+++ b/clang-tools-extra/test/clang-move/Inputs/function_test.h
@@ -0,0 +1,14 @@
+void f();
+
+inline int g() { return 0; }
+
+template<typename T>
+void h(T t) {}
+
+template<>
+void h(int t) {}
+
+class A {
+ public:
+ void f();
+};
OpenPOWER on IntegriCloud