116d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopher// PR1013 216d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopher// Check to make sure debug symbols use the correct name for globals and 316d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopher// functions. Will not assemble if it fails to. 416d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopher// RUN: %clang_cc1 -emit-llvm -g -o - %s | FileCheck %s 516d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopher 651abac1f2cbc10cf1bf38727e05ea9716b4c79a3Eric Christopher// CHECK: f\01oo" 716d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopherint foo __asm__("f\001oo"); 816d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopher 916d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopherint bar() { 1016d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopher return foo; 1116d482ebe8abb5a8eaf5d3407e90c96e6afa397bEric Christopher} 12