Ignore:
Timestamp:
Jun 5, 2015, 9:34:43 AM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
59db689
Parents:
44b5ca0
Message:

regression testing, second attempt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Tests/ResolvExpr/Members.c

    r44b5ca0 ra65d92e  
    1 // "../../cfa-cpp -nc Members.c"
    2 
    31char ?=?( char*, char );
    42int ?=?( int*, int );
     
    1311void d( float* );
    1412
    15 struct a_struct
    16 {
    17   int a;
    18   char a;
    19   float a;
     13struct a_struct {
     14        int a;
     15        char a;
     16        float a;
    2017};
    2118
    22 union b_struct
    23 {
    24   int *a;
    25   char *a;
    26   float *a;
     19union b_struct {
     20        int *a;
     21        char *a;
     22        float *a;
    2723};
    2824
    29 void f()
    30 {
    31   struct a_struct the_struct;
    32   union b_struct the_struct;
     25void f() {
     26        struct a_struct the_struct;
     27        union b_struct the_struct;
    3328 
    34   a( the_struct.a );
    35   b( the_struct.a );
    36   c( the_struct.a );
    37   d( the_struct.a );
     29        a( the_struct.a );
     30        b( the_struct.a );
     31        c( the_struct.a );
     32        d( the_struct.a );
    3833}
    3934
    40 struct c_struct
    41 {
    42   int;
    43   char;
    44   float;
     35struct c_struct {
     36        int;
     37        char;
     38        float;
    4539};
    4640
    47 union d_struct
    48 {
    49   int*;
    50   char*;
    51   float*;
     41union d_struct {
     42        int*;
     43        char*;
     44        float*;
    5245};
    5346
    54 void g()
    55 {
    56   unsigned short x;
    57   struct c_struct x;
    58   union d_struct x;
     47void g() {
     48        unsigned short x;
     49        struct c_struct x;
     50        union d_struct x;
    5951 
    60   a( x );       // the 'a' and 'b' calls resolve to the ushort
    61   b( x );       // it's debatable whether this is good
    62   c( x );
    63   d( x );
     52        a( x ); // the 'a' and 'b' calls resolve to the ushort
     53        b( x ); // it's debatable whether this is good
     54        c( x );
     55        d( x );
    6456}
    6557
     
    7264struct forward { int y; };
    7365
    74 void h()
    75 {
     66void h() {
    7667        q->y;
    7768}
     69
     70// Local Variables: //
     71// tab-width: 4 //
     72// End: //
Note: See TracChangeset for help on using the changeset viewer.