1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
5 // GCC produces a weak symbol for this because it matches mangled names.
6 // Different c++ ABIs may or may not mangle this, so we produce a strong
8 // CHECK: @zex = global i32
11 struct S { void foo(); };
13 // CHECK-LABEL: define void @_ZN1S3fooEv(
16 namespace bar { void zed() {} }
17 // CHECK-LABEL: define void @_ZN3bar3zedEv(
21 // CHECK-LABEL: define void @_Z3bahv(
24 extern "C" void baz() {}
25 // CHECK-LABEL: define weak void @baz(
29 // GCC produces a weak symbol for this one, but it doesn't look like a good
30 // idea to expose the mangling to the pragma unless we really have to.
31 // CHECK-LABEL: define void @_Z3baxv(