summaryrefslogtreecommitdiff
path: root/tests/analysis/disass/irreducible.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/analysis/disass/irreducible.c')
-rw-r--r--tests/analysis/disass/irreducible.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/analysis/disass/irreducible.c b/tests/analysis/disass/irreducible.c
new file mode 100644
index 0000000..8edd592
--- /dev/null
+++ b/tests/analysis/disass/irreducible.c
@@ -0,0 +1,37 @@
+
+static void argstr(char *p, int flags)
+{
+ if (flags)
+ {
+ tilde:
+ p++;
+ }
+
+ for (;;)
+ {
+ switch (*p)
+ {
+ case '\0':
+ goto breakloop;
+
+ case ':':
+ if (*--p == '~')
+ goto tilde;
+ continue;
+ }
+
+ }
+
+ breakloop:
+
+ ;
+
+}
+
+int main(int argc, char **argv)
+{
+ argstr(argv[0], 0);
+
+ return 0;
+
+}