summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/pr48187.mm
blob: 750710b1f240351bcb44f7f7486461603d5f136f (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
39
/* { dg-do compile } */

@interface A
{
  ]  /* { dg-error "xpected" } */
}
@end

@interface B
{
  ];  /* { dg-error "xpected" } */
}
@end

@interface C
{
  ];  /* { dg-error "xpected" } */
  int x;
}
@end

@interface D
{
  (
}  /* { dg-error "xpected" } */
@end

@interface E
{
  (;  /* { dg-error "xpected" } */
}
@end

@interface F
{
  (;  /* { dg-error "xpected" } */
  int x;
}
@end