// Check that the profiling counters and data we create have the linkage we expect
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-linkage.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s
// CHECK: @__profc_foo = private global
// CHECK: @__profd_foo = private global
// CHECK: @__profc_foo_weak = weak hidden global
// CHECK: @__profd_foo_weak = weak hidden global
// CHECK: @__profc_main = private global
// CHECK: @__profd_main = private global
// CHECK: @__profc_c_linkage.c_foo_internal = private global
// CHECK: @__profd_c_linkage.c_foo_internal = private global
void
void ;
void
static void ;
int
static void