Devang Patel | a92d613 | 2010-02-15 18:08:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x objective-c -emit-llvm -g < %s | grep subprogram | grep "i32 9" |
2 | // Test to check that subprogram start location. | ||||
3 | |||||
4 | @interface Foo | ||||
5 | -(int) barMethod; | ||||
6 | @end | ||||
7 | |||||
8 | @implementation Foo | ||||
9 | -(int) barMethod { | ||||
10 | int i = 0; | ||||
11 | int j = 1; | ||||
12 | int k = 1; | ||||
13 | return i + j + k; | ||||
14 | } | ||||
15 | @end |