summaryrefslogtreecommitdiff
path: root/tests/indent/cpp
diff options
context:
space:
mode:
authorJędrzej Boczar <yendreij@gmail.com>2021-04-22 20:53:30 +0200
committerKiyan <yazdani.kiyan@protonmail.com>2021-04-23 21:21:38 +0200
commit63a88c873f3643aad9208488765dc53618edd40e (patch)
treefb233a54b0dae8a6af1a12dfecb9cd85cbdb4f64 /tests/indent/cpp
parentd4e8d3e6597578c14dd846762c57308f36ccacb5 (diff)
move all tests to top-level tests/ directory
Diffstat (limited to 'tests/indent/cpp')
-rw-r--r--tests/indent/cpp/access.cpp6
-rw-r--r--tests/indent/cpp/class.cpp7
-rw-r--r--tests/indent/cpp/stream.cpp7
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/indent/cpp/access.cpp b/tests/indent/cpp/access.cpp
new file mode 100644
index 00000000..abdb846c
--- /dev/null
+++ b/tests/indent/cpp/access.cpp
@@ -0,0 +1,6 @@
+class Foo {
+public:
+ int x;
+private:
+ int y;
+};
diff --git a/tests/indent/cpp/class.cpp b/tests/indent/cpp/class.cpp
new file mode 100644
index 00000000..cd838219
--- /dev/null
+++ b/tests/indent/cpp/class.cpp
@@ -0,0 +1,7 @@
+class Foo {
+ int x;
+ class Bar {
+ int y;
+ };
+ Bar z;
+};
diff --git a/tests/indent/cpp/stream.cpp b/tests/indent/cpp/stream.cpp
new file mode 100644
index 00000000..a619dfa6
--- /dev/null
+++ b/tests/indent/cpp/stream.cpp
@@ -0,0 +1,7 @@
+#include <iostream>
+
+void foo(int x) {
+ std::cout << x
+ << x + 1
+ << x + 2;
+}