2013-04-17 16:06:46 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: %clang_cc1 -verify -fmodules -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-06 07:24:12 +08:00
|
|
|
// FIXME: Whether we notice the problem here depends on the order in which we
|
|
|
|
// happen to find lookup results for 'g'; LookupResult::resolveKind needs to
|
|
|
|
// be taught to prefer a visible result over a non-visible one.
|
|
|
|
//
|
2015-03-22 16:47:07 +08:00
|
|
|
// FIXME-error@-1 {{functions that differ only in their return type cannot be overloaded}}
|
|
|
|
// FIXME-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}
|
|
|
|
// expected-no-diagnostics
|