Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Lexer / conflict-marker.c
blob36310187a9cac0dcb797394ff03927dd082c8311
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
3 // Test that we recover gracefully from conflict markers left in input files.
4 // PR5238
6 // diff3 style expected-error@+1 {{version control conflict marker in file}}
7 <<<<<<< .mine
8 int x = 4;
9 |||||||
10 int x = 123;
11 =======
12 float x = 17;
13 >>>>>>> .r91107
15 // normal style expected-error@+1 {{version control conflict marker in file}}
16 <<<<<<< .mine
17 typedef int y;
18 =======
19 typedef struct foo *y;
20 >>>>>>> .r91107
22 // Perforce style expected-error@+1 {{version control conflict marker in file}}
23 >>>> ORIGINAL conflict-marker.c#6
24 int z = 1;
25 ==== THEIRS conflict-marker.c#7
26 int z = 0;
27 ==== YOURS conflict-marker.c
28 int z = 2;
29 <<<<
32 y b;
35 int foo(void) {
36 y a = x;
37 return x + a - z;
40 <<<<<<<>>>>>>> // expected-error {{expected identifier}}