summaryrefslogtreecommitdiffstats
path: root/test/Modules/linkage-merge.cpp
blob: 664716d3bed7de92bc02f3f1c2a78202bf7e167a (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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);
// expected-error@-1 {{functions that differ only in their return type cannot be overloaded}}
// expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}
OpenPOWER on IntegriCloud