Changes in tests/castError.cfa [f8de4e4:dc8511c]
- File:
-
- 1 edited
-
tests/castError.cfa (modified) (2 diffs)
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 16 2 int f; 17 3 … … 21 7 (char)f; 22 8 (int(*)())f; 23 24 unsigned char v;25 short int v;26 3, v; // implicit void cast27 9 } 28 10 29 int main() {} 30 31 // Local Variables: // 32 // tab-width: 4 // 33 // compile-command: "cfa castError.cfa" // 34 // End: // 11 //Dummy main 12 int main(int argc, char const *argv[]) 13 { 14 return 0; 15 }
Note:
See TracChangeset
for help on using the changeset viewer.