- Timestamp:
- Apr 28, 2021, 1:06:13 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b7fd2db6
- Parents:
- e9c0b4c (diff), c7015e6b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests
- Files:
-
- 2 edited
-
io/io-acquire.cfa (modified) (2 diffs)
-
strstream.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/io/io-acquire.cfa
re9c0b4c radaee12 10 10 // Created On : Mon Mar 1 18:40:09 2021 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 2 12:06:35202113 // Update Count : 1 712 // Last Modified On : Tue Apr 27 11:49:34 2021 13 // Update Count : 18 14 14 // 15 15 … … 43 43 int a, b, c, d, e, f, g, h, i; 44 44 for ( 100 ) { // local protection 45 sin | acquire | a | b | c | d | e | f | g | h | i;45 sin | acquire | a | b | c | d | e | f | g | h | i; 46 46 } 47 47 { // global protection (RAII) -
tests/strstream.cfa
re9c0b4c radaee12 5 5 enum { size = 256 }; 6 6 char buf[size]; 7 strstreamsstr = { buf, size };7 ostrstream osstr = { buf, size }; 8 8 int i = 3, j = 5, k = 7; 9 9 double x = 12345678.9, y = 98765.4321e-11; 10 10 11 sstr | i | hex(j) | wd(10, k) | sci(x) | unit(eng(y));12 write( sstr );11 osstr | i | hex(j) | wd(10, k) | sci(x) | unit(eng(y)); 12 write( osstr ); 13 13 printf( "%s", buf ); 14 14 sout | i | hex(j) | wd(10, k) | sci(x) | unit(eng(y)); 15 16 // char buf2[] = "12 14 15 3.5 7e4"; 17 // istrstream isstr = { buf2 }; 18 // isstr | i | j | k | x | y; 19 // sout | i | j | k | x | y; 15 20 }
Note:
See TracChangeset
for help on using the changeset viewer.