aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/fixit-unicode.c
blob: d8e459233629bd2417592308abcce054c1dd1661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -strict-whitespace %s
// PR13312

struct Foo {
  int bar;
};

void test1() {
  struct Foo foo;
  (&foo)>bar = 42;
// CHECK: error: expected ';' after expression
// Make sure we emit the fixit right in front of the snowman.
// CHECK: {{^        \^}}
// CHECK: {{^        ;}}
}