Skip to content

Commit 46684cd

Browse files
committed
Fix a few mangled test files
These were mangled in the process of pulling them out of the msvc fork - null_deref_multiple_dlls.cpp -- extern "C" { got removed - throw_invoke_test.cpp -- #include "defines.h" is needed for ATTRIBUTE_NOINLINE, this test is unsupported on msvc so this was not caught
1 parent 70d50aa commit 46684cd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler-rt/test/asan/TestCases/Windows/null_deref_multiple_dlls.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ extern "C" {
2828
__declspec(dllexport) void foo1() {}
2929
}
3030
#elif defined(DLL2)
31+
extern "C" {
3132
ATTRIBUTE_NOINLINE
3233
static void NullDeref(int *ptr) {
3334
// CHECK: ERROR: AddressSanitizer: access-violation on unknown address

compiler-rt/test/asan/TestCases/throw_invoke_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// Investigate why it fails with NDK 21.
55
// UNSUPPORTED: android, MSVC
66

7+
8+
#include "defines.h"
79
#include <stdio.h>
810
static volatile int zero = 0;
911
inline void pretend_to_do_something(void *x) {

0 commit comments

Comments
 (0)