summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/assign-operator.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-28 01:04:34 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-28 01:04:34 +0000
commitac51650d054c2eaada48d54dba52c08153d2daed (patch)
tree160e66f96bbf8603534edd7f09c6e8b9990eb8b7 /test/CodeGenCXX/assign-operator.cpp
parent55733de16f492dadbf5f4d2809d6c610ba6d86ae (diff)
Be sure to build a dependent expression when we see
a binary operator involving a dependently-typed overload set. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/assign-operator.cpp')
-rw-r--r--test/CodeGenCXX/assign-operator.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/assign-operator.cpp b/test/CodeGenCXX/assign-operator.cpp
index c4b64e6e51..e19df272c9 100644
--- a/test/CodeGenCXX/assign-operator.cpp
+++ b/test/CodeGenCXX/assign-operator.cpp
@@ -17,3 +17,14 @@ void f(int i, int j) {
// CHECK: ret
(i += j) = 17;
}
+
+// Taken from g++.old-deja/g++.jason/net.C
+namespace test1 {
+ template <class T> void fn (T t) { }
+ template <class T> struct A {
+ void (*p)(T);
+ A() { p = fn; }
+ };
+
+ A<int> a;
+}