OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [990524-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
char a[] = "12345";
2
char b[] = "12345";
3
 
4
void loop (char * pz, char * pzDta)
5
{
6
    for (;;) {
7
        switch (*(pz++) = *(pzDta++)) {
8
        case 0:
9
            goto loopDone2;
10
 
11
        case '"':
12
        case '\\':
13
            pz[-1]  = '\\';
14
            *(pz++) = pzDta[-1];
15
        }
16
    } loopDone2:;
17
 
18
  if (a - pz != b - pzDta)
19
    abort ();
20
}
21
 
22
main()
23
{
24
  loop (a, b);
25
  exit (0);
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.