OSDN Git Service

* call.c (type_decays_to): Call cv_unqualified for non-class type.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-deduce2.C
1 // Test that cv-quals are dropped from non-class return type
2 // { dg-options "-std=c++0x" }
3
4 template <class T, class U>
5 struct assert_same_type;
6 template <class T>
7 struct assert_same_type<T,T> { };
8
9 struct A
10 {
11   int i;
12 };
13
14 extern const int i;
15 assert_same_type <decltype ([]{ return i; }()), int> x;