StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / Lexer / conflict-marker.c
blob45efdec82615a820d22c443d5ea7c2d8bdff48a6
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
7 <<<<<<< .mine // expected-error {{version control conflict marker in file}}
8 int x = 4;
9 |||||||
10 int x = 123;
11 =======
12 float x = 17;
13 >>>>>>> .r91107
15 // normal style.
16 <<<<<<< .mine // expected-error {{version control conflict marker in file}}
17 typedef int y;
18 =======
19 typedef struct foo *y;
20 >>>>>>> .r91107
23 y b;
26 int foo() {
27 y a = x;
28 return x + a;