summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-13 17:33:56 +0000
committerChris Lattner <sabre@nondot.org>2010-04-13 17:33:56 +0000
commit8d269dc329e2f76670cc9a33ecdad76c69f83c7d (patch)
treea4057a36fd19d240f9bf3339c665ae8f94607fb4 /clang/test
parent8a2dae57e229dc0b6e3ae6582709f96696483143 (diff)
downloadbcm5719-llvm-8d269dc329e2f76670cc9a33ecdad76c69f83c7d.tar.gz
bcm5719-llvm-8d269dc329e2f76670cc9a33ecdad76c69f83c7d.zip
make the rewriter add a #ifndef around the #define of __attribute__.
Without it, there is no reason for a compiler that supports it to emit the dead static globals that the rewriter labels attribute(used). llvm-svn: 101149
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Rewriter/rewrite-super-message.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Rewriter/rewrite-super-message.mm b/clang/test/Rewriter/rewrite-super-message.mm
index 036aa1bb318..be0a963c55d 100644
--- a/clang/test/Rewriter/rewrite-super-message.mm
+++ b/clang/test/Rewriter/rewrite-super-message.mm
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
-// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"id=struct objc_object *" -D"Class=struct objc_class *" -D"SEL=void*" -D"__declspec(X)=" -emit-llvm -o - %t-rw.cpp | FileCheck %t-rw.cpp
+// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -DKEEP_ATTRIBUTES -D"id=struct objc_object *" -D"Class=struct objc_class *" -D"SEL=void*" -D"__declspec(X)=" -emit-llvm -o - %t-rw.cpp | FileCheck %t-rw.cpp
// radar 7738453
void *sel_registerName(const char *);
OpenPOWER on IntegriCloud