]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Modules/linkage-merge.cpp
Vendor import of clang trunk r238337:
[FreeBSD/FreeBSD.git] / test / Modules / linkage-merge.cpp
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s
3
4 #include "linkage-merge-bar.h"
5
6 static int f(int);
7 int f(int);
8
9 static void g(int);
10 // FIXME: Whether we notice the problem here depends on the order in which we
11 // happen to find lookup results for 'g'; LookupResult::resolveKind needs to
12 // be taught to prefer a visible result over a non-visible one.
13 //
14 // expected-error@9 {{functions that differ only in their return type cannot be overloaded}}
15 // expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}