- Timestamp:
- Feb 19, 2019, 11:26:25 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- b9afb1e
- Parents:
- 2ede686
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/castError.cfa
r2ede686 rf8de4e4 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 2 16 int f; 3 17 … … 7 21 (char)f; 8 22 (int(*)())f; 23 24 unsigned char v; 25 short int v; 26 3, v; // implicit void cast 9 27 } 10 28 11 //Dummy main 12 int main(int argc, char const *argv[]) 13 { 14 return 0; 15 } 29 int 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.