Skip to content

Labeled continue #73

Description

@pierrec
package main

func main() {
	var y int
next:
	for {
		y++
		if y < 5 {
			continue next
		}
	}
}
#include "main.h"

// -- Implementation --

int main(void) {
    so_int y = 0;
    next:;
    for (;;) {
        y++;
        if (y < 5) {
            continue next;
        }
    }
    next_end:;
    return 0;
}
/var/folders/lb/nhsppbxs5_v27pn_x3kf66wc0000gn/T/solod_build2914996221/main.c:11:21: error: expected ';' after continue statement
   11 |             continue next;
      |                     ^
      |                     ;
1 error generated.
so run: C compiler: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions