summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/unused.cpp
blob: 55f959de0f027d426ff1e1095ac6f05e2c433f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang-cc -fsyntax-only -verify %s
// PR4103 : Make sure we don't get a bogus unused expression warning
class APInt {
  char foo;
};
class APSInt : public APInt {
  char bar;
public:
  APSInt &operator=(const APSInt &RHS);
};

APSInt& APSInt::operator=(const APSInt &RHS) {
  APInt::operator=(RHS);
  return *this;
}
OpenPOWER on IntegriCloud