xref: /llvm-project/clang/test/Modules/linkage-merge.cpp (revision a534a31c5e73163eaa61560cd4e0c4c19bcbcfb1)
1fcc699aeSAndy Gibbs // RUN: rm -rf %t
2*47972afdSRichard Smith // RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s
37b51ae8eSRafael Espindola 
47b51ae8eSRafael Espindola #include "linkage-merge-bar.h"
57b51ae8eSRafael Espindola 
67b51ae8eSRafael Espindola static int f(int);
77b51ae8eSRafael Espindola int f(int);
83e01a7f0SRafael Espindola 
9fcc699aeSAndy Gibbs static void g(int);
109e2341d0SRichard Smith // expected-error@9 {{functions that differ only in their return type cannot be overloaded}}
119e2341d0SRichard Smith // expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}
12