mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 06:25:00 +01:00
This change updated a test to use a different example to make sure a diagnostic was still being exercised, but as a consequence lost test coverage of the situation the test was originally intended to cover. Add back the old test and put the new test into a different file.
18 lines
723 B
Plaintext
18 lines
723 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
|
|
//
|
|
// RUN: %{not} %{explorer} %s 2>&1 | \
|
|
// RUN: %{FileCheck} --match-full-lines --allow-unused-prefixes=false %s
|
|
// RUN: %{not} %{explorer} --parser_debug --trace_file=- %s 2>&1 | \
|
|
// RUN: %{FileCheck} --match-full-lines --allow-unused-prefixes %s
|
|
// AUTOUPDATE: %{explorer} %s
|
|
|
|
package ExplorerTest api;
|
|
|
|
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/impl/fail_impl_as_non_interface.carbon:[[@LINE+1]]: expected constraint after `as`, found value of type String
|
|
external impl i32 as String {}
|
|
|
|
fn Main() -> i32 {
|
|
}
|