simple.carbon 901 B

1234567891011121314151617181920212223242526
  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. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/none.carbon
  6. //
  7. // AUTOUPDATE
  8. // TIP: To test this file alone, run:
  9. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/interop/cpp/reverse/simple.carbon
  10. // TIP: To dump output, run:
  11. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/interop/cpp/reverse/simple.carbon
  12. // --- other.carbon
  13. package Other;
  14. namespace Nested;
  15. namespace Nested.Again;
  16. // --- namespace.carbon
  17. library "[[@TEST_NAME]]";
  18. import Other;
  19. import Cpp inline '''
  20. namespace X = Carbon::Other;
  21. namespace Y = Carbon::Other::Nested;
  22. namespace Z = Carbon::Other::Nested::Again;
  23. ''';