summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/ill.cc
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-08-06 00:57:58 +0000
committerReid Kleckner <rnk@google.com>2016-08-06 00:57:58 +0000
commitc209664b073aadff3dbefb298e6803e1636abcb7 (patch)
tree269992920954e2f35ea20653c0e174800ce6d240 /compiler-rt/test/asan/TestCases/ill.cc
parent0765abf7723e2cbd907c48915f96a77f4ba0bee1 (diff)
downloadbcm5719-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.cc2
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*}}
OpenPOWER on IntegriCloud