This would fail on a cast<PointerType> when verifying the attribute if these attributes were incorrectly used with a non-pointer type.
This directory contains testcases that the verifier is supposed to detect as malformed LLVM code. Testcases for situations that the verifier incorrectly identifies as malformed should go in the test/Assembler directory.