summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/debug-info-selector.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/debug-info-selector.m')
-rw-r--r--clang/test/CodeGenObjC/debug-info-selector.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/debug-info-selector.m b/clang/test/CodeGenObjC/debug-info-selector.m
new file mode 100644
index 0000000..67642ac
--- /dev/null
+++ b/clang/test/CodeGenObjC/debug-info-selector.m
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
+// Radar 8494540
+
+// CHECK: objc_selector
+@interface MyClass {
+}
+- (id)init;
+@end
+
+@implementation MyClass
+- (id) init
+{
+ return self;
+}
+@end