summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/linkage-merge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/linkage-merge.cpp')
-rw-r--r--clang/test/Modules/linkage-merge.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/Modules/linkage-merge.cpp b/clang/test/Modules/linkage-merge.cpp
index dafb0090e7d..4e2ecef7d97 100644
--- a/clang/test/Modules/linkage-merge.cpp
+++ b/clang/test/Modules/linkage-merge.cpp
@@ -1,7 +1,13 @@
-// 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
OpenPOWER on IntegriCloud