Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20111108105801

Diff

Diff from 1.3 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-tests/regress/c99/init010.c

Annotated File View

faceless
1.2
1 /* correct c99 6.5.2.5 */
faceless
1.1
2
plunky
1.3
3 char *strcpy(char *, const char *);
4
faceless
1.1
5 int main(int *argcchar **argv)
6 {
7         char *a = "abcd"
8         char *b = (char []) {"abcd"};
plunky
1.3
9         const char *c = (const char []){"abcd"}; 
10         (const char []){"abcd"} == "abcd";      // example 6
11         (char []){"abcd"}[3] = 'x';             // compound literal as lvalue
faceless
1.1
12         strcpy(b,"dcba"); 
13
14         return 0
15 }
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-21 10:17 +0100