1 // RUN: %clang_cc1 -fsyntax-only -verify %s
10 void foo(const Foo
&foo
);
17 foo(A::Foo()); // expected-error {{not a function}}
22 // If X contains [...] then Y is empty.
23 // - a declaration of a class member
24 namespace test_adl_suppression_by_class_member
{
27 void f(T
); // expected-note {{declared here}}
33 f(t
); // expected-error {{too many arguments}}
38 // - a block-scope function declaration that is not a using-declaration
39 namespace test_adl_suppression_by_block_scope
{
44 namespace M
{ void f(int); } // expected-note 2{{candidate}}
53 extern void f(char); // expected-note {{passing argument to parameter here}}
54 f(s
); // expected-error {{no viable conversion from 'N::S' to 'char'}}
59 extern void f(char); // expected-note {{candidate}}
61 f(s
); // expected-error {{no matching function}}
67 extern void f(char); // expected-note {{candidate}}
68 f(s
); // expected-error {{no matching function}}
73 // - a declaration that is neither a function nor a function template
74 namespace test_adl_suppression_by_non_function
{
82 f(s
); // expected-error {{too many arguments}}