Fix the compiler attribute test to work with Clang.