]> git.proxmox.com Git - rustc.git/blobdiff - src/compiler-rt/test/ubsan/TestCases/Misc/enum.cpp
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / compiler-rt / test / ubsan / TestCases / Misc / enum.cpp
index c95ce8270a9c32aba31b9ccf1bc5e52a511f5ed7..5dbecf161262730d6bec745c234eb3fefe1052b1 100644 (file)
@@ -1,6 +1,10 @@
 // RUN: %clangxx -fsanitize=enum %s -O3 -o %t && %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-PLAIN
 // RUN: %clangxx -fsanitize=enum -std=c++11 -DE="class E" %s -O3 -o %t && %run %t
-// RUN: %clangxx -fsanitize=enum -std=c++11 -DE="class E : bool" %s -O3 -o %t && %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-BOOL
+// RUN: %clangxx -fsanitize=enum -std=c++11 -DE="class E : bool" %s -O3 -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-BOOL
+
+// FIXME: UBSan fails to add the correct instrumentation code for some reason on
+// Windows.
+// XFAIL: win32
 
 enum E { a = 1 } e;
 #undef E