From e3917a3a6f3496f2de6b2e7a6faa6c4fa50cbb45 Mon Sep 17 00:00:00 2001 From: chrchr Date: Thu, 13 Jul 2023 08:43:26 +0200 Subject: [PATCH] Undo --- test/testgarbage.cpp | 10 ---------- test/testtokenize.cpp | 11 ----------- 2 files changed, 21 deletions(-) diff --git a/test/testgarbage.cpp b/test/testgarbage.cpp index 2cb0a031dbc..83219bacf76 100644 --- a/test/testgarbage.cpp +++ b/test/testgarbage.cpp @@ -995,16 +995,6 @@ class TestGarbage : public TestFixture { void garbageCode126() { ASSERT_THROW(checkCode("{ } float __ieee754_sinhf ( float x ) { float t , , do { gf_u ( jx ) { } ( 0 ) return ; ( ) { } t } ( 0x42b17180 ) { } }"), InternalError); - ASSERT_NO_THROW(checkCode("const char* v1\n" - "#ifdef VERSION\n" - " = VERSION\n" - "#endif\n" - ";\n" - "const char* v2\n" - "#ifdef VERSION\n" - " = \"V\" VERSION\n" - "#endif\n" - ";")); } void garbageCode127() { // #6667 diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index 5cd38e9ffcc..8facb72b740 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -7017,17 +7017,6 @@ class TestTokenizer : public TestFixture { "typedef int UStringCaseMapper(icu::BreakIterator* iter);\n"), InternalError, "There is an unknown macro here somewhere. Configuration is required. If U_ICU_ENTRY_POINT_RENAME is a macro then please configure it."); - - ASSERT_NO_THROW(tokenizeAndStringify("const char* v1\n" - "#ifdef VERSION\n" - " = VERSION\n" - "#endif\n" - ";\n" - "const char* v2\n" - "#ifdef VERSION\n" - " = \"V\" VERSION\n" - "#endif\n" - ";")); }