Ignore:
Timestamp:
Aug 20, 2016, 5:33:07 AM (9 years ago)
Author:
Aaron Moss <bruceiv@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
80722d0
Parents:
7b1bfc5 (diff), 2037f82 (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 plg2.cs.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/gccExtensions.c

    r7b1bfc5 r4a7d895  
    11//
    2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
     
    1010// Created On       : Sun Aug 14 17:28:17 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Aug 15 12:44:35 2016
    13 // Update Count     : 5
     12// Last Modified On : Wed Aug 17 09:26:50 2016
     13// Update Count     : 10
    1414//
    1515
     
    1717
    1818int main(int argc, char const *argv[]) {
     19        // asm extensions
     20
    1921        asm( "nop" );
    2022        __asm( "nop" );
     
    2224
    2325        static int y asm( "yy" );
    24 //      static * int z asm( "zz" );                                                     // CFA declaration
     26#ifdef __CFA__
     27        static * int z asm( "zz" );                                                     // CFA declaration
     28#endif // __CFA__
    2529
    2630        int src;
     
    5256                           : L1, L2 );
    5357
     58        // alternative type/qualifer names
     59
    5460        __complex__ c1;
    5561        _Complex c2;
     
    5864        __const int i2;
    5965        __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
    6082
    6183        __extension__ const int ex;
     
    6991        __extension__ a = __extension__ ( __extension__ b + __extension__ c );
    7092
    71         __inline int f1() {}
    72         __inline__ int f2() {}
    73 
    74         __signed s1;
    75         __signed s2;
    76 
    77         __typeof(s1) t1;
    78         __typeof__(s1) t2;
    79 
    80         __volatile int v1;
    81         __volatile__ int v2;
     93        // attributes
    8294
    8395        __attribute__(()) int a1;
Note: See TracChangeset for help on using the changeset viewer.