source:
src/examples/constants.c
@
94980502
Last change on this file since 94980502 was 94980502, checked in by , 8 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[86bd7c1f] | 1 | // |
2 | // Cforall Version 1.0.0 Copyright (C) 2015 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 | // constants.c -- | |
8 | // | |
9 | // Author : Richard C. Bilson | |
10 | // Created On : Wed May 27 17:56:53 2015 | |
11 | // Last Modified By : Peter A. Buhr | |
[94980502] | 12 | // Last Modified On : Fri Mar 11 16:27:38 2016 |
13 | // Update Count : 81 | |
[86bd7c1f] | 14 | // |
15 | ||
[bdd516a] | 16 | int foo() { |
[86bd7c1f] | 17 | 1_234_Ul; |
18 | -0_177; | |
[5f2f2d7] | 19 | 017_777_777_777; |
20 | 037_777_777_777; | |
[59db689] | 21 | 0x_7f_FF_ff_FF; |
[86bd7c1f] | 22 | 0x_ff_FF_ff_FF; |
[59db689] | 23 | 2_147_483_647; |
24 | 4_294_967_295; | |
[5f2f2d7] | 25 | 4_294_967_296; |
26 | 4_294_967_296U; | |
27 | 0_777_777_777_777_777_777_777; | |
28 | 01_777_777_777_777_777_777_777; | |
29 | 0; | |
30 | 0L; | |
31 | 0LL; | |
32 | 1; | |
33 | 1L; | |
34 | 1LL; | |
35 | 10; | |
36 | 10L; | |
37 | 10LL; | |
38 | 2U; | |
39 | 2UL; | |
40 | 2ULL; | |
41 | 2LU; | |
42 | 2LLU; | |
[59db689] | 43 | 0x_7f_FF_ff_FF_ff_FF_ff_FF; |
44 | 0x_ff_FF_ff_FF_ff_FF_ff_FF; | |
45 | 9_223_372_036_854_775_807; | |
[94980502] | 46 | 18_446_744_073_709_551_615UL; |
[5f2f2d7] | 47 | 3.141_59f; |
48 | 3.14159; | |
[59db689] | 49 | 12.123_333_E_27L; |
[86bd7c1f] | 50 | 0X_1.ff_ff_ff_ff_ff_fff_P_1023; |
51 | '\0'; | |
52 | '\1_2_3'; | |
[59db689] | 53 | L'\x_ff_ee'; |
54 | L_"\x_ff_ee"; | |
[94980502] | 55 | L"a_b\r\vyc\u_00_40 x_y_z\xff_AA"; |
56 | L_"a_b\r\vyc\u_00_40\ | |
[59db689] | 57 | x_y_z\xff_AA"; |
58 | "abc" "def" "ghi"; | |
[bdd516a] | 59 | } |
60 | ||
61 | // Local Variables: // | |
[86bd7c1f] | 62 | // tab-width: 4 // |
63 | // compile-command: "cfa constants.c" // | |
[bdd516a] | 64 | // End: // |
Note: See TracBrowser
for help on using the repository browser.