Changeset eae8b37 for tests


Ignore:
Timestamp:
Dec 4, 2024, 10:17:49 PM (9 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
fc276f3
Parents:
509ec82
Message:

Move enum.hfa/enum.cfa to prelude

Location:
tests
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • tests/.expect/KRfunctions.arm64.txt

    r509ec82 reae8b37  
    104104    signed int _X1bi_2;
    105105    {
    106         signed int *(*_tmp_cp_ret0)(signed int __param_0, signed int __param_1);
    107         ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret0=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret0)));
     106        signed int *(*_tmp_cp_ret8)(signed int __param_0, signed int __param_1);
     107        ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret8=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret8)));
    108108    }
    109109
  • tests/.expect/KRfunctions.x64.txt

    r509ec82 reae8b37  
    104104    signed int _X1bi_2;
    105105    {
    106         signed int *(*_tmp_cp_ret0)(signed int __param_0, signed int __param_1);
    107         ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret0=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret0)));
     106        signed int *(*_tmp_cp_ret8)(signed int __param_0, signed int __param_1);
     107        ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret8=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret8)));
    108108    }
    109109
  • tests/.expect/declarationSpecifier.arm64.txt

    r509ec82 reae8b37  
    10591059    }
    10601060
    1061     signed int _tmp_cp_ret0;
    1062     signed int _X3reti_2 = (((void)(_tmp_cp_ret0=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret0);
     1061    signed int _tmp_cp_ret8;
     1062    signed int _X3reti_2 = (((void)(_tmp_cp_ret8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);
    10631063    if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) {
    10641064        {
  • tests/.expect/declarationSpecifier.x64.txt

    r509ec82 reae8b37  
    10591059    }
    10601060
    1061     signed int _tmp_cp_ret0;
    1062     signed int _X3reti_2 = (((void)(_tmp_cp_ret0=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret0);
     1061    signed int _tmp_cp_ret8;
     1062    signed int _X3reti_2 = (((void)(_tmp_cp_ret8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);
    10631063    if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) {
    10641064        {
  • tests/.expect/declarationSpecifier.x86.txt

    r509ec82 reae8b37  
    10591059    }
    10601060
    1061     signed int _tmp_cp_ret0;
    1062     signed int _X3reti_2 = (((void)(_tmp_cp_ret0=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret0);
     1061    signed int _tmp_cp_ret8;
     1062    signed int _X3reti_2 = (((void)(_tmp_cp_ret8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);
    10631063    if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) {
    10641064        {
  • tests/.expect/extension.x64.txt

    r509ec82 reae8b37  
    457457
    458458    {
    459         signed int _tmp_cp_ret0;
    460         ((void)(((void)(_tmp_cp_ret0=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret0));
     459        signed int _tmp_cp_ret8;
     460        ((void)(((void)(_tmp_cp_ret8=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret8));
    461461    }
    462462
  • tests/.expect/extension.x86.txt

    r509ec82 reae8b37  
    457457
    458458    {
    459         signed int _tmp_cp_ret0;
    460         ((void)(((void)(_tmp_cp_ret0=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret0));
     459        signed int _tmp_cp_ret8;
     460        ((void)(((void)(_tmp_cp_ret8=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret8));
    461461    }
    462462
  • tests/.expect/gccExtensions.arm64.txt

    r509ec82 reae8b37  
    339339    }
    340340
    341     signed int _tmp_cp_ret0;
    342     signed int _X3reti_2 = (((void)(_tmp_cp_ret0=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret0);
     341    signed int _tmp_cp_ret8;
     342    signed int _X3reti_2 = (((void)(_tmp_cp_ret8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);
    343343    if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) {
    344344        {
  • tests/.expect/gccExtensions.x64.txt

    r509ec82 reae8b37  
    339339    }
    340340
    341     signed int _tmp_cp_ret0;
    342     signed int _X3reti_2 = (((void)(_tmp_cp_ret0=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret0);
     341    signed int _tmp_cp_ret8;
     342    signed int _X3reti_2 = (((void)(_tmp_cp_ret8=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret8);
    343343    if ( ((&_X17cfa_main_returnedi_1)!=((signed int *)0)) ) {
    344344        {
  • tests/ctrl-flow/loopctrl.cfa

    r509ec82 reae8b37  
    1515
    1616#include <fstream.hfa>
    17 #include <enum.hfa>
    1817
    1918void fred() {
  • tests/enum_tests/.expect/position.txt

    r509ec82 reae8b37  
    1 Compile Time: blue value: blue, position: 2, label: Blue, default return value: blue
    2 Runtime: fishy value: green, position: 1, label: Green, default return value: green
    3 Runtime: C2 value: green, position: 1, label: Green, default return value: green
     1Enumeration Constant<Blue>:: value: blue, position: 2, label: Blue, default output: Blue
     2Runtime Value<fishy>:: value: green, position: 1, label: Green, default output: Green
     3Runtime Value<C2>:: value: green, position: 1, label: Green, default output: Green
    44ao is red
    55ko is green
  • tests/enum_tests/anonymous.cfa

    r509ec82 reae8b37  
    33
    44int main() {
    5     sout | nthreads;
     5    sout | value(nthreads);
    66}
    77
  • tests/enum_tests/enumInlineValue.cfa

    r509ec82 reae8b37  
    11#include <fstream.hfa>
    2 #include <enum.hfa>
    32
    43enum(int) A !{
  • tests/enum_tests/input.cfa

    r509ec82 reae8b37  
    11#include <fstream.hfa>
    2 #include <enum.hfa>
    32
    43int main() {
  • tests/enum_tests/planet.cfa

    r509ec82 reae8b37  
    11#include <fstream.hfa>
    22#include <stdlib.hfa>
    3 #include <enum.hfa>
    43
    54struct MR { double mass, radius; };
  • tests/enum_tests/position.cfa

    r509ec82 reae8b37  
    1717    Colour c2 = fishy;
    1818
    19     sout | "Compile Time: blue value: " | value(Colour.Blue) | ", position: " | posn(Colour.Blue) | ", label: " | label(Colour.Blue) | ", default return value: " | Colour.Blue;
    20     sout | "Runtime: fishy value: " | value(fishy) | ", position: " | posn(fishy) | ", label: " | label(fishy) | ", default return value: " | fishy;
    21     sout | "Runtime: C2 value: " | value(c2) | ", position: " | posn(c2) | ", label: " | label(c2) | ", default return value: " | c2;
     19    sout | "Enumeration Constant<Blue>:: value: " | value(Colour.Blue) | ", position: " | posn(Colour.Blue) | ", label: " | label(Colour.Blue) | ", default output: " | Colour.Blue;
     20    sout | "Runtime Value<fishy>:: value: " | value(fishy) | ", position: " | posn(fishy) | ", label: " | label(fishy) | ", default output: " | fishy;
     21    sout | "Runtime Value<C2>:: value: " | value(c2) | ", position: " | posn(c2) | ", label: " | label(c2) | ", default output: " | c2;
    2222    Colour.Red;
    2323    char * ao = Colour.Red;
  • tests/enum_tests/typedIntEnum.cfa

    r509ec82 reae8b37  
    1212
    1313int main() {
    14     sout | "0=" | zero;
    15     sout | "1=" | one;
    16     sout | "1000=" | thousand;
    17     sout | "1001=" | thousand_one;
    18     sout | "2000=" | two_thousand;
    19     sout | "2001=" | two_thousand_one;
    20     sout | "2002=" | two_thousand_two;
     14    sout | "0=" | value(zero);
     15    sout | "1=" | value(one);
     16    sout | "1000=" | value(thousand);
     17    sout | "1001=" | value(thousand_one);
     18    sout | "2000=" | value(two_thousand);
     19    sout | "2001=" | value(two_thousand_one);
     20    sout | "2002=" | value(two_thousand_two);
    2121    return 0;
    2222}
  • tests/enum_tests/voidEnum.cfa

    r509ec82 reae8b37  
    11#include <fstream.hfa>
    2 #include <enum.hfa>
    32
    43enum() E { A, B, C };
Note: See TracChangeset for help on using the changeset viewer.