From 13113d51c2311f125e93bd73bfb83b62ca75441d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 8 Feb 2018 01:17:26 +0000 Subject: [PATCH] Add a testcase for PR36268. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324552 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenObjC/availability-dso-local.m | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CodeGenObjC/availability-dso-local.m diff --git a/test/CodeGenObjC/availability-dso-local.m b/test/CodeGenObjC/availability-dso-local.m new file mode 100644 index 0000000000..8ff41d87f1 --- /dev/null +++ b/test/CodeGenObjC/availability-dso-local.m @@ -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 -- 2.40.0