Daniel Dunbar | 3573b2c | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -g -S -o %t %s |
Devang Patel | b904f39 | 2010-08-25 17:32:22 +0000 | [diff] [blame] | 2 | // RUN: not grep "001-[F bar" %t |
3 | // Linkage name should not use 001 prefix in debug info. | ||||
Devang Patel | b78b645 | 2009-07-13 21:20:20 +0000 | [diff] [blame] | 4 | |
5 | @interface F | ||||
6 | -(int) bar; | ||||
7 | @end | ||||
8 | |||||
9 | @implementation F | ||||
10 | -(int) bar { | ||||
11 | return 42; | ||||
12 | } | ||||
13 | @end | ||||
14 | |||||
15 | extern int f(F *fn) { | ||||
16 | return [fn bar]; | ||||
17 | } | ||||
18 |