summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/Inputs/ctu-chain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/Inputs/ctu-chain.cpp')
-rw-r--r--clang/test/Analysis/Inputs/ctu-chain.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Analysis/Inputs/ctu-chain.cpp b/clang/test/Analysis/Inputs/ctu-chain.cpp
new file mode 100644
index 00000000000..2314dde1df0
--- /dev/null
+++ b/clang/test/Analysis/Inputs/ctu-chain.cpp
@@ -0,0 +1,20 @@
+int h_chain(int x) {
+ return x * 2;
+}
+
+namespace chns {
+int chf3(int x);
+
+int chf2(int x) {
+ return chf3(x);
+}
+
+class chcls {
+public:
+ int chf4(int x);
+};
+
+int chcls::chf4(int x) {
+ return x * 3;
+}
+}
OpenPOWER on IntegriCloud