diff --git a/toolchain/check/testdata/interface/no_prelude/fail_assoc_const_not_constant.carbon b/toolchain/check/testdata/interface/no_prelude/fail_assoc_const_not_constant.carbon index eee7fecfa983..3a9ab24ee186 100644 --- a/toolchain/check/testdata/interface/no_prelude/fail_assoc_const_not_constant.carbon +++ b/toolchain/check/testdata/interface/no_prelude/fail_assoc_const_not_constant.carbon @@ -2,6 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // +// EXTRA-ARGS: --no-dump-sem-ir +// // AUTOUPDATE // TIP: To test this file alone, run: // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/interface/no_prelude/fail_assoc_const_not_constant.carbon @@ -9,15 +11,11 @@ // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/interface/no_prelude/fail_assoc_const_not_constant.carbon interface I { - // CHECK:STDERR: fail_assoc_const_not_constant.carbon:[[@LINE+8]]:10: error: `Core.Int` implicitly referenced here, but package `Core` not found [CoreNotFound] - // CHECK:STDERR: let a: i32; - // CHECK:STDERR: ^~~ - // CHECK:STDERR: // CHECK:STDERR: fail_assoc_const_not_constant.carbon:[[@LINE+4]]:7: error: pattern in associated constant declaration must be a single `:!` binding [ExpectedSymbolicBindingInAssociatedConstant] - // CHECK:STDERR: let a: i32; + // CHECK:STDERR: let a: {.b: ()}; // CHECK:STDERR: ^ // CHECK:STDERR: - let a: i32; + let a: {.b: ()}; } // We shouldn't issue further errors on uses of the invalid name. @@ -25,37 +23,3 @@ alias UseA = I.a; // Ideally we would still diagnose this, but it's OK that we don't. alias UseOther = I.other; - -// CHECK:STDOUT: --- fail_assoc_const_not_constant.carbon -// CHECK:STDOUT: -// CHECK:STDOUT: constants { -// CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete] -// CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic] -// CHECK:STDOUT: } -// CHECK:STDOUT: -// CHECK:STDOUT: file { -// CHECK:STDOUT: package: = namespace [concrete] { -// CHECK:STDOUT: .I = %I.decl -// CHECK:STDOUT: .UseA = %UseA -// CHECK:STDOUT: .UseOther = %UseOther -// CHECK:STDOUT: } -// CHECK:STDOUT: %I.decl: type = interface_decl @I [concrete = constants.%I.type] {} {} -// CHECK:STDOUT: %I.ref.loc24: type = name_ref I, %I.decl [concrete = constants.%I.type] -// CHECK:STDOUT: %a.ref: = name_ref a, .inst19.loc20_7 [concrete = ] -// CHECK:STDOUT: %UseA: = bind_alias UseA, .inst19.loc20_7 [concrete = ] -// CHECK:STDOUT: %I.ref.loc27: type = name_ref I, %I.decl [concrete = constants.%I.type] -// CHECK:STDOUT: %other.ref: = name_ref other, [concrete = ] -// CHECK:STDOUT: %UseOther: = bind_alias UseOther, [concrete = ] -// CHECK:STDOUT: } -// CHECK:STDOUT: -// CHECK:STDOUT: interface @I { -// CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self] -// CHECK:STDOUT: -// CHECK:STDOUT: !members: -// CHECK:STDOUT: .Self = %Self -// CHECK:STDOUT: .a = .inst19.loc20_7 -// CHECK:STDOUT: .other = -// CHECK:STDOUT: has_error -// CHECK:STDOUT: witness = () -// CHECK:STDOUT: } -// CHECK:STDOUT: