Changes in src/examples/constants.c [5f2f2d7:843054c2]
- File:
-
- 1 edited
-
src/examples/constants.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/examples/constants.c
r5f2f2d7 r843054c2 1 //2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo3 //4 // The contents of this file are covered under the licence agreement in the5 // file "LICENCE" distributed with Cforall.6 //7 // constants.c --8 //9 // Author : Richard C. Bilson10 // Created On : Wed May 27 17:56:53 201511 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Jun 8 20:44:48 201513 // Update Count : 7514 //15 16 1 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_615; 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\Qyc\u_00_40 x_y_z\xff_AA"; 56 L_"a_b\r\Qyc\u_00_40\ 57 x_y_z\xff_AA"; 58 "abc" "def" "ghi"; 2 1_234_Ul; 3 -0_177; 4 0x_ff_FF_ff_FF; 5 +9_223_372_036_854_775_807; 6 12.123_333_E_27; 7 0X_1.ff_ff_ff_ff_ff_fff_P_1023; 8 '\0'; 9 '\1_2_3'; 10 L_'\x_ff_ee'; 11 L"a_bc\u_00_40xyz\xff_AA"; 12 "a_bc\\ 13 u_00_40xyz"; 59 14 } 60 15 61 16 // Local Variables: // 62 // tab-width: 4 // 63 // compile-command: "cfa constants.c" // 17 // compile-command: "../../bin/cfa -std=c99 constants.c" // 64 18 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.