Ignore:
Timestamp:
Jun 6, 2015, 11:38:58 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
cd623a4
Parents:
a65d92e
Message:

constant types, first attempt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/constants.c

    ra65d92e r59db689  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 27 18:11:03 2015
    13 // Update Count     : 3
     12// Last Modified On : Sat Jun  6 15:08:43 2015
     13// Update Count     : 63
    1414//
    1515
     
    1717        1_234_Ul;
    1818        -0_177;
     19        017777777777;
     20        037777777777;
     21        0x_7f_FF_ff_FF;
    1922        0x_ff_FF_ff_FF;
    20         +9_223_372_036_854_775_807;
    21         12.123_333_E_27;
     23        2_147_483_647;
     24        4_294_967_295;
     25        0777777777777777777777;
     26        01777777777777777777777;
     27        0x_7f_FF_ff_FF_ff_FF_ff_FF;
     28        0x_ff_FF_ff_FF_ff_FF_ff_FF;
     29        9_223_372_036_854_775_807;
     30        18_446_744_073_709_551_615;
     31        12.123_333_E_27L;
    2232        0X_1.ff_ff_ff_ff_ff_fff_P_1023;
    2333        '\0';
    2434        '\1_2_3';
    25         L_'\x_ff_ee';
    26         L"a_bc\u_00_40xyz\xff_AA";
    27         "a_bc\\
    28   u_00_40xyz";
     35        L'\x_ff_ee';
     36        L_"\x_ff_ee";
     37        L"a_b\r\Qyc\u_00_40  x_y_z\xff_AA";
     38        L_"a_b\r\Qyc\u_00_40\   
     39  x_y_z\xff_AA";
     40        "abc" "def" "ghi";
    2941}
    3042
Note: See TracChangeset for help on using the changeset viewer.