]> granicus.if.org Git - clang/commitdiff
Add a testcase for PR36268.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 8 Feb 2018 01:17:26 +0000 (01:17 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 8 Feb 2018 01:17:26 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324552 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/availability-dso-local.m [new file with mode: 0644]

diff --git a/test/CodeGenObjC/availability-dso-local.m b/test/CodeGenObjC/availability-dso-local.m
new file mode 100644 (file)
index 0000000..8ff41d8
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple thumbv7-apple-ios10.0.0 -emit-llvm -fvisibility hidden -w %s -o - | FileCheck %s
+
+// CHECK: @"OBJC_CLASS_$_a" = hidden global %struct._class_t
+
+__attribute__((availability(ios, introduced = 11.0))) @interface a @end
+    @implementation a @end