modernc.org/cc@v1.0.1/v2/testdata/tcc-0.9.26/tests/test.out3 (about)

     1  string:
     2  ab3c
     3  ABC:
     4  c=r
     5  wc=a 0x1234 c
     6  foo1_string='bar
     7  testa'
     8  test
     9  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
    10  fib=3524578
    11  262144
    12  524288
    13  1048576
    14  2097152
    15  4194304
    16  8388608
    17  16777216
    18  33554432
    19  67108864
    20  134217728
    21  268435456
    22  536870912
    23  1073741824
    24  1
    25  -1
    26  -31232132
    27  -7808033
    28  -13
    29  2
    30  5
    31  13
    32  1
    33  16
    34  22322
    35  22319
    36  6964152
    37  5580
    38  -5580
    39  1073736243
    40  1
    41  -1
    42  15
    43  0
    44  22326
    45  22329
    46  2790
    47  -2791
    48  536868121
    49  357136
    50  -22322
    51  -22321
    52  22321
    53  13
    54  10
    55  3744
    56  3
    57  12
    58  4
    59  11
    60  12
    61  3
    62  192
    63  -13
    64  -12
    65  12
    66  1 1 1 0
    67  macro:
    68  N=1236
    69  aaa=4
    70  min=-1
    71  s1=hello
    72  s2=hello, world
    73  s3="c"
    74  s4=a1
    75  B3=1
    76  onetwothree=123
    77  A defined
    78  A defined
    79  B not defined
    80  A defined
    81  B1 not defined
    82  test true1
    83  test trueA
    84  test 2
    85  __LINE__ defined
    86  __LINE__=235 __FILE__=tcctest.c
    87  __LINE__=201 __FILE__=tcctest.c
    88  __LINE__=204 __FILE__=test
    89  __func__ = macro_test
    90  vaarg=1
    91  vaarg1
    92  vaarg1=2
    93  vaarg1=1 2
    94  func='macro_test'
    95  INT64_MIN=-9223372036854775808
    96  a=2
    97  a=8
    98  hi
    99  tralala
   100  hi
   101  qq=42
   102  qq1=1
   103  43
   104  fn tcctest.c, line 302, num 123
   105  fn tcctest.c, line 303, num 123
   106  fn tcctest.c, line 304, num 123
   107  rm_field = 0
   108  rm_field = 0
   109  rm_field = 0 0
   110  scope:
   111  g1=1
   112  g2=2
   113  g3=3
   114  g4=4
   115  g5=2
   116  forward:
   117  forward ok
   118  forward ok
   119  funcptr:
   120  12345
   121  12345
   122  12346
   123  sizeof1 = 1
   124  sizeof2 = 1
   125  sizeof3 = 8
   126  sizeof4 = 8
   127  0123456789
   128  0123456789
   129  0123456789
   130  count=1
   131  count=2
   132  count = 123
   133  12456
   134  12456
   135  012456789
   136  aa2b4567ccccc1314
   137  goto:
   138  0123456789
   139  label1
   140  label2
   141  label3
   142  enum:
   143  0 2 4 5 6 1000
   144  b1=1
   145  typedef:
   146  a=1234
   147  mytype2=2
   148  struct:
   149  sizes: 20 8 4 4
   150  st1: 1 2 3
   151  union1: 2
   152  union2: 2
   153  st2: 3 2 1
   154  str_addr=10
   155  aligntest1 sizeof=10 alignof=1
   156  aligntest2 sizeof=16 alignof=4
   157  aligntest3 sizeof=16 alignof=8
   158  aligntest4 sizeof=0 alignof=8
   159  sizeof(struct empty) = 0
   160  alignof(struct empty) = 1
   161  array:
   162  sizeof(a) = 16
   163  sizeof("a") = 2
   164  sizeof(__func__) = 11
   165  sizeof tab 12
   166  sizeof tab2 24
   167  1 2 3
   168     0   1  10  11  20  21
   169  sizeof(size_t)=8
   170  sizeof(ptrdiff_t)=8
   171  expr_ptr:
   172  diff=10
   173  inc=1
   174  dec=0
   175  inc=1
   176  dec=0
   177  add=3
   178  add=3
   179  0xfffffffffffffffc (nil) 1
   180  0 1 1 1 0 0
   181  0xfffffffffffffffc 0xffffffffc0000000 -268435455
   182  0 1 1 1 0 0
   183  0xfffffffffffffffc 0xb0000000 738197505
   184  0 1 1 1 0 0
   185  0xfffffffffffffffc 0x470000000 4764729345
   186  0 1 1 1 0 0
   187  42
   188  !s=1
   189  a=1
   190  a=0 1 1
   191  a=0 0 1
   192  a=1 0
   193  a1
   194  a2
   195  a4
   196  b=6
   197  a=400
   198  exp=1
   199  r=1
   200  aspect=65535
   201  aspect=65536
   202  34 -1
   203  60 31
   204  expr2:
   205  res= 112 2
   206  constant_expr:
   207  48
   208  3
   209  3
   210  constant_expr:
   211  1
   212  0
   213  1
   214  1
   215  1
   216  1
   217  1
   218  1
   219  0
   220  0
   221  1
   222  0
   223  1
   224  0
   225  char_short:
   226  s8=4 -4
   227  u8=4 252
   228  s16=772 -516
   229  u16=772 65020
   230  s32=16909060 -66052
   231  u32=16909060 -66052
   232  var1=1020308
   233  var1=1020809
   234  var1=8090a0b
   235  init_test:
   236  sinit1=2
   237  sinit2=3
   238  sinit3=12 1 2 3
   239  sinit6=12
   240  sinit7=12 1 2 3
   241  sinit8=hellotrala
   242  sinit9=1 2 3
   243  sinit10=1 2 3
   244  sinit11=1 2 3 10 11 12
   245  [0][0] = 1 1 1
   246  [0][1] = 2 2 2
   247  [1][0] = 3 3 3
   248  [1][1] = 4 4 4
   249  [2][0] = 5 5 5
   250  [2][1] = 6 6 6
   251  linit1=2
   252  linit2=3
   253  linit6=12
   254  linit8=11 hellotrala
   255  sinit12=hello world
   256  sinit13=24 test1 test2 test3
   257  sinit14=abc
   258   1 2 0 0 0 0 0 0 0 0
   259   1 2 0 4 0 0 0 3 0 0
   260   97 98 99 0 0 0 0 0 0 0
   261   2 3 0 0 0 0 4 0 0 0
   262  1 0 2 0
   263  linit17=4
   264  sinit15=12
   265  sinit16=1 2
   266  sinit17=a1 4 a2 1
   267  0 0 14 14 14 14 2 0 a 0 
   268  cix: 2000 2001 2002 2003 2003 0 0
   269  cix2: 3003 4006
   270  sizeof cix20 4, cix21 4, sizeof cix22 4
   271  compound_test:
   272   1 2 3
   273  321
   274  q1=tralala1
   275  q2=tralala2
   276  q3=tralala2
   277  q4=tralala3
   278   1 2 3
   279  1 2 4
   280  1 2 5
   281  1 2 6
   282  kr_test:
   283  func1=7
   284  func2=7
   285  1 2 3 4.500000
   286  before call: 1 2
   287  after call: 5 -2
   288  1
   289  cast_test:
   290  -1 -1 255 65535
   291  -1 -1 255 65535
   292  -1 -1 255 65535
   293  -127
   294  1
   295  sizeof(c) = 1, sizeof((int)c) = 4
   296  ((unsigned)(short)0x0000f000) = 0xfffff000
   297  ((unsigned)(char)0x0000f0f0) = 0xfffffff0
   298  1 2
   299  sizeof(+(char)'a') = 4
   300  sizeof(-(char)'a') = 4
   301  sizeof(~(char)'a') = 4
   302  -66 -66 -123145302310978 -123145302310978 -123145302310978 -123145302310978
   303  0x1 0xf0f0 (nil) 0xfffffff0
   304  bitfield_test:sizeof(st1) = 8
   305  3 -1 15 -8 121
   306  121 121
   307  st1.f1 == -1
   308  st1.f2 == -1
   309  4886718345 4026531841 120
   310  bool_test:
   311  sizeof(_Bool) = 1
   312  cast: 1 0 1
   313  b = 1
   314  b = 1
   315  float_test:
   316  sizeof(float) = 4
   317  sizeof(double) = 8
   318  sizeof(long double) = 16
   319  testing 'float'
   320  0 1 1 0 0 1
   321  1.000000 2.500000 3.500000 -1.500000 2.500000 0.400000 -1.000000
   322  2.000000
   323  2.000000
   324  3.000000
   325  0 1
   326  0 1 0 1 1 0
   327  2.000000 1.500000 3.500000 0.500000 3.000000 1.333333 -2.000000
   328  3.000000
   329  3.000000
   330  4.000000
   331  0 1
   332  1 0 0 0 1 1
   333  1.000000 1.000000 2.000000 0.000000 1.000000 1.000000 -1.000000
   334  2.000000
   335  2.000000
   336  3.000000
   337  0 1
   338  ftof: 234.600006 234.600006 234.600006
   339  ftoi: 234 234
   340  itof: -1234.000000
   341  utof: 2166572288.000000
   342  ftof: -2334.600098 -2334.600098 -2334.600098
   343  ftoi: -2334 4294964962
   344  itof: -1234.000000
   345  utof: 2166572288.000000
   346  float: 42.123455
   347  double: 42.123455
   348  long double: 42.123455
   349  strtof: 1.200000
   350  testing 'double'
   351  0 1 1 0 0 1
   352  1.000000 2.500000 3.500000 -1.500000 2.500000 0.400000 -1.000000
   353  2.000000
   354  2.000000
   355  3.000000
   356  0 1
   357  0 1 0 1 1 0
   358  2.000000 1.500000 3.500000 0.500000 3.000000 1.333333 -2.000000
   359  3.000000
   360  3.000000
   361  4.000000
   362  0 1
   363  1 0 0 0 1 1
   364  1.000000 1.000000 2.000000 0.000000 1.000000 1.000000 -1.000000
   365  2.000000
   366  2.000000
   367  3.000000
   368  0 1
   369  ftof: 234.600006 234.600000 234.600000
   370  ftoi: 234 234
   371  itof: -1234.000000
   372  utof: 2166572288.000000
   373  ftof: -2334.600098 -2334.600000 -2334.600000
   374  ftoi: -2334 4294964962
   375  itof: -1234.000000
   376  utof: 2166572288.000000
   377  float: 42.123455
   378  double: 42.123457
   379  long double: 42.123457
   380  strtod: 1.200000
   381  testing 'long double'
   382  0 1 1 0 0 1
   383  1.000000 2.500000 3.500000 -1.500000 2.500000 0.400000 -1.000000
   384  2.000000
   385  2.000000
   386  3.000000
   387  0 1
   388  0 1 0 1 1 0
   389  2.000000 1.500000 3.500000 0.500000 3.000000 1.333333 -2.000000
   390  3.000000
   391  3.000000
   392  4.000000
   393  0 1
   394  1 0 0 0 1 1
   395  1.000000 1.000000 2.000000 0.000000 1.000000 1.000000 -1.000000
   396  2.000000
   397  2.000000
   398  3.000000
   399  0 1
   400  ftof: 234.600006 234.600000 234.600000
   401  ftoi: 234 234
   402  itof: -1234.000000
   403  utof: 2166572288.000000
   404  ftof: -2334.600098 -2334.600000 -2334.600000
   405  ftoi: -2334 4294964962
   406  itof: -1234.000000
   407  utof: 2166572288.000000
   408  float: 42.123455
   409  double: 42.123457
   410  long double: 42.123457
   411  strtold: 1.200000
   412  1.200000 3.400000 -5.600000
   413  2.120000 0.500000 23000000000.000000
   414  da=123.000000
   415  fa=123.000000
   416  da = -294967296.000000
   417  db = 4000000000.000000
   418  longlong_test:
   419  sizeof(long long) = 8
   420  -1 4294967294
   421  1 -2 1 1234567812345679
   422  -6
   423  arith: 1023 977 23000
   424  arith1: 43 11
   425  bin: 0 1023 1023
   426  test: 0 1 0 1 1 0
   427  utest: 0 1 0 1 1 0
   428  arith2: 1001 24
   429  arith2: 1001 24
   430  arith2: 1001 24
   431  arith2: 1001 24
   432  not: 0 0 1 1
   433  arith: 4915 -4405 1188300
   434  arith1: 0 255
   435  bin: 52 4863 4811
   436  test: 0 1 1 0 0 1
   437  utest: 0 1 1 0 0 1
   438  arith2: 256 4661
   439  arith2: 256 4661
   440  arith2: 256 4661
   441  arith2: 256 4661
   442  not: 0 0 1 1
   443  arith: -782639107 782639101 2347917312
   444  arith1: 0 -3
   445  bin: -782639104 -3 782639101
   446  test: 0 1 0 1 1 0
   447  utest: 0 1 0 1 1 0
   448  arith2: -2 -782639103
   449  arith2: -2 -782639103
   450  arith2: -2 -782639103
   451  arith2: -2 -782639103
   452  not: 0 0 1 1
   453  shift: 9 9 9312
   454  shiftc: 36 36 2328
   455  shiftc: 0 0 9998683865088
   456  shift: 576460752303423487 -1 -736
   457  shiftc: 2305843009213693949 -3 -184
   458  shiftc: 536870911 -1 -790273982464
   459  shift: 0 0 -1152921504606846976
   460  shiftc: 245252176896 245252176896 15696139321344
   461  shiftc: 57 57 -8444530776296390656
   462  la=320255972942661 ula=16458594985017606144
   463  lltof: 320255981256704.000000 320255972942661.000000 320255972942661.000000
   464  ftoll: 320255981256704 320255972942661 320255972942661
   465  ulltof: 16458595053737082880.000000 16458594985017606144.000000 16458594985017606144.000000
   466  ftoull: 16458595053737082880 16458594985017606144 16458594985017606144
   467  12345677
   468  3
   469  arith: 2147483648 2147483648 0
   470  bin: 0 2147483648 2147483648
   471  test: 0 1 0 1 1 0
   472  utest: 0 1 0 1 1 0
   473  arith2: 2147483649 1
   474  arith2: 2147483649 1
   475  arith2: 2147483649 1
   476  arith2: 2147483649 1
   477  not: 0 0 1 1
   478  2
   479  1 0 1 0
   480  4886718345
   481  manyarg_test:
   482  1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000 8.900000 9.000000
   483  1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000 8.900000 9.000000 1234567891234 987654321986 42.000000 43.000000
   484  1234567891234.000000 1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000 8.900000 9.000000 1234567891234 987654321986 42.000000 43.000000
   485  1 2 3
   486  1.000000 2 3.000000
   487  1234567891234 987654321986 3 1234.000000
   488  1.200000 2.300000 3.400000
   489  1 1.200000 3 4.500000 6 7.800000 9 0.100000
   490  1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000
   491  1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000 8.900000 9.000000
   492  1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000 8.900000 9.000000 1234567891234 987654321986 42.000000 43.000000
   493  1234567891234.000000 1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000 8.900000 9.000000 1234567891234 987654321986 42.000000 43.000000
   494  1 2 3 4 5 6 7 8 1234567891234.000000
   495  1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000 8.900000 9.000000 1234567891234 987654321986 42.000000 43.000000 1234567891234.000000
   496  1 2 3 4 5 6 7 8 0.100000 1.200000 2.300000 3.400000 4.500000 5.600000 6.700000 7.800000 8.900000 9.000000 1234567891234.000000 1234567891234 987654321986 42.000000 43.000000 1234567891234.000000
   497  stdarg_for_struct: 42 42 42 42
   498  whitspace:
   499  N=2
   500  aaa=3
   501  min=4
   502  *rel1=2
   503  *rel2=3
   504  a=1 b=2 b=3.000000
   505  cmpfn=0
   506  cmpfn=0
   507  alloca: p is 123456789012345
   508  alloca: This is only a test.
   509  
   510  Test C99 VLA 1 (sizeof): PASSED
   511  Test C99 VLA 2 (ptrs substract): PASSED
   512  Test C99 VLA 3 (ptr add): PASSED
   513  Test C99 VLA 4 (ptr access): PASSED
   514  Test C99 VLA 5 (bounds checking (might be disabled)): PASSED PASSED PASSED PASSED PASSED PASSED PASSED PASSED 
   515  sizeof(int) = 4
   516  sizeof(unsigned int) = 4
   517  sizeof(long) = 8
   518  sizeof(unsigned long) = 8
   519  sizeof(short) = 2
   520  sizeof(unsigned short) = 2
   521  sizeof(char) = 1
   522  sizeof(unsigned char) = 1
   523  sizeof(func) = 1
   524  sizeof(a++) = 4
   525  a=1
   526  sizeof(**ptr) = 4
   527  sizeof(sizeof(int) = 8
   528  4294967297 4294967296
   529  __alignof__(int) = 4
   530  __alignof__(unsigned int) = 4
   531  __alignof__(short) = 2
   532  __alignof__(unsigned short) = 2
   533  __alignof__(char) = 1
   534  __alignof__(unsigned char) = 1
   535  __alignof__(func) = 1
   536  a=1.500000 b=2.500000 c=3.500000
   537  a=110
   538  bb2
   539  bb1
   540  aa2
   541  aa3
   542  aa1
   543  a=2
   544  __builtin_types_compatible_p(int, int) = 1
   545  __builtin_types_compatible_p(int, unsigned int) = 0
   546  __builtin_types_compatible_p(int, char) = 0
   547  __builtin_types_compatible_p(int, const int) = 1
   548  __builtin_types_compatible_p(int, volatile int) = 1
   549  __builtin_types_compatible_p(int *, int *) = 1
   550  __builtin_types_compatible_p(int *, void *) = 0
   551  __builtin_types_compatible_p(int *, const int *) = 0
   552  __builtin_types_compatible_p(char *, unsigned char *) = 0
   553  __builtin_types_compatible_p(char * *, void *) = 0
   554  res = 1
   555  res = 1
   556  res = 0
   557  res = 0
   558  weak_f1=123
   559  weak_f2=222
   560  weak_f3=333
   561  weak_v1=123
   562  weak_v2=222
   563  weak_v3=333
   564  weak_fpa=123
   565  weak_fpb=123
   566  weak_fpc=123
   567  weak_asm_f1=0
   568  weak_asm_f2=0
   569  weak_asm_f3=0
   570  weak_asm_v1=0
   571  weak_asm_v2=0
   572  weak_asm_v3=0
   573  43
   574  callsavetest: 8
   575  0
   576  str: __builtin_frame_address
   577  bfa1: __builtin_frame_address