Ignore:
Timestamp:
May 24, 2019, 10:19:41 AM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d908563
Parents:
6a9d4b4 (diff), 292642a (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' into cleanup-dtors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/castError.cfa

    r6a9d4b4 r933f32f  
    1 //Testing some of the invalid casts of chars
     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
    216int f;
    317
     
    721        (char)f;
    822        (int(*)())f;
     23
     24        unsigned char v;
     25        short int v;
     26        3, v;           // implicit void cast
    927}
    1028
    11 //Dummy main
    12 int main(int argc, char const *argv[])
    13 {
    14         return 0;
    15 }
     29int main() {}
     30
     31// Local Variables: //
     32// tab-width: 4 //
     33// compile-command: "cfa castError.cfa" //
     34// End: //
Note: See TracChangeset for help on using the changeset viewer.