diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/FixIt/fixit-unicode.c | 20 | ||||
-rw-r--r-- | test/Parser/objc-diag-width.mm | 8 |
2 files changed, 9 insertions, 19 deletions
diff --git a/test/FixIt/fixit-unicode.c b/test/FixIt/fixit-unicode.c index 2af5e08faa..d8e4592336 100644 --- a/test/FixIt/fixit-unicode.c +++ b/test/FixIt/fixit-unicode.c @@ -1,11 +1,10 @@ // RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -strict-whitespace %s -// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck -check-prefix=CHECK-MACHINE %s +// PR13312 struct Foo { int bar; }; -// PR13312 void test1() { struct Foo foo; (&foo)☃>bar = 42; @@ -13,21 +12,4 @@ void test1() { // Make sure we emit the fixit right in front of the snowman. // CHECK: {{^ \^}} // CHECK: {{^ ;}} - -// CHECK-MACHINE: fix-it:"{{.*}}fixit-unicode.c":{11:9-11:9}:";" -} - - -int printf(const char *, ...); -void test2() { - printf("∆: %d", 1L); -// CHECK: warning: format specifies type 'int' but the argument has type 'long' -// Don't crash emitting a fixit after the delta. -// CHECK: printf(" -// CHECK: : %d", 1L); -// Unfortunately, we can't actually check the location of the printed fixit, -// because different systems will render the delta differently (either as a -// character, or as <U+2206>.) The fixit should line up with the %d regardless. - -// CHECK-MACHINE: fix-it:"{{.*}}fixit-unicode.c":{23:16-23:18}:"%ld" } diff --git a/test/Parser/objc-diag-width.mm b/test/Parser/objc-diag-width.mm new file mode 100644 index 0000000000..3929ba2b09 --- /dev/null +++ b/test/Parser/objc-diag-width.mm @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 %s 2>&1 | FileCheck %s + +// Just shouldn't crash. -verify suppresses the crash, so don't use it. +// PR13417 +// CHECK-NOT: Assertion failed +@interface ExtensionActionContextMenu @end +@implementation ExtensionActionContextMenu +namespace { |