Diabolical hack to make a test compatible with clang. (Thanks to Dale!) Radar 8246180.
llvm-svn: 110081
diff --git a/llvm/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm b/llvm/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm
index 2162863..298844e 100644
--- a/llvm/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm
+++ b/llvm/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm
@@ -18,6 +18,9 @@
TWindowHistoryEntry* entry;
TFENodeVector newPath;
// CHECK: setting a C++ non-POD object value is not implemented
+#ifdef __clang__
+#error setting a C++ non-POD object value is not implemented
+#endif
entry.targetPath = newPath;
[entry setTargetPath:newPath];
}