xref: /aosp_15_r20/external/clang/test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // PR1013
2*67e74705SXin Li // Check to make sure debug symbols use the correct name for globals and
3*67e74705SXin Li // functions.  Will not assemble if it fails to.
4*67e74705SXin Li // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -o - %s | FileCheck %s
5*67e74705SXin Li 
6*67e74705SXin Li // CHECK: f\01oo"
7*67e74705SXin Li int foo __asm__("f\001oo");
8*67e74705SXin Li 
bar()9*67e74705SXin Li int bar() {
10*67e74705SXin Li   return foo;
11*67e74705SXin Li }
12