summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2010-02-09-DbgSelf.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/2010-02-09-DbgSelf.m')
-rw-r--r--test/CodeGen/2010-02-09-DbgSelf.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/2010-02-09-DbgSelf.m b/test/CodeGen/2010-02-09-DbgSelf.m
new file mode 100644
index 0000000..e09adac
--- /dev/null
+++ b/test/CodeGen/2010-02-09-DbgSelf.m
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -x objective-c -emit-llvm -g < %s | grep "\"self\", metadata"
+// Test to check that "self" argument is assigned a location.
+
+@interface Foo
+-(void) Bar: (int)x ;
+@end
+
+
+@implementation Foo
+-(void) Bar: (int)x
+{
+}
+@end
+
OpenPOWER on IntegriCloud