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