Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/castError.cfa

    rf8de4e4 rdc8511c  
    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 // castError.cfa -- test invalid casts
    8 //
    9 // Author           : Peter A. Buhr
    10 // Created On       : Tue Feb 19 21:15:39 2019
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Feb 19 21:16:44 2019
    13 // Update Count     : 1
    14 //
    15 
     1//Testing some of the invalid casts of chars
    162int f;
    173
     
    217        (char)f;
    228        (int(*)())f;
    23 
    24         unsigned char v;
    25         short int v;
    26         3, v;           // implicit void cast
    279}
    2810
    29 int main() {}
    30 
    31 // Local Variables: //
    32 // tab-width: 4 //
    33 // compile-command: "cfa castError.cfa" //
    34 // End: //
     11//Dummy main
     12int main(int argc, char const *argv[])
     13{
     14        return 0;
     15}
Note: See TracChangeset for help on using the changeset viewer.