Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/decltype13.C

raw
1 // PR c++/34269
2 // { dg-do compile }
3
4 void
5 f1 ()
6 {
7 __decltype; // { dg-error "expected" }
8 }
9
10 void
11 f2 ()
12 {
13 __decltype (; // { dg-error "expected" }
14 }
15
16 void
17 f3 ()
18 {
19 __decltype (); // { dg-error "expected" }
20 }
21
22 void
23 f4 ()
24 {
25 __typeof__; // { dg-error "expected" }
26 }
27
28 void
29 f5 ()
30 {
31 __typeof__ (; // { dg-error "expected" }
32 }
33
34 void
35 f6 ()
36 {
37 __typeof__ (); // { dg-error "expected" }
38 }