PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / conflict-markers-10.c
blob59e5a49f2bfe0ff97c1a3a85500c005fdf4bf445
1 /* { dg-options "-fdiagnostics-show-caret" } */
3 <<<<<<< HEAD /* { dg-error "conflict marker" } */
4 /* { dg-begin-multiline-output "" }
5 <<<<<<< HEAD
6 ^~~~~~~
7 { dg-end-multiline-output "" } */
9 extern int some_var;
11 ======= /* { dg-error "conflict marker" } */
12 /* { dg-begin-multiline-output "" }
13 =======
14 ^~~~~~~
15 { dg-end-multiline-output "" } */
17 extern short some_var; /* This line would lead to a warning due to the
18 duplicate name, but it is skipped when handling
19 the conflict marker. */
21 >>>>>>> Some commit message /* { dg-error "conflict marker" } */
22 /* { dg-begin-multiline-output "" }
23 >>>>>>>
24 ^~~~~~~
25 { dg-end-multiline-output "" } */