blob: 6fd108186afaf7c7c5b07b3f6bc37cb3d79ce27e [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Eli Friedman852871a2009-04-29 16:35:53 +00002// 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}