blob: 99917897fccf43769c55d0d49aa4f575980d7a56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// RUN: rm -rf %t
// RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s
#include "linkage-merge-bar.h"
static int f(int);
int f(int);
static void g(int);
// 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.
//
// 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
|