diff options
Diffstat (limited to 'test/Driver/coroutines.cpp')
-rw-r--r-- | test/Driver/coroutines.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/coroutines.cpp b/test/Driver/coroutines.cpp new file mode 100644 index 0000000000000..99e0ff57dda2e --- /dev/null +++ b/test/Driver/coroutines.cpp @@ -0,0 +1,9 @@ +// RUN: %clang -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-CORO %s +// RUN: %clang -fcoroutines-ts -fno-coroutines-ts -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-CORO %s +// RUN: %clang -fno-coroutines-ts -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-CORO %s +// CHECK-NO-CORO-NOT: -fcoroutines-ts + +// RUN: %clang -fcoroutines-ts -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-CORO %s +// RUN: %clang -fno-coroutines-ts -fcoroutines-ts -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-CORO %s +// CHECK-HAS-CORO: -fcoroutines-ts + |