Eric Christopher | 3bf8310 | 2011-08-19 23:41:35 +0000 | [diff] [blame] | 1 | // PR1013 |
| 2 | // Check to make sure debug symbols use the correct name for globals and |
| 3 | // functions. Will not assemble if it fails to. |
Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -o - %s | FileCheck %s |
Eric Christopher | 3bf8310 | 2011-08-19 23:41:35 +0000 | [diff] [blame] | 5 | |
Eric Christopher | 19eb735 | 2011-08-19 23:46:18 +0000 | [diff] [blame] | 6 | // CHECK: f\01oo" |
Eric Christopher | 3bf8310 | 2011-08-19 23:41:35 +0000 | [diff] [blame] | 7 | int foo __asm__("f\001oo"); |
| 8 | |
| 9 | int bar() { |
| 10 | return foo; |
| 11 | } |