1 ; Test that all coroutine passes run in the correct order at all optimization
2 ; levels and -enable-coroutines adds coroutine passes to the pipeline.
4 ; RUN: opt < %s -disable-output -enable-coroutines -debug-pass=Arguments -O0 2>&1 | FileCheck %s
5 ; RUN: opt < %s -disable-output -enable-coroutines -debug-pass=Arguments -O1 2>&1 | FileCheck %s
6 ; RUN: opt < %s -disable-output -enable-coroutines -debug-pass=Arguments -O2 2>&1 | FileCheck %s
7 ; RUN: opt < %s -disable-output -enable-coroutines -debug-pass=Arguments -O3 2>&1 | FileCheck %s
8 ; RUN: opt < %s -disable-output -enable-coroutines -debug-pass=Arguments \
9 ; RUN: -coro-early -coro-split -coro-elide -coro-cleanup 2>&1 | FileCheck %s
10 ; RUN: opt < %s -disable-output -debug-pass=Arguments 2>&1 \
11 ; RUN: | FileCheck %s -check-prefix=NOCORO
18 ; NOCORO-NOT: coro-early
19 ; NOCORO-NOT: coro-split
20 ; NOCORO-NOT: coro-elide
21 ; NOCORO-NOT: coro-cleanup