]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/unused.cpp
Update clang to 84175.
[FreeBSD/FreeBSD.git] / test / SemaCXX / unused.cpp
1 // RUN: clang-cc -fsyntax-only -verify %s
2 // PR4103 : Make sure we don't get a bogus unused expression warning
3 class APInt {
4   char foo;
5 };
6 class APSInt : public APInt {
7   char bar;
8 public:
9   APSInt &operator=(const APSInt &RHS);
10 };
11
12 APSInt& APSInt::operator=(const APSInt &RHS) {
13   APInt::operator=(RHS);
14   return *this;
15 }