fail_nonexistent_package.carbon 661 B

1234567891011121314151617181920
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // TODO: This SHOULD fail but doesn't presently.
  6. //
  7. // RUN: executable_semantics %s 2>&1 | \
  8. // RUN: FileCheck --match-full-lines --allow-unused-prefixes=false %s
  9. // RUN: executable_semantics --trace %s 2>&1 | \
  10. // RUN: FileCheck --match-full-lines --allow-unused-prefixes %s
  11. // AUTOUPDATE: executable_semantics %s
  12. // CHECK: result: 0
  13. package ExecutableSemanticsTest api;
  14. import ExecutableSemanticsTest library "Nonexistent";
  15. fn Main() -> i32 {
  16. return 0;
  17. }