| 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 | |
| 16 | void test() { |
| 17 | foo(A::Foo()); // expected-error {{not a function}} |
| 18 | } |
| 19 | }; |
| 20 | } |
| 21 |