Fix the clang-wpa example.
[clang.git] / test / SemaCXX / unused.cpp
blob88783ce1a6b3d53479ff05b6313bdc51ac678f5b
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);
12 APSInt& APSInt::operator=(const APSInt &RHS) {
13 APInt::operator=(RHS);
14 return *this;
17 template<typename T>
18 struct X {
19 X();
22 void test() {
23 X<int>();