1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // PR447 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc namespace nm { 6*f4a2713aSLionel Sambuc struct str { foo(int arg=0)7*f4a2713aSLionel Sambuc friend void foo(int arg = 0) {}; 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc } 10