Add extra tests for [[gnu::...]] attributes, missed from r172382.