Thanks a lot to Richard Smith for the suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178825
91177308-0d34-0410-b5e6-
96231b3b80d8
+#include <linkage-merge-foo.h>
+
+using ::g;
int f();
+static int g(int);
-// RUN: rm -rf %t
-// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs %s
+// 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