mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 13:01:21 +00:00
Add check support for `for` loops following #1885. This also adds a basic `Optional` type to the prelude, as that's necessary to support the new `Iterate` interface. Depends on #5688, #5697. Those PRs aren't stacked here, but this change will crash until they land. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
20 lines
858 B
Plaintext
20 lines
858 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// EXTRA-ARGS: --custom-core --exclude-dump-file-prefix=min_prelude/
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/as.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/bool.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/iterate.carbon
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/parts/optional.carbon
|
|
|
|
// --- min_prelude/bool.carbon
|
|
|
|
// A minimal prelude for testing `for` loops.
|
|
package Core library "prelude";
|
|
|
|
export import library "prelude/parts/as";
|
|
export import library "prelude/parts/bool";
|
|
export import library "prelude/parts/iterate";
|
|
export import library "prelude/parts/optional";
|