aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype13.C
blob: 8e6c6d2bf71ec812eb0f5edb0a5d06e5822d92ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// PR c++/34269
// { dg-do compile }

void
f1 ()
{
  __decltype;		// { dg-error "expected" }
}

void
f2 ()
{
  __decltype (;		// { dg-error "expected" }
}

void
f3 ()
{
  __decltype ();	// { dg-error "expected" }
}

void
f4 ()
{
  __typeof__;		// { dg-error "expected" }
}

void
f5 ()
{
  __typeof__ (;		// { dg-error "expected" }
}

void
f6 ()
{
  __typeof__ ();	// { dg-error "expected" }
}