aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/using-decl-assignment-cache.cpp
diff options
context:
space:
mode:
authorSean Hunt <scshunt@csclub.uwaterloo.ca>2011-06-23 00:26:20 +0000
committerSean Hunt <scshunt@csclub.uwaterloo.ca>2011-06-23 00:26:20 +0000
commit4cc12c6e47a200cf166ac21efc09dd033f34c9b2 (patch)
treecfba0cfcb9be57d75ad5e9272f8f1b7bfb03aa49 /test/SemaCXX/using-decl-assignment-cache.cpp
parent4b4ba8b1d48f2fde34ecb17597d18490b3623c8a (diff)
Clean up the heart of the caching code and miss fewer edge cases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/using-decl-assignment-cache.cpp')
-rw-r--r--test/SemaCXX/using-decl-assignment-cache.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/SemaCXX/using-decl-assignment-cache.cpp b/test/SemaCXX/using-decl-assignment-cache.cpp
new file mode 100644
index 0000000000..a3a50e5d2c
--- /dev/null
+++ b/test/SemaCXX/using-decl-assignment-cache.cpp
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -std=c++0x -fsyntax-only %s
+
+struct D;
+struct B {
+ D& operator = (const D&);
+};
+struct D : B {
+ using B::operator=;
+};
+struct F : D {
+};
+
+void H () {
+ F f;
+ f = f;
+}