blob: 55f959de0f027d426ff1e1095ac6f05e2c433f8e [file] [log] [blame]
Eli Friedman852871a2009-04-29 16:35:53 +00001// RUN: clang-cc -fsyntax-only -verify %s
2// PR4103 : Make sure we don't get a bogus unused expression warning
3class APInt {
4 char foo;
5};
6class APSInt : public APInt {
7 char bar;
8public:
9 APSInt &operator=(const APSInt &RHS);
10};
11
12APSInt& APSInt::operator=(const APSInt &RHS) {
13 APInt::operator=(RHS);
14 return *this;
15}