summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendObjC++
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2010-08-02 22:09:53 +0000
committerStuart Hastings <stuart@apple.com>2010-08-02 22:09:53 +0000
commit0e6e8858ff9756f24b9bb7b6125c30eae0123ad8 (patch)
treebcdfa6c5cc9ef3ed0b4ca38aeccd84bb31592749 /llvm/test/FrontendObjC++
parent44dc60ba138cdc9ed008b36d8ae3d0a372fa6b3a (diff)
downloadbcm5719-llvm-0e6e8858ff9756f24b9bb7b6125c30eae0123ad8.tar.gz
bcm5719-llvm-0e6e8858ff9756f24b9bb7b6125c30eae0123ad8.zip
Testcase for r110043. Radar 8246180.
llvm-svn: 110070
Diffstat (limited to 'llvm/test/FrontendObjC++')
-rw-r--r--llvm/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm24
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm b/llvm/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm
new file mode 100644
index 00000000000..216286302ca
--- /dev/null
+++ b/llvm/test/FrontendObjC++/2010-08-02-NonPODObjectValue.mm
@@ -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();
+};
+
+@interface TWindowHistoryEntry {}
+@property (assign, nonatomic) TFENodeVector targetPath;
+@end
+
+@implementation TWindowHistoryEntry
+@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];
+}
+@end
OpenPOWER on IntegriCloud