mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 10:31:18 +00:00
This makes the min_prelude files a little more consistent with how we use testdata elsewhere, avoiding some special casing of them.
19 lines
573 B
Plaintext
19 lines
573 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/
|
|
|
|
// --- min_prelude/destroy.carbon
|
|
|
|
// A minimal prelude for tests that require destruction.
|
|
package Core library "prelude";
|
|
|
|
// TODO: Uncomment once the interface is used.
|
|
// interface Destroy {
|
|
// fn Op[self: Self]();
|
|
// }
|
|
// impl forall [T:! type] T as Destroy {
|
|
// fn Op[self: Self]() = "no_op";
|
|
// }
|