blob: 88783ce1a6b3d53479ff05b6313bdc51ac678f5b [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Eli Friedmandebdc1d2009-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 Gregor27aa77a2010-01-16 18:17:21 +000016
17template<typename T>
18struct X {
19 X();
20};
21
22void test() {
23 X<int>();
24}