Create a new channel as a copy of main.
Rename main to:
Delete main? This cannot be undone.
Test that no temporary file is left behind on error. RUN: rm -rf %t RUN: mkdir %t RUN: not llvm-ar rc %t/foo.a . RUN: rmdir %t