summaryrefslogtreecommitdiffstats
path: root/test/Modules/linkage-merge.cpp
blob: 4e2ecef7d973982296da0c210000095c94c0b721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// FIXME: we should be able to put these in the .h file :-(
// expected-note {{target of using declaration}}
// expected-note {{using declaration}}

#include "linkage-merge-bar.h"

static int f(int);
int f(int);

static void g(int); // expected-error {{declaration conflicts with target of using declaration already in scope}}

// RUN: rm -rf %t
// RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s
OpenPOWER on IntegriCloud