PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / member-decl-1.C
blobbe1ef85c48965bf3d795a2c8786cea4b1b6c6a4b
1 // { dg-options "-fdiagnostics-show-caret" }
3 struct A
5   int i,;  /* { dg-error "stray .,. at end of member declaration" }
6   { dg-begin-multiline-output "" }
7    int i,;
8         ^
9         -
10   { dg-end-multiline-output "" } */
12   int j  /* { dg-error "expected .;. at end of member declaration" }
13   { dg-begin-multiline-output "" }
14    int j
15        ^
16         ;
17   { dg-end-multiline-output "" } */