summaryrefslogtreecommitdiffstats
path: root/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-05-28 08:20:36 +0000
committerJohn McCall <rjmccall@apple.com>2010-05-28 08:20:36 +0000
commit1d0a5856d066f9030efbe3e0d9bbbb50ea597b99 (patch)
treefebfa262414dfd3cdf66ad3cef7bda8860667bf4 /test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp
parent42a4f66ffeb26e69b2f0ec873a5d41b0e39e634c (diff)
Add a new attribute on records, __attribute__((adl_invisible)), and define
the x86-64 __va_list_tag with this attribute. The attribute causes the affected type to behave like a fundamental type when considered by ADL. (x86-64 is the only target we currently provide with a struct-based __builtin_va_list) Fixes PR6762. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104941 91177308-0d34-0410-b5e6-96231b3b80d8
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.cpp11
1 files changed, 11 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 2bdf7cb0d7..0c905fbf32 100644
--- a/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp
+++ b/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp
@@ -97,3 +97,14 @@ namespace test5 {
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);
+ }
+}