2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-04-30 00:35:53 +08:00
|
|
|
// 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;
|
|
|
|
}
|
2010-01-17 02:17:21 +08:00
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
struct X {
|
|
|
|
X();
|
|
|
|
};
|
|
|
|
|
|
|
|
void test() {
|
|
|
|
X<int>();
|
|
|
|
}
|