1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -verify %s 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc // PR12223 5*f4a2713aSLionel Sambuc namespace test1 { 6*f4a2713aSLionel Sambuc namespace N { 7*f4a2713aSLionel Sambuc extern "C" void f_test1(struct S*); 8*f4a2713aSLionel Sambuc void g(S*); 9*f4a2713aSLionel Sambuc } 10*f4a2713aSLionel Sambuc namespace N { f(struct S * s)11*f4a2713aSLionel Sambuc void f(struct S *s) { 12*f4a2713aSLionel Sambuc g(s); 13*f4a2713aSLionel Sambuc } 14*f4a2713aSLionel Sambuc } 15*f4a2713aSLionel Sambuc } 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc // PR10447 18*f4a2713aSLionel Sambuc namespace test2 { 19*f4a2713aSLionel Sambuc extern "C" { f_test2(struct Bar *)20*f4a2713aSLionel Sambuc void f_test2(struct Bar*) { } 21*f4a2713aSLionel Sambuc test2::Bar *ptr; 22*f4a2713aSLionel Sambuc } 23*f4a2713aSLionel Sambuc } 24