[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / clang / test / CodeGenCXX / mangle-std-externc.cpp
blobf0c7d69eed469c50e7e936ae4b2953b495d707e1
1 // RUN: %clang_cc1 %s -DNS=std -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s --check-prefix=CHECK-STD
2 // RUN: %clang_cc1 %s -DNS=n -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s --check-prefix=CHECK-N
4 // _ZNSt1DISt1CE1iE = std::D<std::C>::i
5 // CHECK-STD: @_ZNSt1DISt1CE1iE =
7 // _ZN1n1DINS_1CEE1iE == n::D<n::C>::i
8 // CHECK-N: @_ZN1n1DINS_1CEE1iE =
10 namespace NS {
11 extern "C" {
12 class C {
16 template <class T>
17 class D {
18 public:
19 static int i;
25 int f() {
26 return NS::D<NS::C>::i;