Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / parse / comma2.C
blob0f405876d5753759c74aa7eaf78cffd63d47b0ba
1 // { dg-do compile }
3 // Copyright (C) 2005 Free Software Foundation, Inc.
5 // PR c++/24907 [3.4/4.0/4.1/4.2 Regression] "int x, ;" accepted
7 int x;
8 int y,; /* { dg-error "expected" } */
10 int main()
12   int a;
13   int b,;    /* { dg-error "expected" } */
14   int c,d;
15   int e,f,;  /* { dg-error "expected" } */
16   int g,h,i;
17   int j,k,l,;/* { dg-error "expected" } */
18   int m,,,n; /* { dg-error "expected" } */