combo error
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 29 Jul 2008 14:37:00 +0000 (14:37 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 29 Jul 2008 14:37:00 +0000 (14:37 +0000)
[r20762]

ir/be/test/fehler118.c [new file with mode: 0644]

diff --git a/ir/be/test/fehler118.c b/ir/be/test/fehler118.c
new file mode 100644 (file)
index 0000000..27d7819
--- /dev/null
@@ -0,0 +1,22 @@
+#include <stdlib.h>
+
+char *test(char *name) {
+       char *p, *trunc = NULL;
+       int plen;
+       int min_part = 3;
+       do {
+               p = strrchr(name, '.');
+               p = p ? p+1 : name;
+               while (*p) {
+                       plen = strcspn(p, '.');
+                       p += plen;
+                       if (plen > min_part) trunc = p-1;
+                       if (*p) p++;
+               }
+       } while (trunc == NULL && --min_part != 0);
+       return p;
+}
+
+int main() {
+       return 0;
+}