]> granicus.if.org Git - clang/commitdiff
Add a test case for PR17575.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 5 Mar 2014 01:49:35 +0000 (01:49 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 5 Mar 2014 01:49:35 +0000 (01:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202922 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/using-decl-pr17575.cpp [new file with mode: 0644]

diff --git a/test/SemaCXX/using-decl-pr17575.cpp b/test/SemaCXX/using-decl-pr17575.cpp
new file mode 100644 (file)
index 0000000..7fe6041
--- /dev/null
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
+
+void bar();
+namespace foo { using ::bar; }
+using foo::bar;
+void bar() {}
+
+void f();
+using ::f;
+void f() {}