diff options
author | John McCall <rjmccall@apple.com> | 2010-01-26 06:04:06 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-26 06:04:06 +0000 |
commit | 91f61fc921e4abcaeb4a85b4e52f1db0cbdf2468 (patch) | |
tree | f14f7e273b91f84f3dad80e3bcdbac6e2fb03b35 /clang/test/SemaCXX/using-decl-1.cpp | |
parent | 273735bc5a50971a5902bb1695c8f5af279808c5 (diff) | |
download | bcm5719-llvm-91f61fc921e4abcaeb4a85b4e52f1db0cbdf2468.tar.gz bcm5719-llvm-91f61fc921e4abcaeb4a85b4e52f1db0cbdf2468.zip |
Allow ADL to find functions imported by using decls. Leave wordy comment
about interaction between ADL and default arguments. Shrug shoulders, commit.
llvm-svn: 94524
Diffstat (limited to 'clang/test/SemaCXX/using-decl-1.cpp')
-rw-r--r-- | clang/test/SemaCXX/using-decl-1.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/using-decl-1.cpp b/clang/test/SemaCXX/using-decl-1.cpp index e8a7d70976e..eb41e6630fe 100644 --- a/clang/test/SemaCXX/using-decl-1.cpp +++ b/clang/test/SemaCXX/using-decl-1.cpp @@ -60,3 +60,20 @@ namespace P { g(f); } } + +// Make sure that ADL can find names brought in by using decls. +namespace test0 { + namespace ns { + class Foo {}; + + namespace inner { + void foo(char *); // expected-note {{no known conversion}} + } + + using inner::foo; + } + + void test(ns::Foo *p) { + foo(*p); // expected-error {{no matching function for call to 'foo'}} + } +} |