- Timestamp:
- Feb 24, 2017, 4:01:59 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, stuck-waitfor-destruct, with_gc
- Children:
- 31868da
- Parents:
- 131dbb3 (diff), 23c4aa8 (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:
- src/tests
- Files:
-
- 4 added
- 3 edited
-
.expect/abs.txt (modified) (1 diff)
-
.expect/globals.txt (added)
-
.expect/monitor.txt (added)
-
abs.c (modified) (2 diffs)
-
globals.c (added)
-
monitor.c (added)
-
simpleGenericTriple.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/abs.txt
r131dbb3 r356c62a 1 char ¿ abs A1 char -65 abs 65 2 2 signed int -65 abs 65 3 3 signed long int -65 abs 65 -
src/tests/abs.c
r131dbb3 r356c62a 10 10 // Created On : Thu Jan 28 18:26:16 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 2 15:07:26 201613 // Update Count : 5 112 // Last Modified On : Wed Feb 22 22:31:03 2017 13 // Update Count : 52 14 14 // 15 15 … … 18 18 19 19 int main( void ) { 20 char ch = -65;20 signed char ch = -65; 21 21 sout | "char\t\t\t" | ch | "\tabs " | abs( ch ) | endl; 22 22 sout | "signed int\t\t" | -65 | "\tabs" | abs( -65 ) | endl; -
src/tests/simpleGenericTriple.c
r131dbb3 r356c62a 28 28 int x1 = 123, x3 = 456; 29 29 double x2 = 999.123; 30 struct T3(int) Li = { x1, x2, x3 };30 struct T3(int) Li = { x1, (int)x2, x3 }; 31 31 struct T3(int) Ri = { 9, 2, 3 }; 32 32 struct T3(int) reti = Li+Ri;
Note:
See TracChangeset
for help on using the changeset viewer.