// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s

// PR5290
int const f0();
void f0_test() {
  decltype(0, f0()) i = 0; // expected-warning{{expression result unused}}
  i = 0;
}

struct A { int a[1]; A() { } };
typedef A const AC;
int &f1(int*);
float &f2(int const*);

void test_f2() {
  float &fr = f2(AC().a);
}


Add test case for PR5290; this bug was fixed with the non-class rvalue de-cv-qualification fixes.
Add test case for PR5290; this bug was fixed with the non-class rvalue
de-cv-qualification fixes.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@108437 91177308-0d34-0410-b5e6-96231b3b80d8
