blob: 664716d3bed7de92bc02f3f1c2a78202bf7e167a [file] [log] [blame]
Andy Gibbsfcc699a2013-04-17 08:06:46 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s
Rafael Espindola7b51ae82013-04-04 04:40:17 +00003
4#include "linkage-merge-bar.h"
5
6static int f(int);
7int f(int);
Rafael Espindola3e01a7f2013-04-05 00:52:14 +00008
Andy Gibbsfcc699a2013-04-17 08:06:46 +00009static void g(int);
Richard Smith18819302014-02-06 01:31:33 +000010// expected-error@-1 {{functions that differ only in their return type cannot be overloaded}}
11// expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}