Can I run 3 feet of water pipe in the attic for a rain shower?
where is the home?
he most important question:  Does it freeze in your attic?
Even if it freezes - if the pipe is beneath ample insulation it is ok - Unless you are on an extended vacation - in which case must leave the heat on low enough to make sure the house envelope does not drop below freezing.