Skip to content

Commit 22d686b

Browse files
committed
update test cases
1 parent 5b2c6e5 commit 22d686b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

test/Interop/lit.local.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ config.substitutions.insert(0, ('%target-interop-build-clangxx', '%target-clangx
2929

3030
# Test parsing of the generated C++ header in different C++ language modes.
3131
config.substitutions.insert(0, ('%check-interop-cxx-header-in-clang\(([^)]+)\)',
32-
SubstituteCaptures(r'%check-cxx-header-in-clang -std=c++14 -Wno-padded -Wno-c11-extensions \1 && '
33-
r'%check-cxx-header-in-clang -std=c++17 -Wno-padded -Wno-c11-extensions \1 && '
34-
r'%check-cxx-header-in-clang -std=c++20 -Wno-padded -Wno-c11-extensions \1')))
32+
SubstituteCaptures(r'%check-cxx-header-in-clang -std=c++14 -Wno-padded -Wno-c11-extensions -D_LIBCPP_CSTDLIB \1 && '
33+
r'%check-cxx-header-in-clang -std=c++17 -Wno-padded -Wno-c11-extensions -D_LIBCPP_CSTDLIB \1 && '
34+
r'%check-cxx-header-in-clang -std=c++20 -Wno-padded -Wno-c11-extensions -D_LIBCPP_CSTDLIB \1')))
3535

3636
# Test parsing of the generated C header in different C language modes.
3737
config.substitutions.insert(0, ('%check-interop-c-header-in-clang\(([^)]+)\)',

test/PrintAsCxx/empty.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
// CHECK-NEXT: #include <cstddef>
3030
// CHECK-NEXT: #include <cstdbool>
3131
// CHECK-NEXT: #include <cstring>
32+
// CHECK-NEXT: #include <new>
3233
// CHECK-NEXT: #include <stdlib.h>
3334
// CHECK-NEXT: #if defined(_WIN32)
3435
// CHECK-NEXT: #include <malloc.h>

test/PrintAsObjC/empty.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
// RUN: %check-in-clang -std=c99 %t/empty.h
66
// RUN: %check-in-clang -std=c11 %t/empty.h
7-
// RUN: %check-cxx-header-in-clang -x objective-c++-header -std=c++11 %t/empty.h
8-
// RUN: %check-cxx-header-in-clang -x objective-c++-header -std=c++14 %t/empty.h
7+
// RUN: %check-cxx-header-in-clang -x objective-c++-header -std=c++11 -D_LIBCPP_CSTDLIB %t/empty.h
8+
// RUN: %check-cxx-header-in-clang -x objective-c++-header -std=c++14 -D_LIBCPP_CSTDLIB %t/empty.h
99

1010
// RUN: %check-in-clang -std=c99 -fno-modules -Qunused-arguments %t/empty.h
1111
// RUN: not %check-in-clang -I %S/Inputs/clang-headers %t/empty.h 2>&1 | %FileCheck %s --check-prefix=CUSTOM-OBJC-PROLOGUE

0 commit comments

Comments
 (0)