brintos

brintos / llvm-project-archived public Read only

0
0
Text · 449 B · 5f422ca Raw
20 lines · plain
1// RUN: cir-opt %s -verify-diagnostics -split-input-file2cir.func coroutine @bad_task() { // expected-error {{coroutine body must use at least one cir.await op}}3  cir.return4}5 6// -----7 8cir.func coroutine @missing_condition() {9  cir.scope {10    cir.await(user, ready : { // expected-error {{ready region must end with cir.condition}}11      cir.yield12    }, suspend : {13      cir.yield14    }, resume : {15      cir.yield16    },)17  }18  cir.return19}20