1f4a2713aSLionel Sambuc // RUN: rm -rf %t 2f4a2713aSLionel Sambuc // RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 3f4a2713aSLionel Sambuc 4f4a2713aSLionel Sambuc #include "linkage-merge-bar.h" 5f4a2713aSLionel Sambuc 6f4a2713aSLionel Sambuc static int f(int); 7f4a2713aSLionel Sambuc int f(int); 8f4a2713aSLionel Sambuc 9f4a2713aSLionel Sambuc static void g(int); 10*0a6a1f1dSLionel Sambuc // expected-error@-1 {{functions that differ only in their return type cannot be overloaded}} 11*0a6a1f1dSLionel Sambuc // expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}} 12