Changeset 6943a987 for src/tests


Ignore:
Timestamp:
Aug 29, 2016, 10:33:05 AM (10 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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:
5e644d3e
Parents:
79841be (diff), 413ad05 (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:
src/tests
Files:
4 added
3 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/32/extension.txt

    r79841be r6943a987  
    7070static inline void ___destructor__F_P2uU_autogen___1(union U *___dst__P2uU_1){
    7171}
     72static inline void ___constructor__F_P2uUi_autogen___1(union U *___dst__P2uU_1, int __src__i_1){
     73    void *_tmp_cp_ret2;
     74    ((void)((_tmp_cp_ret2=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))) , _tmp_cp_ret2));
     75    ((void)(_tmp_cp_ret2) /* ^?{} */);
     76}
    7277__extension__ enum E {
    7378    __R__C2eE_1,
     
    8994    __extension__ int __c__i_2;
    9095    ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2)));
    91     int _tmp_cp_ret2;
    92     ((void)((_tmp_cp_ret2=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret2));
    93     ((void)(_tmp_cp_ret2) /* ^?{} */);
     96    int _tmp_cp_ret3;
     97    ((void)((_tmp_cp_ret3=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret3));
     98    ((void)(_tmp_cp_ret3) /* ^?{} */);
    9499    ((void)__extension__ sizeof(3));
    95100    ((void)__extension__ (((int )(3!=0)) || ((int )(4!=0))));
  • src/tests/.expect/32/gccExtensions.txt

    r79841be r6943a987  
    55extern void exit(int __status);
    66extern int printf(const char *__restrict __format, ...);
     7extern int __x__i_1;
    78int main(int __argc__i_1, const char **__argv__PPCc_1){
    89    asm ( "nop" :  :  :  );
    910    asm ( "nop" :  :  :  );
    1011    asm ( "nop" :  :  :  );
     12    static int __y__i_2;
     13    static int *__z__Pi_2;
     14    int __src__i_2;
     15    int __dst__i_2;
     16    asm volatile ( "mov %1, %0\n\tadd $1, %0" :  :  :  );
     17    asm volatile ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ) :  :  );
     18    asm volatile ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ) : "r" ( __src__i_2 ) :  );
     19    asm ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ), "=r" ( __src__i_2 ) : [ __src__i_2 ] "r" ( __dst__i_2 ) : "r0" );
     20    L2: L1: asm goto ( "frob %%r5, %1; jc %l[L1]; mov (%2), %%r5" :  : "r" ( __src__i_2 ), "r" ( (&__dst__i_2) ) : "r5", "memory" : L1, L2 );
    1121    double _Complex __c1__Xd_2;
    1222    double _Complex __c2__Xd_2;
     
    1424    const int __i2__Ci_2;
    1525    const int __i3__Ci_2;
     26    inline int __f1__Fi___2(){
     27    }
     28    inline int __f2__Fi___2(){
     29    }
     30    int __s1__i_2;
     31    int __s2__i_2;
     32    volatile int __v1__Vi_2;
     33    volatile int __v2__Vi_2;
     34    int __t1___2;
     35    int __t2___2;
    1636    __extension__ const int __ex__Ci_2;
    1737    struct S {
     
    6484    ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2)));
    6585    ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2)));
    66     inline int __f1__Fi___2(){
    67     }
    68     inline int __f2__Fi___2(){
    69     }
    70     int __s1__i_2;
    71     int __s2__i_2;
    72     int __t1___2;
    73     int __t2___2;
    74     volatile int __v1__Vi_2;
    75     volatile int __v2__Vi_2;
    7686    int __a1__i_2;
    7787    const int __a2__Ci_2;
  • src/tests/.expect/64/extension.txt

    r79841be r6943a987  
    7070static inline void ___destructor__F_P2uU_autogen___1(union U *___dst__P2uU_1){
    7171}
     72static inline void ___constructor__F_P2uUi_autogen___1(union U *___dst__P2uU_1, int __src__i_1){
     73    void *_tmp_cp_ret2;
     74    ((void)((_tmp_cp_ret2=__builtin_memcpy(((void *)___dst__P2uU_1), ((const void *)(&__src__i_1)), sizeof(int ))) , _tmp_cp_ret2));
     75    ((void)(_tmp_cp_ret2) /* ^?{} */);
     76}
    7277__extension__ enum E {
    7378    __R__C2eE_1,
     
    8994    __extension__ int __c__i_2;
    9095    ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2)));
    91     int _tmp_cp_ret2;
    92     ((void)((_tmp_cp_ret2=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret2));
    93     ((void)(_tmp_cp_ret2) /* ^?{} */);
     96    int _tmp_cp_ret3;
     97    ((void)((_tmp_cp_ret3=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret3));
     98    ((void)(_tmp_cp_ret3) /* ^?{} */);
    9499    ((void)__extension__ sizeof(3));
    95100    ((void)__extension__ (((int )(3!=0)) || ((int )(4!=0))));
  • src/tests/.expect/64/gccExtensions.txt

    r79841be r6943a987  
    55extern void exit(int __status);
    66extern int printf(const char *__restrict __format, ...);
     7extern int __x__i_1;
    78int main(int __argc__i_1, const char **__argv__PPCc_1){
    89    asm ( "nop" :  :  :  );
    910    asm ( "nop" :  :  :  );
    1011    asm ( "nop" :  :  :  );
     12    static int __y__i_2;
     13    static int *__z__Pi_2;
     14    int __src__i_2;
     15    int __dst__i_2;
     16    asm volatile ( "mov %1, %0\n\tadd $1, %0" :  :  :  );
     17    asm volatile ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ) :  :  );
     18    asm volatile ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ) : "r" ( __src__i_2 ) :  );
     19    asm ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ), "=r" ( __src__i_2 ) : [ __src__i_2 ] "r" ( __dst__i_2 ) : "r0" );
     20    L2: L1: asm goto ( "frob %%r5, %1; jc %l[L1]; mov (%2), %%r5" :  : "r" ( __src__i_2 ), "r" ( (&__dst__i_2) ) : "r5", "memory" : L1, L2 );
    1121    double _Complex __c1__Xd_2;
    1222    double _Complex __c2__Xd_2;
     
    1424    const int __i2__Ci_2;
    1525    const int __i3__Ci_2;
     26    inline int __f1__Fi___2(){
     27    }
     28    inline int __f2__Fi___2(){
     29    }
     30    int __s1__i_2;
     31    int __s2__i_2;
     32    volatile int __v1__Vi_2;
     33    volatile int __v2__Vi_2;
     34    int __t1___2;
     35    int __t2___2;
    1636    __extension__ const int __ex__Ci_2;
    1737    struct S {
     
    6484    ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2)));
    6585    ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2)));
    66     inline int __f1__Fi___2(){
    67     }
    68     inline int __f2__Fi___2(){
    69     }
    70     int __s1__i_2;
    71     int __s2__i_2;
    72     int __t1___2;
    73     int __t2___2;
    74     volatile int __v1__Vi_2;
    75     volatile int __v2__Vi_2;
    7686    int __a1__i_2;
    7787    const int __a2__Ci_2;
  • src/tests/.expect/declarationErrors.txt

    r79841be r6943a987  
    11CFA Version 1.0.0 (debug)
    2 Error: invalid combination of storage classes in declaration of x9: static static volatile const short int
     2Error: invalid combination of storage classes in declaration of x9: static const volatile short int
    33
    4 Error: invalid combination of storage classes in declaration of x18: static static const volatile instance of struct __anonymous0
     4Error: invalid combination of storage classes in declaration of x18: static const volatile instance of const volatile struct __anonymous0
    55  with members
    6     i: int
    76   with body
    87
    98
    10 Error: invalid combination of storage classes in declaration of x19: static static const volatile volatile instance of struct __anonymous1
     9Error: duplicate qualifier volatile in declaration of x19: static const volatile instance of const volatile struct __anonymous1
    1110  with members
    12     i: int
    1311   with body
    1412
    1513
    16 Error: invalid combination of storage classes in declaration of x28: static static volatile const instance of type Int
     14Error: invalid combination of storage classes in declaration of x28: static const volatile instance of type Int
     15
     16Error: duplicate qualifier const in declaration of f01: static inline function
     17  with no parameters
     18  returning const volatile int
     19
     20
     21Error: duplicate qualifier volatile in declaration of f02: static inline function
     22  with no parameters
     23  returning const volatile int
     24
     25
     26Error: duplicate qualifier const in declaration of f03: static inline function
     27  with no parameters
     28  returning const volatile int
     29
     30
     31Error: duplicate qualifier volatile in declaration of f04: static inline function
     32  with no parameters
     33  returning const volatile int
     34
     35
     36Error: duplicate qualifier const in declaration of f05: static inline function
     37  with no parameters
     38  returning const volatile int
     39
     40
     41Error: duplicate qualifier volatile in declaration of f06: static inline function
     42  with no parameters
     43  returning const volatile int
     44
     45
     46Error: duplicate qualifier const in declaration of f07: static inline function
     47  with no parameters
     48  returning const volatile int
     49
     50
     51Error: duplicate qualifier const, volatile in declaration of f08: static inline function
     52  with no parameters
     53  returning const volatile int
     54
     55
     56Error: duplicate qualifier const, volatile in declaration of f09: static inline function
     57  with no parameters
     58  returning const volatile int
     59
     60
     61Error: duplicate qualifier const, volatile in declaration of f09: static inline function
     62  with no parameters
     63  returning const volatile int
     64
    1765
    1866make: *** [declarationErrors] Error 1
  • src/tests/Makefile.am

    r79841be r6943a987  
    1111## Created On       : Sun May 31 09:08:15 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Tue Aug  9 15:34:57 2016
    14 ## Update Count     : 38
     13## Last Modified On : Mon Aug 15 12:24:54 2016
     14## Update Count     : 39
    1515###############################################################################
    1616
     
    2727
    2828all-local :
    29         @+python test.py vector_test avl_test operators numericConstants expression enum asmName array typeof cast dtor-early-exit init_once
     29        @+python test.py vector_test avl_test operators numericConstants expression enum array typeof cast dtor-early-exit init_once
    3030
    3131all-tests :
     
    5353        ${CC} ${CFLAGS} -DERR2 ${<} -o ${@}
    5454
     55declarationSpecifier: declarationSpecifier.c
     56        ${CC} ${CFALGS} -CFA -XCFA -p ${<} -o ${@}
     57
    5558gccExtensions : gccExtensions.c
    5659        ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     
    5962        ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
    6063
     64ctorWarnings: ctorWarnings.c
     65        ${CC} ${CFALGS} -CFA -XCFA -p ${<} -o /dev/null 2> ${@}
     66
  • src/tests/Makefile.in

    r79841be r6943a987  
    635635
    636636all-local :
    637         @+python test.py vector_test avl_test operators numericConstants expression enum asmName array typeof cast dtor-early-exit init_once
     637        @+python test.py vector_test avl_test operators numericConstants expression enum array typeof cast dtor-early-exit init_once
    638638
    639639all-tests :
     
    661661        ${CC} ${CFLAGS} -DERR2 ${<} -o ${@}
    662662
     663declarationSpecifier: declarationSpecifier.c
     664        ${CC} ${CFALGS} -CFA -XCFA -p ${<} -o ${@}
     665
    663666gccExtensions : gccExtensions.c
    664667        ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     
    666669extension : extension.c
    667670        ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     671
     672ctorWarnings: ctorWarnings.c
     673        ${CC} ${CFALGS} -CFA -XCFA -p ${<} -o /dev/null 2> ${@}
    668674
    669675# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • src/tests/declarationErrors.c

    r79841be r6943a987  
    1 static short int volatile static const x9;              // duplicate static
    2 struct { int i; } const static volatile static x18;     // duplicate static
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// declarationErrors.c --
     8//
     9// Author           : Peter A. Buhr
     10// Created On       : Wed Aug 17 08:23:43 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Aug 25 18:16:40 2016
     13// Update Count     : 5
     14//
     15
     16static short int volatile static const x9;                              // duplicate static
     17struct { int i; } const static volatile static x18;             // duplicate static
    318struct { int i; } const static volatile static volatile x19; // duplicate static & volatile
    419typedef int Int;
    5 static Int volatile static const x28;                   // duplicate static
     20static Int volatile static const x28;                                   // duplicate static
     21
     22const static inline const volatile int f01();                   // duplicate const
     23volatile inline const volatile static int f02();                // duplicate volatile
     24const inline const volatile int static f03();                   // duplicate const
     25volatile inline static const volatile int f04();                // duplicate volatile
     26const static const inline volatile int f05();                   // duplicate const
     27volatile static const volatile inline int f06();                // duplicate volatile
     28const static const volatile int inline f07();                   // duplicate const
     29volatile static const int inline const volatile f08();          // duplicate volatile
     30
     31volatile static const int inline const volatile f09();          // duplicate volatile
     32volatile static const int inline const volatile f09();          // duplicate volatile
    633
    734//Dummy main
     
    1037        return 0;
    1138}
     39
     40// Local Variables: //
     41// tab-width: 4 //
     42// compile-command: "cfa declarationErrors.c" //
     43// End: //
  • src/tests/declarationSpecifier.c

    r79841be r6943a987  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// declarationSpecifier.c --
     8//
     9// Author           : Peter A. Buhr
     10// Created On       : Wed Aug 17 08:21:04 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Aug 17 08:24:33 2016
     13// Update Count     : 2
     14//
     15
    116typedef short int Int;
    2 
    317
    418const short int volatile x1;
    519static const short int volatile x2;
    620const static short int volatile x3;
    7 const short static int volatile x4;
    821const static volatile short int x4;
    922const short int static volatile x5;
     
    1124const short volatile int static x7;
    1225short int volatile static const x8;
    13 static short int volatile static const x9;              // duplicate static
    1426
    1527const volatile struct { int i; } x10;
     
    2133struct { int i; } const static volatile x16;
    2234struct { int i; } const volatile static x17;
    23 struct { int i; } const static volatile static x18;     // duplicate static
    24 struct { int i; } const static volatile static volatile x19; // duplicate static & volatile
    2535
    2636const Int volatile x20;
     
    3242const volatile Int static x26;
    3343Int volatile static const x27;
    34 static Int volatile static const x28;                   // duplicate static
    3544
    3645const volatile struct { Int i; } x29;
     
    4251struct { Int i; } const static volatile x35;
    4352struct { Int i; } const volatile static x36;
    44 
    45 
    46 const static inline const volatile int f01();           // duplicate const
    47 volatile inline const volatile static int f02();        // duplicate volatile
    48 const inline const volatile int static f03();           // duplicate const
    49 volatile inline static const volatile int f04();        // duplicate volatile
    50 const static const inline volatile int f05();           // duplicate const
    51 volatile static const volatile inline int f06();        // duplicate volatile
    52 const static const volatile int inline f07();           // duplicate const
    53 volatile static const int inline volatile f08();        // duplicate volatile
    5453
    5554static inline const volatile int f11();
     
    9493        return 0;
    9594}
     95
     96// Local Variables: //
     97// tab-width: 4 //
     98// compile-command: "cfa declarationSpecifier.c" //
     99// End: //
  • src/tests/dtor-early-exit.c

    r79841be r6943a987  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// dtor-early-exit.c --
     8//
     9// Author           : Rob Schluntz
     10// Created On       : Wed Aug 17 08:26:25 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Aug 17 08:29:37 2016
     13// Update Count     : 2
     14//
     15
    116#include <fstream>
    217#include <stdlib>
     
    215230        h();
    216231}
     232
     233// Local Variables: //
     234// tab-width: 4 //
     235// compile-command: "cfa dtor-early-exit" //
     236// End: //
  • src/tests/exception.c

    r79841be r6943a987  
    1111        x/4;
    1212    } catch( int ) {
    13     } catch( int x ) {
     13    } catch( float x ) {
    1414    } catch( struct { int i; } ) {
    1515    } catch( struct { int i; } x ) {
     
    2121    } catch( * struct { int i; } x ) {
    2222    } catch( ... ) {
    23 //    } finally {
     23    } finally {
    2424    } // try
    2525}
  • src/tests/functions.c

    r79841be r6943a987  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// functions.c --
     8//
     9// Author           : Peter A. Buhr
     10// Created On       : Wed Aug 17 08:39:58 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Aug 17 08:40:52 2016
     13// Update Count     : 1
     14//
     15
    116// ANSI function definitions
    217
     
    165180// Local Variables: //
    166181// tab-width: 4 //
     182// compile-command: "cfa functions.c" //
    167183// End: //
  • src/tests/gccExtensions.c

    r79841be r6943a987  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// gccExtensions.c --
     8//
     9// Author           : Peter A. Buhr
     10// Created On       : Sun Aug 14 17:28:17 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Aug 17 09:26:50 2016
     13// Update Count     : 10
     14//
     15
     16extern int x asm( "xx" );
     17
    118int main(int argc, char const *argv[]) {
     19        // asm extensions
     20
    221        asm( "nop" );
    322        __asm( "nop" );
    423        __asm__( "nop" );
     24
     25        static int y asm( "yy" );
     26#ifdef __CFA__
     27        static * int z asm( "zz" );                                                     // CFA declaration
     28#endif // __CFA__
     29
     30        int src;
     31        int dst;
     32
     33        asm volatile ( "mov %1, %0\n\t"
     34                                   "add $1, %0" : : : );
     35
     36        asm volatile ( "mov %1, %0\n\t"
     37                                   "add $1, %0"
     38                                   : "=" "r" (dst));
     39
     40        asm volatile ( "mov %1, %0\n\t"
     41                                   "add $1, %0"
     42                                   : "=r" (dst)
     43                                   : "r" (src));
     44
     45        asm ( "mov %1, %0\n\t"
     46                  "add $1, %0"
     47                  : "=r" (dst), "=r" (src)
     48                  : [src] "r" (dst)
     49                  : "r0");
     50
     51  L1: L2:
     52        asm goto ( "frob %%r5, %1; jc %l[L1]; mov (%2), %%r5"
     53                           : /* No outputs. */
     54                           : "r"(src), "r"(&dst)
     55                           : "r5", "memory"
     56                           : L1, L2 );
     57
     58        // alternative type/qualifer names
    559
    660        __complex__ c1;
     
    1064        __const int i2;
    1165        __const__ int i3;
     66
     67        __inline int f1() {}
     68        __inline__ int f2() {}
     69
     70        __signed s1;
     71        __signed s2;
     72
     73        __volatile int v1;
     74        __volatile__ int v2;
     75
     76        // symbol table attributes
     77
     78        __typeof(s1) t1;
     79        __typeof__(s1) t2;
     80
     81        // strange extension qualifier
    1282
    1383        __extension__ const int ex;
     
    2191        __extension__ a = __extension__ ( __extension__ b + __extension__ c );
    2292
    23         __inline int f1() {}
    24         __inline__ int f2() {}
    25 
    26         __signed s1;
    27         __signed s2;
    28 
    29         __typeof(s1) t1;
    30         __typeof__(s1) t2;
    31 
    32         __volatile int v1;
    33         __volatile__ int v2;
     93        // attributes
    3494
    3595        __attribute__(()) int a1;
     
    57117        return 0;
    58118}
     119
     120// Local Variables: //
     121// tab-width: 4 //
     122// compile-command: "cfa gccExtensions.c" //
     123// End: //
  • src/tests/identFuncDeclarator.c

    r79841be r6943a987  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// identFuncDeclarator.c --
     8//
     9// Author           : Peter A. Buhr
     10// Created On       : Wed Aug 17 08:36:34 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Aug 17 08:37:06 2016
     13// Update Count     : 1
     14//
     15
    116int main() {
    217        int f1;
     
    97112        int (* const(* const f81)(int))();
    98113}
     114
     115// Local Variables: //
     116// tab-width: 4 //
     117// compile-command: "cfa identFuncDeclarator.c" //
     118// End: //
  • src/tests/identParamDeclarator.c

    r79841be r6943a987  
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// identParamDeclarator.c --
     8//
     9// Author           : Peter A. Buhr
     10// Created On       : Wed Aug 17 08:37:56 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Aug 17 08:38:42 2016
     13// Update Count     : 1
     14//
     15
    116int fred(
    217        int f1,
     
    147162        return 0;
    148163}
     164
     165// Local Variables: //
     166// tab-width: 4 //
     167// compile-command: "cfa identParamDeclarator.c" //
     168// End: //
  • src/tests/test.py

    r79841be r6943a987  
    9999                return False
    100100
    101 # find the test data for a given test name
    102 def filterTests(testname) :
    103         found = [test for test in allTests if test.name == testname]
    104         return (found[0] if len(found) == 1 else Test(testname, testname) )
    105 
    106101################################################################################
    107102#               running test functions
     
    141136                if not dry_run and fileContainsOnly(out_file, "make: *** No rule to make target `%s'.  Stop." % test.name) :
    142137                        retcode = 1;
    143                         error = "\t\tNo make target for test %s!" % test
     138                        error = "\t\tNo make target for test %s!" % test.name
    144139                        sh("rm %s" % out_file, False)
    145140
     
    252247        # already existing tests and create new info for the new tests
    253248        if options.regenerate_expected :
    254                 tests = map(filterTests, options.tests)
     249                for testname in options.tests :
     250                        if testname.endswith(".c") or testname.endswith(".cc") or testname.endswith(".cpp") :
     251                                print('ERROR: "%s", tests are not allowed to end with a C/C++/CFA extension, ignoring it' % testname, file=sys.stderr)
     252                        else :
     253                                found = [test for test in allTests if test.name == testname]
     254                                tests.append( found[0] if len(found) == 1 else Test(testname, testname) )
    255255
    256256        else :
  • src/tests/variableDeclarator.c

    r79841be r6943a987  
    1 //Variable declarations test
     1//
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     3//
     4// The contents of this file are covered under the licence agreement in the
     5// file "LICENCE" distributed with Cforall.
     6//
     7// variableDeclarator.c --
     8//
     9// Author           : Peter A. Buhr
     10// Created On       : Wed Aug 17 08:41:42 2016
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Aug 17 08:42:21 2016
     13// Update Count     : 1
     14//
     15
     16// Variable declarations test
    217int f1;
    318int (f2);
     
    164179        return 0;
    165180}
     181
     182// Local Variables: //
     183// tab-width: 4 //
     184// compile-command: "cfa variableDeclarator.c" //
     185// End: //
Note: See TracChangeset for help on using the changeset viewer.