Corrected for LLVM style and added test case.