1*f4a2713aSLionel Sambuc // RUN: rm -rf %t 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc #include "linkage-merge-bar.h" 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc static int f(int); 7*f4a2713aSLionel Sambuc int f(int); 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc static void g(int); 10*f4a2713aSLionel Sambuc // expected-error@-1 {{declaration conflicts with target of using declaration already in scope}} 11*f4a2713aSLionel Sambuc // expected-note@Inputs/linkage-merge-foo.h:2 {{target of using declaration}} 12*f4a2713aSLionel Sambuc // expected-note@Inputs/linkage-merge-bar.h:3 {{using declaration}} 13