summaryrefslogtreecommitdiff
path: root/test/CodeGenObjCXX/method-local-extern-mangle.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjCXX/method-local-extern-mangle.mm')
-rw-r--r--test/CodeGenObjCXX/method-local-extern-mangle.mm14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenObjCXX/method-local-extern-mangle.mm b/test/CodeGenObjCXX/method-local-extern-mangle.mm
new file mode 100644
index 000000000000..794075da1adb
--- /dev/null
+++ b/test/CodeGenObjCXX/method-local-extern-mangle.mm
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
+
+// CHECK: @gGlobals = external global
+
+@interface I
+- (int) Meth;
+@end
+
+@implementation I
+- (int) Meth {
+ extern int gGlobals;
+ return gGlobals;
+}
+@end