xref: /aosp_15_r20/external/clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/p3.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 // FIXME: embellish
4 
5 namespace test0 {
6   namespace A {
7     class Foo {
8     };
9 
10     void foo(const Foo &foo);
11   }
12 
13   class Test {
14     enum E { foo = 0 };
15 
test()16     void test() {
17       foo(A::Foo()); // expected-error {{not a function}}
18     }
19   };
20 }
21