diff options
| author | John McCall <rjmccall@apple.com> | 2011-10-28 01:04:34 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-10-28 01:04:34 +0000 |
| commit | 9a43e12117fdb6eb76b6f9e5863a6fe95a640b86 (patch) | |
| tree | 43ca2dbb071880d32b596a558e7aafe521d03fc8 /clang/test | |
| parent | 16dab1badaa3c92951554f8c5df1d4a405b85140 (diff) | |
| download | bcm5719-llvm-9a43e12117fdb6eb76b6f9e5863a6fe95a640b86.tar.gz bcm5719-llvm-9a43e12117fdb6eb76b6f9e5863a6fe95a640b86.zip | |
Be sure to build a dependent expression when we see
a binary operator involving a dependently-typed overload set.
llvm-svn: 143172
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGenCXX/assign-operator.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/assign-operator.cpp b/clang/test/CodeGenCXX/assign-operator.cpp index c4b64e6e51a..e19df272c9a 100644 --- a/clang/test/CodeGenCXX/assign-operator.cpp +++ b/clang/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; +} |

