summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/attr-minsize.m
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2012-11-01 23:55:47 +0000
committerQuentin Colombet <qcolombet@apple.com>2012-11-01 23:55:47 +0000
commit4e172067b2237dbe053c95a89945e03f70b75dd6 (patch)
treeca78ca54c139d74cefc74115a90a86f7afd9b0c1 /clang/test/CodeGenObjC/attr-minsize.m
parent3d5af279b1790620c9554cf216903968643055cb (diff)
downloadbcm5719-llvm-4e172067b2237dbe053c95a89945e03f70b75dd6.tar.gz
bcm5719-llvm-4e172067b2237dbe053c95a89945e03f70b75dd6.zip
Update the front end to use minsize attribute
llvm-svn: 167266
Diffstat (limited to 'clang/test/CodeGenObjC/attr-minsize.m')
-rw-r--r--clang/test/CodeGenObjC/attr-minsize.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/attr-minsize.m b/clang/test/CodeGenObjC/attr-minsize.m
new file mode 100644
index 00000000000..f46107eca61
--- /dev/null
+++ b/clang/test/CodeGenObjC/attr-minsize.m
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+
+@interface Test
+- (void)test;
+@end
+
+@implementation Test
+- (void)test __attribute__((minsize)) {
+ // CHECK: define{{.*}}Test test
+ // CHECK: minsize
+}
+@end
OpenPOWER on IntegriCloud