diff options
Diffstat (limited to 'test/SemaCXX/using-decl-assignment-cache.cpp')
-rw-r--r-- | test/SemaCXX/using-decl-assignment-cache.cpp | 16 |
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; +} |