2013-04-17 16:06:46 +08:00
|
|
|
// RUN: rm -rf %t
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s
|
2013-04-04 12:40:17 +08:00
|
|
|
|
|
|
|
#include "linkage-merge-bar.h"
|
|
|
|
|
|
|
|
static int f(int);
|
|
|
|
int f(int);
|
2013-04-05 08:52:14 +08:00
|
|
|
|
2013-04-17 16:06:46 +08:00
|
|
|
static void g(int);
|
2015-03-23 11:25:59 +08:00
|
|
|
// expected-error@9 {{functions that differ only in their return type cannot be overloaded}}
|
|
|
|
// expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}
|