diff options
| -rw-r--r-- | compiler-rt/test/asan/TestCases/ill.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/TestCases/ill.cc b/compiler-rt/test/asan/TestCases/ill.cc index cad1584e3e9..887f506ddc0 100644 --- a/compiler-rt/test/asan/TestCases/ill.cc +++ b/compiler-rt/test/asan/TestCases/ill.cc @@ -24,7 +24,9 @@ int main(int argc, char **argv) { if (argc) __builtin_trap(); // Unreachable code to avoid confusing the Windows unwinder. +#ifdef _WIN32 SetErrorMode(0); +#endif } // CHECK0-NOT: ERROR: AddressSanitizer // CHECK1: ERROR: AddressSanitizer: {{ILL|illegal-instruction}} on unknown address {{0x0*}} |

