diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20050119-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20050119-1.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20050119-1.c b/gcc/testsuite/gcc.c-torture/compile/20050119-1.c new file mode 100644 index 000000000..4f14ea434 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20050119-1.c @@ -0,0 +1,25 @@ +void write_char(char); +int len(char*); +void f(char *a) +{ + int col = 0; + int i; + void wchar(char c) + { + if (c == '\t') + { + do { + wchar(' '); + } while ((col%8)!=0); + } + else + { + write_char (c); + col++; + } + } + for(i =0;i<len(a);i++) + { + wchar(*a); + } +} |