From 9f4d86389f99c5d66664382add340a2ea19ad134 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Sat, 22 Nov 2008 22:39:41 +0000 Subject: [PATCH] Fix test cases broken by quote normalization in diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59888 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/init.c | 2 +- test/SemaCXX/condition.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Sema/init.c b/test/Sema/init.c index ff48b8f528..72586b13c4 100644 --- a/test/Sema/init.c +++ b/test/Sema/init.c @@ -15,7 +15,7 @@ int *h = &x; int test() { int a[10]; -int b[10] = a; // expected-error {{initialization with "{...}" expected}} +int b[10] = a; // expected-error {{initialization with '{...}' expected}} int +; // expected-error {{expected identifier or '('}} expected-error {{parse error}} } diff --git a/test/SemaCXX/condition.cpp b/test/SemaCXX/condition.cpp index ee9cf1a37e..f4a6debd2d 100644 --- a/test/SemaCXX/condition.cpp +++ b/test/SemaCXX/condition.cpp @@ -6,7 +6,7 @@ void test() { if (int x=0) ++x; typedef int arr[10]; - while (arr x=0) ; // expected-error: {{an array type is not allowed here}} expected-error: {{initialization with "{...}" expected for array}} + while (arr x=0) ; // expected-error: {{an array type is not allowed here}} expected-error: {{initialization with '{...}' expected for array}} while (int f()=0) ; // expected-error: {{a function type is not allowed here}} struct S {} s; -- 2.40.0