summaryrefslogtreecommitdiff
path: root/dragonegg/test/validator/c++/2006-11-20-GlobalSymbols.cpp
blob: 818f740418eab1405d2be66af1f2da7a0d01f894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %eggdragon -O0 -g -S %s -fplugin-arg-dragonegg-emit-ir -o - | FileCheck %s
/// PR1013
// Check to make sure debug symbols use the correct name for globals and
// functions.

// CHECK: @"\01f\01oo" = unnamed_addr global i32 0
// CHECK: metadata !"foo"{{.*}} @"\01f\01oo",

int foo __asm__("f\001oo");

int bar() {
  return foo;
}