aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr62314-2.C
blob: deb0cb7b69dfa47b9917c9d62f3505f81bff3743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-options "-fdiagnostics-show-caret" }

template<class T>
class a {} // { dg-error "11: expected .;. after class definition" }
class temp {};
a<temp> b;
struct b {
} // { dg-error "2: expected .;. after struct definition" }

/* Verify that we emit fixit hints.  */

/* { dg-begin-multiline-output "" }
 class a {}
           ^
           ;
   { dg-end-multiline-output "" } */

/* { dg-begin-multiline-output "" }
 }
  ^
  ;
   { dg-end-multiline-output "" } */