thradams / cake

Cake a C23 front end and transpiler written in C
http://thradams.com/cake/index.html
GNU General Public License v3.0
553 stars 26 forks source link

ternary operator pointer join #200

Open thradams opened 2 months ago

thradams commented 2 months ago
#pragma safety enable

void f(int i) {
    int a=0;
    int b=1;
    int* k =i ? &a : &b;
//pointer k is pointing to a or b (cake is not making the this..)
}