Changeset f29d603


Ignore:
Timestamp:
Apr 15, 2019, 5:14:20 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
4e84ef7
Parents:
1dda8de
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/completeTypeError.cfa

    r1dda8de rf29d603  
    55forall(dtype T | sized(T)) void quux(T *);
    66
    7 struct A; // incomplete
    8 struct B {}; // complete
     7struct A;       // incomplete
     8struct B {};    // complete
    99
    1010int main() {
    11         int *i;
    12         void *v;
     11        int * i;
     12        void * v;
    1313
    1414        A * x;
     
    3232        // bad
    3333        *v;
    34         *x; // ambiguous
     34        *x;     // ambiguous
    3535        foo(v);
    3636        baz(v);
     
    5252void qux(T * y) {
    5353        // okay
     54        *y;
    5455        bar(y);
    5556        qux(y);
    56         *y;
    5757
    5858        // bad
Note: See TracChangeset for help on using the changeset viewer.