thradams / cake

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

if with initializer not working #184

Closed thradams closed 7 months ago

thradams commented 7 months ago
if (int x = get ()) {
  ...  
}

https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3196.htm

thradams commented 7 months ago
int get();
int main()
{
    int i;
    if (typeof(i) x = get ()) {}
}|