diff options
author | Reid Kleckner <rnk@google.com> | 2016-08-06 00:57:58 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-08-06 00:57:58 +0000 |
commit | c209664b073aadff3dbefb298e6803e1636abcb7 (patch) | |
tree | 269992920954e2f35ea20653c0e174800ce6d240 /compiler-rt/test/asan/TestCases/ill.cc | |
parent | 0765abf7723e2cbd907c48915f96a77f4ba0bee1 (diff) | |
download | bcm5719-llvm-c209664b073aadff3dbefb298e6803e1636abcb7.tar.gz bcm5719-llvm-c209664b073aadff3dbefb298e6803e1636abcb7.zip |
Try to fix the ill.cc test on Linux
llvm-svn: 277898
Diffstat (limited to 'compiler-rt/test/asan/TestCases/ill.cc')
-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*}} |