Fix linemap corruption after very wide source lines (PR c++/72803)
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / pr72803.C
blob0a9a390b9c33d523d49777b31b1dfaf98299c3e3
1 /* Long line, with a close brace at column 511, hence with the insertion
2    point for the missing semicolon at column 512.  */
3 class test {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }
4 # 1 "" 1
5 // The line directive appears to be necessary to trigger the ICE
6 // { dg-error "style of line directive is a GCC extension" "" { target *-*-* } .-2 }
8 /* Verify that we get the correct line and column for the diagnostic.  */
9 // { dg-error "512: expected .;. after class definition" "" { target *-*-* } 3 }