Ignore:
Timestamp:
Nov 29, 2019, 1:47:14 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0f9ceacb, ce7bdc4, e71c1d4
Parents:
397c101a
Message:

Modified Lvalue cast handling to ignore top level dereferencing in AsmExpr?, also added test case for this fixes #152?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/references.cfa

    r397c101a r78cdb06  
    119119                f( 3, a + b, (S){ 1.0, 7.0 }, (int [3]){ 1, 2, 3 } ); // two rvalue to reference
    120120        }
     121
     122        {
     123                int a = 3;
     124                int *p = &a;
     125                asm (
     126                        "incl %[p]\n\t" :
     127                        : [p] "m" (*p)
     128                );
     129                printf("%d\n", a);
     130        }
    121131}
    122132
Note: See TracChangeset for help on using the changeset viewer.