[llvm-commits] [llvm] r110070 - /llvm/trunk/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm

Stuart Hastings stuart at apple.com
Mon Aug 2 15:09:53 PDT 2010


Author: stuart
Date: Mon Aug  2 17:09:53 2010
New Revision: 110070

URL: http://llvm.org/viewvc/llvm-project?rev=110070&view=rev
Log:
Testcase for r110043.  Radar 8246180.

Added:
    llvm/trunk/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm

Added: llvm/trunk/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendObjC%2B%2B/2010-08-02-NonPODObjectValue.mm?rev=110070&view=auto
==============================================================================
--- llvm/trunk/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm (added)
+++ llvm/trunk/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm Mon Aug  2 17:09:53 2010
@@ -0,0 +1,24 @@
+// RUN: not %llvmgcc %s -S -emit-llvm -o - |& FileCheck %s
+// This tests for a specific diagnostic in LLVM-GCC.
+// Clang compiles this correctly with no diagnostic,
+// ergo this test will fail with a Clang-based front-end.
+class TFENodeVector  {
+public:
+ TFENodeVector(const TFENodeVector& inNodeVector);
+ TFENodeVector();
+};
+
+ at interface TWindowHistoryEntry  {}
+ at property (assign, nonatomic) TFENodeVector targetPath;
+ at end
+
+ at implementation TWindowHistoryEntry
+ at synthesize targetPath;
+- (void) initWithWindowController {
+   TWindowHistoryEntry* entry;
+   TFENodeVector newPath;
+   // CHECK: setting a C++ non-POD object value is not implemented
+   entry.targetPath = newPath;
+   [entry setTargetPath:newPath];
+}
+ at end





More information about the llvm-commits mailing list