source:
tests/cast.cfa
@
5bc81e9
Last change on this file since 5bc81e9 was 53692b3, checked in by , 3 years ago | |
---|---|
|
|
File size: 325 bytes |
Rev | Line | |
---|---|---|
[62edde5] | 1 | //Testing some valid casts of chars |
2 | char f; | |
3 | ||
4 | void f() { | |
5 | char f; | |
6 | double f; | |
7 | (int)f; | |
8 | short f; | |
9 | (int)f; | |
10 | (void(*)())f; | |
[a0dcd2e] | 11 | // ([long, long double, *[]()])([f, f, f]); |
[62edde5] | 12 | } |
13 | ||
14 | //Dummy main | |
[66812dd] | 15 | int main( int argc, char const * argv[] ) { |
[53692b3] | 16 | #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! |
[62edde5] | 17 | } |
Note: See TracBrowser
for help on using the repository browser.