blob: dc2ad759127ec9e55bd9728cf257b0f561072b48 [file] [log] [blame]
Andy Gibbsfcc699a2013-04-17 08:06:46 +00001// RUN: rm -rf %t
Richard Smith47972af2015-06-16 00:08:24 +00002// RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -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 Smith9e2341d2015-03-23 03:25:59 +000010// expected-error@9 {{functions that differ only in their return type cannot be overloaded}}
11// expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}