summaryrefslogtreecommitdiffstats
path: root/test/Rewriter/properties.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Rewriter/properties.m')
-rw-r--r--test/Rewriter/properties.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Rewriter/properties.m b/test/Rewriter/properties.m
index 44c55b1..ca4a199 100644
--- a/test/Rewriter/properties.m
+++ b/test/Rewriter/properties.m
@@ -1,4 +1,7 @@
-// RUN: %clang_cc1 -rewrite-objc %s -o -
+// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
+// RUN: %clang_cc1 -fsyntax-only -fms-extensions -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
+
+void *sel_registerName(const char *);
@interface Foo {
int i;
@@ -35,7 +38,7 @@
@implementation Bar
-static int func(int i);
+static int func(int i) { return 0; }
- (void)baz {
Foo *obj1, *obj2;
OpenPOWER on IntegriCloud