]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/error4.C
AArch64: Improve costing of ctz
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / error4.C
CommitLineData
eda19906 1// PR c++/49156
4b2e63de 2// { dg-do compile { target c++11 } }
eda19906
JM
3
4template<typename T> T declval();
5
6template<typename T>
7struct S {
8
9 template<typename U>
10 static U get(const volatile T&);
11
12 template<typename U>
3d2f6864 13 static decltype(*declval<U>()) get(...); // { dg-error "operator*" }
eda19906 14
7d119905 15 typedef decltype(get<T>(declval<T>())) type; // { dg-error "" }
eda19906
JM
16};
17
18struct X { };
19
20S<X>::type x;
21
22// { dg-prune-output "note" }