unused.cpp revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -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}
16