summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-27 21:05:07 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-27 21:05:07 +0000
commit15448f8d238c591ce640da28aacc76311da576a6 (patch)
tree2de08291062350033ec86c2b3188a7e5ec82d973 /clang/test
parent3a4be9df4a0ad0075f7dacf5af946be2b9653f2f (diff)
downloadbcm5719-llvm-15448f8d238c591ce640da28aacc76311da576a6.tar.gz
bcm5719-llvm-15448f8d238c591ce640da28aacc76311da576a6.zip
Improve support for overloaded operator templates.
llvm-svn: 74390
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaTemplate/operator-template.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/operator-template.cpp b/clang/test/SemaTemplate/operator-template.cpp
index 3d041ec13a3..d65a2781c87 100644
--- a/clang/test/SemaTemplate/operator-template.cpp
+++ b/clang/test/SemaTemplate/operator-template.cpp
@@ -5,6 +5,8 @@ template<class X>struct A{typedef X Y;};
template<class X>bool operator==(A<X>,typename A<X>::Y);
int a(A<int> x) { return operator==(x,1); }
+int a0(A<int> x) { return x == 1; }
+
// FIXME: The diagnostic here is a bit messed up
template<class X>struct B{typedef X Y;};
template<class X>bool operator==(B<X>*,typename B<X>::Y); // \
OpenPOWER on IntegriCloud