aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype7.C
blob: f757c9e10c186911e2dd484a78ef514c87097413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/34268
// { dg-do compile }

struct A
{
  __decltype (A);	// { dg-error "must be an expression" }
  __decltype (~A);	// { dg-error "must be an expression" }
};

struct B
{
  __typeof__ (B);
  __typeof__ (~B);	// { dg-error "expected primary-expression" }
};