source: tests/castReturn.cfa @ 10b5970

Last change on this file since 10b5970 was 66e7cc1, checked in by Andrew Beach <ajbeach@…>, 2 weeks ago

Added some tests for recent changes to the resolver.

  • Property mode set to 100644
File size: 253 bytes
Line 
1// Simple example use of the return/annotation cast.
2
3#include <limits.hfa>
4
5int main() {
6        unsigned int max0 = (return int)MAX;
7        signed int max1 = MAX;
8        if (max0 == max1) {
9                printf("match\n");
10        } else {
11                printf("error (%u vs %d)\n", max0, max1);
12        }
13}
Note: See TracBrowser for help on using the repository browser.