summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/2010-02-09-DbgSelf.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/2010-02-09-DbgSelf.m')
-rw-r--r--clang/test/CodeGenObjC/2010-02-09-DbgSelf.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/2010-02-09-DbgSelf.m b/clang/test/CodeGenObjC/2010-02-09-DbgSelf.m
new file mode 100644
index 0000000..e09adac
--- /dev/null
+++ b/clang/test/CodeGenObjC/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
+