blob: da47ed0c1222fbf3c3a6d329c4116d2a38cb9468 [file] [log] [blame]
Duncan Sands79040682010-11-25 21:48:20 +00001// RUN: not %llvmgcc %s -S -o - |& FileCheck %s
Stuart Hastings0e6e8852010-08-02 22:09:53 +00002// 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
Stuart Hastings460a3562010-08-02 23:29:03 +000021#ifdef __clang__
22#error setting a C++ non-POD object value is not implemented
23#endif
Stuart Hastings0e6e8852010-08-02 22:09:53 +000024 entry.targetPath = newPath;
25 [entry setTargetPath:newPath];
26}
27@end