Changeset 0f35657


Ignore:
Timestamp:
Nov 28, 2016, 3:16:45 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
f7e749f
Parents:
2c57025
Message:

updated completeTypeError test case

Location:
src/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/completeTypeError.txt

    r2c57025 r0f35657  
    11CFA Version 1.0.0 (debug)
     2Error: No reasonable alternatives for expression Applying untyped:
     3  Name: *?
     4...to:
     5  Name: v
     6
     7
    28Error: No reasonable alternatives for expression Applying untyped:
    39  Name: baz
     
    2531
    2632Error: No reasonable alternatives for expression Applying untyped:
     33  Name: *?
     34...to:
     35  Name: y
     36
     37
     38Error: No reasonable alternatives for expression Applying untyped:
    2739  Name: baz
    2840...to:
  • src/tests/completeTypeError.c

    r2c57025 r0f35657  
    1010
    1111        // okay
     12        *i;
    1213        foo(i);
    1314        bar(i);
     
    2122
    2223        // bad
     24        *v;
    2325        baz(v);
    2426        quux(v);
     
    3234        qux(x);
    3335        quux(x);
     36        *x;
    3437}
    3538
     
    4346        baz(y);
    4447        quux(y);
     48        *y;
    4549}
    4650
     
    5155        qux(z);
    5256        quux(z);
     57        *z;
    5358
    5459        // bad
  • src/tests/shortCircuit.c

    r2c57025 r0f35657  
    1111
    1212void g() {
    13     int a;
    14     struct { int b; } a;
    15     if ( a ) {
     13        int a;
     14        struct { int b; } a;
     15        if ( a ) {
    1616                while ( a ) {
    1717                        int *b;
     
    1919                        }
    2020                }
    21     }
     21        }
    2222}
    2323
Note: See TracChangeset for help on using the changeset viewer.