Ignore:
Timestamp:
Jun 23, 2016, 12:23:00 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
4d3ca1d8
Parents:
c2931ea (diff), d56c05d0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ctor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/NumericConstants.c

    rc2931ea rf1ee72e  
    11int main() {
    2     1;                                                  /* decimal */
    3     2_1;
    4     2_147_483_647;
    5     37LL;
    6     45ull;
    7     89llu;
    8     99LLu;
    9     56_lu;
    10     88_LLu;
     2        1;                                                      // decimal
     3        2_1;
     4        2_147_483_647;
     5        37LL;
     6        45ull;
     7        89llu;
     8        99LLu;
     9        56_lu;
     10        88_LLu;
    1111
    12 //    0;                                                        /* octal */
    13     0u;
    14     0_3_77;
    15     0_377_ul;
     12//      0;                                                      // octal
     13        0u;
     14        0_3_77;
     15        0_377_ul;
    1616
    17     0x1;                                                /* hexadecimal */
    18     0x1u;
    19     0xabL;
    20     0x_80000000;
    21     0x_fff;
    22     0x_ef3d_aa5c;
    23     0x_3LL;
     17        0x1;                                            // hexadecimal
     18        0x1u;
     19        0xabL;
     20        0x_80000000;
     21        0x_fff;
     22        0x_ef3d_aa5c;
     23        0x_3LL;
    2424
    25     3.;                                                 /* integral real */
    26     3_100.;
    27     1_000_000.;
     25        3.;                                                     // integral real
     26        3_100.;
     27        1_000_000.;
    2828
    29     3.1;                                                /* integral/fractional real */
    30     3.141_592_654L;
    31     123_456.123_456;
     29        3.1;                                            // integral/fractional real
     30        3.141_592_654L;
     31        123_456.123_456;
    3232
    33     3E1;                                                /* integral/exponent real */
    34     3_e1f;
    35     3_E1_1_F;
    36     3_E_11;
    37     3_e_+11;
    38     3_E_-11;
     33        3E1;                                            // integral/exponent real
     34        3_e1f;
     35        3_E1_1_F;
     36        3_E_11;
     37        3_e_+11;
     38        3_E_-11;
    3939
    40     3.0E1;                                              /* integral/fractional/exponent real */
    41     3.0_E1L;
    42     3.0_e1_1;
    43     3.0_E_11_l;
    44     3.0_e_+11l;
    45     3.0_E_-11;
    46     123_456.123_456E-16;
     40        3.0E1;                                          // integral/fractional/exponent real
     41        3.0_E1L;
     42        3.0_e1_1;
     43        3.0_E_11_l;
     44        3.0_e_+11l;
     45        3.0_E_-11;
     46        123_456.123_456E-16;
    4747
    48     0x_ff.ffp0;                                         /* hex real */
    49     0x_1.ffff_ffff_p_128_l;
     48        0x_ff.ffp0;                                     // hex real
     49        0x_1.ffff_ffff_p_128_l;
    5050}
    51 
    52 // Local Variables: //
    53 // compile-command: "../../../bin/cfa -std=c99 NumericConstants.c" //
    54 // End: //
Note: See TracChangeset for help on using the changeset viewer.