1 // RUN: %clang_cc1 -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 } 16 17 template<typename T> 18 struct X { 19 X(); 20 }; 21 22 void test() { 23 X<int>(); 24 } 25