summaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'snippets')
-rw-r--r--snippets/for.c2
-rw-r--r--snippets/ifelif.c4
-rw-r--r--snippets/ifelse.c4
-rw-r--r--snippets/switch.c6
4 files changed, 16 insertions, 0 deletions
diff --git a/snippets/for.c b/snippets/for.c
new file mode 100644
index 0000000..4cc9378
--- /dev/null
+++ b/snippets/for.c
@@ -0,0 +1,2 @@
+for( ; ; ) {
+}
diff --git a/snippets/ifelif.c b/snippets/ifelif.c
new file mode 100644
index 0000000..6f37315
--- /dev/null
+++ b/snippets/ifelif.c
@@ -0,0 +1,4 @@
+if (_) {
+} else if (_) {
+} else {
+}
diff --git a/snippets/ifelse.c b/snippets/ifelse.c
new file mode 100644
index 0000000..03f9dda
--- /dev/null
+++ b/snippets/ifelse.c
@@ -0,0 +1,4 @@
+if (_) {
+}
+else {
+}
diff --git a/snippets/switch.c b/snippets/switch.c
new file mode 100644
index 0000000..b0b527a
--- /dev/null
+++ b/snippets/switch.c
@@ -0,0 +1,6 @@
+switch (_) {
+ case (_): {
+ } break;
+ default: {
+ } break;
+}