summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr33839.C
blob: 0a6610ac995335ec3a754313b3dd59a123954d6e (plain)
1
2
3
4
5
6
7
8
// { dg-options -std=c++0x }
template<int> struct A;

void foo()
{
  __decltype A<0>; // { dg-error "invalid declarator|expected" }
  __decltype (A<0>); // { dg-error "must be an expression" }
}