blob: 216286302ca17d41c4c7fa544b903e4f0d267385 [file] [log] [blame]
Stuart Hastings32a9e832010-08-02 22:09:53 +00001// RUN: not %llvmgcc %s -S -emit-llvm -o - |& FileCheck %s
2// This tests for a specific diagnostic in LLVM-GCC.
3// Clang compiles this correctly with no diagnostic,
4// ergo this test will fail with a Clang-based front-end.
5class TFENodeVector {
6public:
7 TFENodeVector(const TFENodeVector& inNodeVector);
8 TFENodeVector();
9};
10
11@interface TWindowHistoryEntry {}
12@property (assign, nonatomic) TFENodeVector targetPath;
13@end
14
15@implementation TWindowHistoryEntry
16@synthesize targetPath;
17- (void) initWithWindowController {
18 TWindowHistoryEntry* entry;
19 TFENodeVector newPath;
20 // CHECK: setting a C++ non-POD object value is not implemented
21 entry.targetPath = newPath;
22 [entry setTargetPath:newPath];
23}
24@end