ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since d7903b1 was
94980502,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
update examples
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
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 |
---|
12 | // Last Modified On : Fri Mar 11 16:27:38 2016 |
---|
13 | // Update Count : 81 |
---|
14 | // |
---|
15 | |
---|
16 | int foo() { |
---|
17 | 1_234_Ul; |
---|
18 | -0_177; |
---|
19 | 017_777_777_777; |
---|
20 | 037_777_777_777; |
---|
21 | 0x_7f_FF_ff_FF; |
---|
22 | 0x_ff_FF_ff_FF; |
---|
23 | 2_147_483_647; |
---|
24 | 4_294_967_295; |
---|
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; |
---|
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; |
---|
46 | 18_446_744_073_709_551_615UL; |
---|
47 | 3.141_59f; |
---|
48 | 3.14159; |
---|
49 | 12.123_333_E_27L; |
---|
50 | 0X_1.ff_ff_ff_ff_ff_fff_P_1023; |
---|
51 | '\0'; |
---|
52 | '\1_2_3'; |
---|
53 | L'\x_ff_ee'; |
---|
54 | L_"\x_ff_ee"; |
---|
55 | L"a_b\r\vyc\u_00_40 x_y_z\xff_AA"; |
---|
56 | L_"a_b\r\vyc\u_00_40\ |
---|
57 | x_y_z\xff_AA"; |
---|
58 | "abc" "def" "ghi"; |
---|
59 | } |
---|
60 | |
---|
61 | // Local Variables: // |
---|
62 | // tab-width: 4 // |
---|
63 | // compile-command: "cfa constants.c" // |
---|
64 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.