|
Last change
on this file since 1e7e6f38 was 66e7cc1, checked in by Andrew Beach <ajbeach@…>, 10 months ago |
|
Added some tests for recent changes to the resolver.
|
-
Property mode
set to
100644
|
|
File size:
253 bytes
|
| Rev | Line | |
|---|
| [66e7cc1] | 1 | // Simple example use of the return/annotation cast.
|
|---|
| 2 |
|
|---|
| 3 | #include <limits.hfa>
|
|---|
| 4 |
|
|---|
| 5 | int 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.