blob: 88783ce1a6b3d53479ff05b6313bdc51ac678f5b [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}
Douglas Gregor6a0166e2010-01-16 18:17:21 +000016
17template<typename T>
18struct X {
19 X();
20};
21
22void test() {
23 X<int>();
24}