diff options
Diffstat (limited to 'test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp')
| -rw-r--r-- | test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp b/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp index 0e262f3eb1d6..0c905fbf325d 100644 --- a/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp +++ b/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp @@ -86,3 +86,25 @@ namespace P { } } +namespace test5 { + namespace NS { + struct A; + void foo(void (*)(A&)); + } + void bar(NS::A& a); + + void test() { + foo(&bar); + } +} + +// PR6762: __builtin_va_list should be invisible to ADL on all platforms. +void test6_function(__builtin_va_list &argv); +namespace test6 { + void test6_function(__builtin_va_list &argv); + + void test() { + __builtin_va_list args; + test6_function(args); + } +} |
