summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruno Ricci <riccibrun@gmail.com>2019-04-18 15:34:03 +0000
committerBruno Ricci <riccibrun@gmail.com>2019-04-18 15:34:03 +0000
commitfae48cfc1b4cbd011d671aa0a6d82d50fb882852 (patch)
treedcb329b40e705f99682b011d0684dd16208a2f99 /test
parent637d886db5ee4a23f161dfaef64777d5542df86a (diff)
downloadclang-fae48cfc1b4cbd011d671aa0a6d82d50fb882852.tar.gz
[Sema][NFC] Mark DR705 (Suppressing argument-dependent lookup via parentheses) as done
It was supported since at least clang 3 so just mark it as done. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CXX/drs/dr7xx.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CXX/drs/dr7xx.cpp b/test/CXX/drs/dr7xx.cpp
index d02582b5b4..2760bdad0f 100644
--- a/test/CXX/drs/dr7xx.cpp
+++ b/test/CXX/drs/dr7xx.cpp
@@ -3,6 +3,19 @@
// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
+namespace dr705 { // dr705: yes
+ namespace N {
+ struct S {};
+ void f(S); // expected-note {{declared here}}
+ }
+
+ void g() {
+ N::S s;
+ f(s); // ok
+ (f)(s); // expected-error {{use of undeclared}}
+ }
+}
+
namespace dr727 { // dr727: partial
struct A {
template<typename T> struct C; // expected-note 6{{here}}