With addition of -Wno-address-of-temporary (thank you Doug) we can now

have rewriter test cases which pass the .cpp file through clang
and also test c++ aspect of clang.

llvm-svn: 96405
This commit is contained in:
Fariborz Jahanian 2010-02-16 22:13:48 +00:00
parent c98beb567c
commit be1896e944
1 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,9 @@
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: FileCheck -check-prefix LP --input-file=%t-rw.cpp %s
// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
// radar 7638400
// FIXME. Arrange this test's rewritten source to compile with clang
typedef void * id;
@interface X
@end
@ -14,8 +15,6 @@ static void enumerateIt(void (^block)(id, id, char *)) {
}
@end
// CHECK-LP: static void enumerateIt(void (*)(id, id, char *));
// radar 7651312
void apply(void (^block)(int));