Files
carbon-lang/toolchain/check/testdata/operators/overloaded/binary_op.carbon.tmpl
T
Jon Ross-Perkins 0b530de9ed Add range flag settings to operators files (#5567)
Where `--no-dump-sem-ir` is used, change to `--dump-sem-ir-ranges=only`.
Otherwise, add `--dump-sem-ir-ranges=if-present` with a TODO to change
to `only`.

Note, SemIR is affected just because the extra comments change line
numbers in files where splits aren't in use.
2025-05-30 15:03:42 +00:00

32 lines
605 B
Cheetah

// 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
//
// TODO: Add ranges and switch to "--dump-sem-ir-ranges=only".
// EXTRA-ARGS: --dump-sem-ir-ranges=if-present
//
// AUTOUPDATE
HEADER
package User;
class C {};
impl C as Core.INTERFACE {
fn Op[self: C](other: C) -> C {
return {};
}
}
impl C as Core.INTERFACEAssign {
fn Op[addr self: C*](other: C) {}
}
fn TestOp(a: C, b: C) -> C {
return a OP b;
}
fn TestAssign(a: C*, b: C) {
*a OP= b;
}