Changeset d60a4c2 for tests/enum_tests


Ignore:
Timestamp:
Jan 11, 2025, 5:48:46 PM (13 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master, stuck-waitfor-destruct
Children:
f886608
Parents:
7d65715f (diff), 32a119e9 (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests/enum_tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tests/enum_tests/inc-dec.cfa

    r7d65715f rd60a4c2  
    44enum() Number { One, Two, Three };
    55
    6 int main(int argc, char * argv[]) {
     6int main() {
    77        Number a = One;
    88
  • tests/enum_tests/planet.cfa

    r7d65715f rd60a4c2  
    2828}
    2929
    30 int main( int argc, char * argv[] ) {
     30int main() {
    3131//      if ( argc != 2 ) exit | "Usage: " | argv[0] | "earth-weight"; // terminate program
    3232//      double earthWeight = convert( argv[1] );
  • tests/enum_tests/structEnum.cfa

    r7d65715f rd60a4c2  
    2626
    2727int main() {
    28      PointEnum vals = second;
    29      PointEnum val2;
     28     PointEnum vals = second;      (void) vals;
     29     PointEnum val2;               (void) val2;
    3030     // The failing line: assignment
    3131     // val2 = vals;
Note: See TracChangeset for help on using the changeset viewer.