]> granicus.if.org Git - clang/commitdiff
minor improvement to couple of tests.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 20 Apr 2012 17:07:07 +0000 (17:07 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 20 Apr 2012 17:07:07 +0000 (17:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155204 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/objc-literal-debugger-test.m
test/Rewriter/objc-modern-boxing.mm

index f6a6dfa853c04218d49f7510ae274ebcacb0d672..824c186526c3cbcd81424afc450370be2a693c80 100644 (file)
@@ -24,6 +24,8 @@ int main() {
   b = @(__objc_yes);
   b = @(__objc_no);
   b = @("hello");
+#else
+#error "boxed expressions not supported"
 #endif
 }
 
index 9a2ce681d578862d8817ba2965f0f4f5b6c1900d..19a6fcc1b46ade860694f7a5eb9c584a653cda57 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -E %s -o %t.mm
 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %t.mm -o - | FileCheck %s
 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %t.mm -o %t-rw.cpp
-// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp -Wno-attributes -Werror
+// RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp -Wno-attributes
 
 extern char *strdup(const char *str);
 extern "C" void *sel_registerName(const char *);